HTML and CSS Reference
In-Depth Information
Table5.HTMLMediaElement Properties
Property
Purpose
A live MultipleTracklist object representing the audio tracks available in the
media resource.
audioTracks
Boolean attribute reflecting status of autoplay.
autoplay
A TimeRanges object reflecting the ranges of the media resource that have been
buffered.
buffered
A MediaController object representing the element's current media controller.
controller
Reflects the controls attribute on the media element.
controls
The absolute URL of the selected media resource (read only).
currentSrc
The current playback time in seconds.
currentTime
The default state of the muted attribute—changing the attribute has no impact on
the media element.
defaultMuted
defaultPlaybackRate The desired speed at which the resource is set to play. Not supported by Ogg. A
value of 1.0 is normal speed, more is faster, less is slower. A value of 0.0 results in
an error. This property is meaningful only if the user agent exposes a user interface
allowing the user to set the playback rate.
The length of time of the media, in seconds, or zero if no media is available. If
there is media but the length can't be determined the value is NaN; if no predefined
length, the value is Inf.
duration
Indicates if media element has ended playing.
ended
The MediaError object with information about last error; null if no error.
error
The initial playback position, in seconds. Typically a value of 0 (zero).
initialTime
Reflects the state of the loop boolean attribute.
loop
Reflects the value of the mediagroup attribute.
mediaGroup
A value of true if the media element is muted, or false if not.
muted
Reflects the current network state for the media element.
networkState
Search WWH ::




Custom Search