Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specific audio format support checks fail on Firefox. #48

Open
stephank opened this issue Oct 17, 2010 · 3 comments
Open

Specific audio format support checks fail on Firefox. #48

stephank opened this issue Oct 17, 2010 · 3 comments
Labels

Comments

@stephank
Copy link

On Firefox 3.6 and 4 beta 6 (tested on Ubuntu 10.10, 64-bit), the audio checks for a specific formats fail. This can be seen in has.js' test suite when adding the script tag for detect/audio.js.

The cause of this appears to be canPlayType returning the empty string (unsupported), while the format can actually be played. The strange thing is that this only happens during or on page load; ie. manually using the console on an about:blank page to execute (new Audio()).canPlayType('audio/ogg; codec="vorbis"') results in 'maybe'.

@phiggins42
Copy link
Owner

'maybe' doesn't sound truthy. how are we interpreting this?

@stephank
Copy link
Author

Everything but the empty string is true. The string is simply !!'d.

It looks like the only way to get a better result from Firefox is after it has already played an Vorbis file, after which canPlayType returns 'probably' (which is the best result according to the spec.)

@jdalton
Copy link
Contributor

jdalton commented Oct 23, 2010

canPlayType is really weak because it is so wishywashy on its maybe, probably. I am for a more beefy solution or removing the tests if there is no good yes-no solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants