24 ways : “Probably, Maybe, No” : The State of HTML5 Audio
►http://24ways.org/2010/the-state-of-html5-audio
The HTML5 audio API as implemented in JavaScript has one of the most un-computer-like responses I’ve ever seen, and inspired the title of this post. Calling new Audio().canPlayType(’audio/mp3’), which queries the system for format support according to a MIME type, is supposed to return one of “probably”, “maybe”, or “no”. Sometimes, you’ll just get a null or empty string, which is also fun. A “maybe” response does not guarantee that a format will be supported; sometimes audio/mp3 gives “maybe,” but then audio/mpeg; codecs="mp3" will give a more-solid “probably” response. This can vary by browser or platform, too, depending on native support – and finally, the user may also be able to install codecs, extending support to include other formats. (Are you excited yet?)
Article qui date de décembre 2010, assez passionnant : le gars transmet grosso modo tout ce qu’il sait sur le sujet (relevés de bugs, incompatibilités, etc.).
Il est l’auteur du très pratique SoundManager2 :
►http://www.schillmania.com/projects/soundmanager2
que j’ai utilisé sur Archimome pour les textes lus par la comédienne :
►http://www.archimome.fr