User:Corban/AudioAPI: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
* David Humphrey | * David Humphrey | ||
* Corban Brook | * Corban Brook | ||
'''Current Implemention''' | |||
David Humphrey has developed a proof of concept, experimental build of Firefox which implements the following basic API: | |||
<code> | |||
mozSetup(channels, sampleRate, volume) | |||
</code> | |||
<pre> | |||
var audioOutput = document.getElementById('audio-element'); | |||
audioOutput.mozSetup(2, 44100, 1); | |||
</pre> | |||
Revision as of 16:11, 23 February 2010
Defining an enhanced API for audio
The HTML5 specification introduces the audio and video media elements, and with them the opportunity to dramatically change the way we integrate media on the web. The current API provides ways to play and get limited information about audio and video, but gives no way to programatically access or create such media. We present a new API for these media elements which allows web developers to read and write raw audio data.
Audio API (DRAFT)
Authors
- David Humphrey
- Corban Brook
Current Implemention
David Humphrey has developed a proof of concept, experimental build of Firefox which implements the following basic API:
mozSetup(channels, sampleRate, volume)
var audioOutput = document.getElementById('audio-element');
audioOutput.mozSetup(2, 44100, 1);