Closed Bug 803342 Opened 12 years ago Closed 12 years ago

HTMLMediaElement.canPlayType() says it can't play MP3 on B2G

Categories

(Core :: Audio/Video, defect)

x86_64
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: cpearce, Assigned: cpearce)

References

()

Details

Testcase: http://pearce.org.nz/canplay.html

On B2G nsHTMLMediaElement::CanPlayType() is reporting that we can't play MP3 if we specify it as 'audio/mpeg; codecs="mp3"'. It's reporting that we can probably play AAC.

This means if we specify a "codecs" parameter in an <audio> element's <source>'s src attribute, we will refuse to play the mp3, though we can still play MP3 if the MP3 is specified in the audio element's src attribute. For example point your B2G browser at: http://pearce.org.nz/zurie.html
Oh oops, looks like audio/mpeg isn't supposed to take a "codecs" parameter.
http://wiki.whatwg.org/wiki/Video_type_parameters#MPEG
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Though Chrome's canPlayType() at least returns "maybe" for 'audio/mpeg; codecs="mp3"'.
You need to log in before you can comment on or make changes to this bug.