Changes

Jump to: navigation, search

User:David.humphrey/Audio Data API 2

776 bytes added, 00:21, 21 May 2010
DOM Implementation
== DOM Implementation ==
 
===== nsIDOMNotifyAudioMetadataEvent =====
 
Audio metadata is provided via custom properties of the media element's '''loadedmetadata''' event. This event occurs once when the browser first aquires information about the media resource. The event details are as follows:
 
* '''Event''': LoadedMetadata
* '''Event handler''': onloadedmetadata
 
The '''LoadedMetadataEvent''' is defined as follows:
 
<pre>
interface nsIDOMNotifyAudioMetadataEvent : nsIDOMEvent
{
readonly attribute unsigned long mozChannels;
readonly attribute unsigned long mozRate;
};
</pre>
 
The '''mozChannels''' attribute contains a the number of channels in this audio resource (e.g., 2). The '''mozRate''' attribute contains the number of samples per second that will be played, for example 44100.
===== nsIDOMNotifyAudioWrittenEvent =====
Confirm
656
edits

Navigation menu