JavaScripture
Contribute via GitHub
Feedback
MediaController
Constructors
Instance Properties
buffered
currentTime
defaultPlaybackRate
duration
muted
paused
playbackRate
playbackState
played
readyState
seekable
volume
Instance Methods
pause
play
unpause
Instance Events
canplay
canplaythrough
durationchange
emptied
ended
loadeddata
loadedmetadata
pause
play
playing
ratechange
timeupdate
volumechange
waiting
Media API
All API
No API set selected.
MediaController
:
Object
constructor
The MediaController is used to synchronize multiple
HTMLMediaElements
.
Spec
Constructors
new
MediaController
() :
MediaController
Instance Properties
buffered
:
TimeRanges
readonly
currentTime
:
Number
defaultPlaybackRate
:
Number
duration
:
Number
readonly
muted
:
Boolean
paused
:
Boolean
readonly
playbackRate
:
Number
playbackState
:
String
readonly
Returns one of
'waiting'
,
'playing'
or
'ended'
.
played
:
TimeRanges
readonly
readyState
:
Number
readonly
seekable
:
TimeRanges
readonly
volume
:
Number
Instance Methods
pause
() :
undefined
play
() :
undefined
unpause
() :
undefined
Instance Events
oncanplay
/
'canplay'
event
listener
(
event
:
Event
) :
undefined
oncanplaythrough
/
'canplaythrough'
event
listener
(
event
:
Event
) :
undefined
ondurationchange
/
'durationchange'
event
listener
(
event
:
Event
) :
undefined
onemptied
/
'emptied'
event
listener
(
event
:
Event
) :
undefined
onended
/
'ended'
event
listener
(
event
:
Event
) :
undefined
onloadeddata
/
'loadeddata'
event
listener
(
event
:
Event
) :
undefined
onloadedmetadata
/
'loadedmetadata'
event
listener
(
event
:
Event
) :
undefined
onpause
/
'pause'
event
listener
(
event
:
Event
) :
undefined
onplay
/
'play'
event
listener
(
event
:
Event
) :
undefined
onplaying
/
'playing'
event
listener
(
event
:
Event
) :
undefined
onratechange
/
'ratechange'
event
listener
(
event
:
Event
) :
undefined
ontimeupdate
/
'timeupdate'
event
listener
(
event
:
Event
) :
undefined
onvolumechange
/
'volumechange'
event
listener
(
event
:
Event
) :
undefined
onwaiting
/
'waiting'
event
listener
(
event
:
Event
) :
undefined
home
license
contribute
feedback
toggle light/dark mode
Copyright © JavaScripture Contributors