Confirmed users
656
edits
(→Status) |
|||
Line 224: | Line 224: | ||
== 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 ===== | ===== nsIDOMNotifyAudioWrittenEvent ===== |