MediaElement — a media player element
MediaElement is the common superclass of the
<video> elements. Those two elements
define almost exactly the same API, which is described here, but see
Audio and Video for
audio- and video-specific details. And see Scripting Audio and Video
for an introduction to these media elements.
NETWORK constants are
the possible values of the
networkState, and the
HAVE constants are the possible values of
The element has not started using the network. This
would be the state before the
src attribute was set.
The element is not currently loading data from the
network. It might have loaded the complete resource, or it
might have buffered all the data it currently needs. Or it
preload set to
“none” and not yet have been asked to load or play the
The element is currently using the network to load media data.
The element is not using the network because it was not able to find a media source that it is able to play.
No media data or metadata has been loaded.
The media metadata has been loaded, but no data for the
current playback position has been loaded. This means that you
can query the
duration of the media or the dimensions of a video and you can seek by setting ...