Search notes:

HTMLMediaElement

HTMLMediaElement inherits from HTMLElement and is the base class for HTMLVideoElement and HTMLAudioElement.

Properties and methods

audioTracks
autoplay
buffered
canPlayType()
captureStream()
controller
controls
controlsList
crossOrigin
currentSrc
currentTime Current playback time (seconds). When this value changes, the timeupdate event is fired.
defaultMuted
defaultPlaybackRate
disableRemotePlayback
duration
ended Compare with the ended event.
error
fastSeek()
load()
loop
mediaGroup
mediaKeys
muted
networkState
Non-standard Deprecated
Non-standard Deprecated
Non-standard Deprecated
pause()
paused
play()
playbackRate
preservesPitch
readyState
remote
seekable
seekToNextFrame()
setMediaKeys()
setSinkId()
sinkId
src
srcObject
textTracks
videoTracks
volume

Events

abort
canplay
canplaythrough User agent thinks that media can played to its end without further buffering
durationchange
emptied
encrypted
ended Playback or streaming has stopped (either end is reached or no more data available). Compare with the ended property
error
loadeddata
loadedmetadata
loadstart
pause
play
playing
progress
ratechange
seeked
seeking
stalled
suspend
timeupdate Fired when value of currentTime is modified.
volumechange
waiting

See also

The HTML <audio> and <video> tags.

Index