Audio Data API Review Version: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 482: Line 482:
A series of blog posts document the evolution and implementation of this API: http://vocamus.net/dave/?cat=25.  Another overview by Al MacDonald is available [http://weblog.bocoup.com/web-audio-all-aboard here].
A series of blog posts document the evolution and implementation of this API: http://vocamus.net/dave/?cat=25.  Another overview by Al MacDonald is available [http://weblog.bocoup.com/web-audio-all-aboard here].


=== Obtaining Code and Builds ===
===== Security =====


'''Latest Try Server Builds:'''
Similar to the <canvas> element and its '''getImageData''' method, the '''MozAudioAvailable''' event's '''frameBuffer''' attribute protects against information leakage between origins.


http://ftp.mozilla.org/pub/mozilla.org/firefox/tryserver-builds/david.humphrey@senecac.on.ca-9f9530b5e9b6/
The '''MozAudioAvailable''' event's '''frameBuffer''' attribute will throw if the origin of audio resource does not match the document's origin.  NOTE: this will affect users who have the security.fileuri.strict_origin_policy set, and are working locally with file:/// URIs.


A patch is available in the [https://bugzilla.mozilla.org/show_bug.cgi?id=490705 bug], if you would like to experiment with this API. No builds of this patch have been created.
===== Compatibility with Audio Backends =====


'''Win7 Build with Audio-Data-API + Multi-Touch-API:'''
The current MozAudioAvailable implementation integrates with Mozilla's decoder abstract base classes, and therefore, any audio decoder which uses these base classes automatically dispatches MozAudioAvailable events.  At the time of writing, this includes the Ogg and WebM decoders but '''not''' the Wave decoder.


This build combines David Humprey's Audio Data API with [http://felipe.wordpress.com/2009/08/21/sneak-peak-on-multitouch-events/ Felipe Gomez's Multi-Touch API] and has been tested on the HP-TX2 and the HP-TM2.
=== Obtaining Code and Builds ===
 
'''Latest Try Server Builds:'''


http://code.bocoup.com/firefox-3.7a1pre.felipe.multitouch.win7.zip
http://ftp.mozilla.org/pub/mozilla.org/firefox/tryserver-builds/david.humphrey@senecac.on.ca-ecf5c7f4e806/


=== JavaScript Audio Libraries ===
=== JavaScript Audio Libraries ===


* We have started work on a JavaScript library to make building audio web apps easier.  Details are [[Audio Data API JS Library|here]].
* We have started work on a JavaScript library to make building audio web apps easier.  Details are [[Audio Data API JS Library|here]].
* [http://github.com/bfirsh/dynamicaudio.js dynamicaudio.js] - An interface for writing audio with a Flash fall back for older browsers.
* [http://github.com/bfirsh/dynamicaudio.js dynamicaudio.js] - An interface for writing audio with a Flash fall back for older browsers.  ''NOTE:'' not necessarily up-to-date with this version of the API.


=== Working Audio Data Demos ===
=== Working Audio Data Demos ===
Line 570: Line 572:
* http://news.slashdot.org/story/10/05/26/1936224/Breakthroughs-In-HTML-Audio-Via-Manipulation-With-JavaScript
* http://news.slashdot.org/story/10/05/26/1936224/Breakthroughs-In-HTML-Audio-Via-Manipulation-With-JavaScript
* http://ajaxian.com/archives/amazing-audio-api-javascript-demos
* http://ajaxian.com/archives/amazing-audio-api-javascript-demos
* http://www.webmonkey.com/2010/08/sampleplayer-makes-your-browser-sing-sans-flash/
Confirmed users
656

edits

Navigation menu