HTML5 Video Events and API

This page demonstrates the new HTML5 video element, its media API, and the media events. Play, pause, and seek in the entire video, change the volume, mute, change the playback rate (including going into negative values). See the effect on the video and on the underlying events and properties.





Media Events
loadstart0progress0suspend0abort0error0
emptied0stalled0loadedmetadata0loadeddata0canplay0
canplaythrough0playing0waiting0seeking0seeked0
ended0durationchange0timeupdate0play0pause0
ratechange0resize0volumechange0
Media Properties
errorsrcsrcObject
currentSrchttps://media.w3.org/2010/05/sintel/trailer.mp4crossOriginnetworkState1
preloadnonebuffered[object TimeRanges]readyState0
seekingfalsecurrentTime0durationNaN
pausedtruedefaultPlaybackRate1playbackRate1
played[object TimeRanges]seekable[object TimeRanges]endedfalse
autoplayfalseloopfalsecontrolstrue
volume1mutedfalsedefaultMutedfalse
audioTracksvideoTrackstextTracks[object TextTrackList]
width0height0videoWidth0
videoHeight0posterhttps://media.w3.org/2010/05/sintel/poster.png
canPlayType
video/mp4video/webm
"maybe""maybe"
Tracks
Audio Video Text
? ? ?

Limitations


plh@w3.org - April 2017

Many, many thanks to the Blender Foundation and the community around the blender project.