Changes

Jump to: navigation, search

Audio Data API

3 bytes added, 02:16, 17 August 2010
Reading Audio
===== Reading Audio =====
Audio data is made available via an event-based API. As the audio is played, and therefore decoded, sample data is passed to content scripts in a framebuffer for processing after becoming available to the audio layer--hence the name, '''AudioAvailableMozAudioAvailable'''. These samples may or may not have been played yet at the time of the event. The audio samples returned in the event are raw, and have not been adjusted for mute/volume settings on the media element. Playing, pausing, and seeking the audio also affect the streaming of this raw audio data.
Users of this API can register two callbacks on the <audio> or <video> element in order to consume this data:
Confirm
656
edits

Navigation menu