Re:How to play a sound in a web browser (it ain’t easy)
by jah on Wednesday March 16, 2011 @10:13PM
(#2334816)
I've found the claim that Chrome "will play most stuff thrown at it" to be a false one. Here's a Chrome bug I discovered last month while hacking a Flask application:
mkdir static && wget http://www.soundjay.com/button/beep-1.mp3 -O static/beep.mp3 && python -c "import flask; flask.Flask(__name__).run()"
Then hit:
http://127.0.0.1:5000/static/beep.mp3The mp3 plays fine in Firefox (not natively of course), but doesn't play at all in Chrome. The same problem extends to the HTML5 audio tag (eg. <audio src="static/beep.mp3" />).
Re:How to play a sound in a web browser (it ain’t easy)
by drivebyacct2 on Thursday March 17, 2011 @04:07PM
(#2337826)
Works perfectly here. Not a real nice test tone though, heh.
Has broad support and will play most stuff thrown at it. Also, no cross-platform differences.
Thank you Chrome.