Áudio HTML Video DOM Reference
Áudio HTML Video DOM Reference
Anterior
PrximoReferncia
Method
Description
addTextTrack()
Addsanewtexttracktotheaudio/video
canPlayType()
Checksifthebrowsercanplaythespecifiedaudio/videotype
load()
Reloadstheaudio/videoelement
play()
Startsplayingtheaudio/video
pause()
Pausesthecurrentlyplayingaudio/video
Description
audioTracks
ReturnsanAudioTrackListobjectrepresentingavailable
audiotracks
autoplay
Setsorreturnswhethertheaudio/videoshouldstartplaying
assoonasitisloaded
buffered
ReturnsaTimeRangesobjectrepresentingthebuffered
controller
partsoftheaudio/video
ReturnstheMediaControllerobjectrepresentingthecurrent
mediacontrolleroftheaudio/video
controls
Setsorreturnswhethertheaudio/videoshoulddisplay
controls(likeplay/pauseetc.)
crossOrigin
SetsorreturnstheCORSsettingsoftheaudio/video
currentSrc
ReturnstheURLofthecurrentaudio/video
currentTime
Setsorreturnsthecurrentplaybackpositioninthe
audio/video(inseconds)
defaultMuted
Setsorreturnswhethertheaudio/videoshouldbemutedby
default
defaultPlaybackRate
Setsorreturnsthedefaultspeedoftheaudio/video
playback
duration
Returnsthelengthofthecurrentaudio/video(inseconds)
ended
Returnswhethertheplaybackoftheaudio/videohasended
ornot
error
ReturnsaMediaErrorobjectrepresentingtheerrorstateof
theaudio/video
loop
Setsorreturnswhethertheaudio/videoshouldstartover
againwhenfinished
mediaGroup
Setsorreturnsthegrouptheaudio/videobelongsto(used
tolinkmultipleaudio/videoelements)
muted
Setsorreturnswhethertheaudio/videoismutedornot
networkState
Returnsthecurrentnetworkstateoftheaudio/video
paused
Returnswhethertheaudio/videoispausedornot
playbackRate
Setsorreturnsthespeedoftheaudio/videoplayback
played
ReturnsaTimeRangesobjectrepresentingtheplayedparts
oftheaudio/video
preload
Setsorreturnswhethertheaudio/videoshouldbeloaded
whenthepageloads
readyState
Returnsthecurrentreadystateoftheaudio/video
seekable
ReturnsaTimeRangesobjectrepresentingtheseekable
partsoftheaudio/video
seeking
Returnswhethertheuseriscurrentlyseekinginthe
audio/video
src
Setsorreturnsthecurrentsourceoftheaudio/video
element
startDate
ReturnsaDateobjectrepresentingthecurrenttimeoffset
textTracks
ReturnsaTextTrackListobjectrepresentingtheavailable
texttracks
videoTracks
ReturnsaVideoTrackListobjectrepresentingtheavailable
videotracks
volume
Setsorreturnsthevolumeoftheaudio/video
Description
abort
Fireswhentheloadingofanaudio/videoisaborted
canplay
Fireswhenthebrowsercanstartplayingtheaudio/video
canplaythrough
Fireswhenthebrowsercanplaythroughtheaudio/video
withoutstoppingforbuffering
durationchange
Fireswhenthedurationoftheaudio/videoischanged
emptied
Fireswhenthecurrentplaylistisempty
ended
Fireswhenthecurrentplaylistisended
error
Fireswhenanerroroccurredduringtheloadingofan
audio/video
loadeddata
Fireswhenthebrowserhasloadedthecurrentframeofthe
audio/video
loadedmetadata
Fireswhenthebrowserhasloadedmetadataforthe
audio/video
loadstart
Fireswhenthebrowserstartslookingfortheaudio/video
pause
Fireswhentheaudio/videohasbeenpaused
play
Fireswhentheaudio/videohasbeenstartedorisnolonger
paused
playing
Fireswhentheaudio/videoisplayingafterhavingbeen
pausedorstoppedforbuffering
progress
Fireswhenthebrowserisdownloadingtheaudio/video
ratechange
Fireswhentheplayingspeedoftheaudio/videoischanged
seeked
Fireswhentheuserisfinishedmoving/skippingtoanew
positionintheaudio/video
seeking
Fireswhentheuserstartsmoving/skippingtoanewposition
intheaudio/video
stalled
Fireswhenthebrowseristryingtogetmediadata,butdata
isnotavailable
suspend
Fireswhenthebrowserisintentionallynotgettingmedia
data
timeupdate
Fireswhenthecurrentplaybackpositionhaschanged
volumechange
Fireswhenthevolumehasbeenchanged
waiting
Fireswhenthevideostopsbecauseitneedstobufferthe
nextframe
Anterior
Copyright19992015byRefsnesData.AllRightsReserved.
PrximoReferncia