Interface: PlayerEventMap
Properties
audiotrackchange
audiotrackchange:
object
The active audio track changed.
track
track:
AudioTrack
chapterentercue
chapterentercue:
object
Fired when playback crosses into a chapter cue (kind: 'chapters' text track).
cue
cue:
ChapterCue
dispose
dispose:
void
The player is being torn down by EvePlayer.dispose.
ended
ended:
void
Playback reached the end of the media.
error
error:
PlayerError
A playback error occurred.
fullscreenchange
fullscreenchange:
object
The fullscreen state changed.
isFullscreen
isFullscreen:
boolean
gapskip
gapskip:
object
Fired when @videojs/http-streaming auto-seeks over a detected buffer gap
(a manifest discontinuity or a segment missing from the buffer). from/to
are seconds on the media timeline.
from
from:
number
to
to:
number
loadedmetadata
loadedmetadata:
object
Media metadata (including intrinsic size) is now available.
size
size:
PlayerSize
pause
pause:
void
Playback paused.
pipchange
pipchange:
object
Fired when the CSS Picture-in-Picture overlay is toggled.
isPip
isPip:
boolean
play
play:
void
Playback started or resumed.
qualitychange
qualitychange:
object
Fired when the SELECTION changes: EvePlayer.setQualityLevel pinned a
rendition, or EvePlayer.setAutoQuality handed control back to ABR.
For what is actually being played, listen to renditionchange instead.
level
level:
QualityLevel
ratechange
ratechange:
object
The playback rate changed.
playbackRate
playbackRate:
number
readystatechange
readystatechange:
object
The underlying HTMLMediaElement.readyState changed.
readyState
readyState:
number
renditionchange
renditionchange:
object
Fired when the rendition actually being played changes, whichever chose it:
an automatic ABR switch, or a manual pick. previous is undefined for the
first rendition of a source, and comparing level.bitrate against
previous.bitrate gives the direction. A step DOWN is the engine reporting
that the connection is struggling, which is a far more reliable signal than
any throughput figure.
level.selected keeps its usual meaning and does NOT move here: while ABR
is on, the selected level stays Auto however often the rendition changes.
level
level:
QualityLevel
previous
previous:
QualityLevel|undefined
sourceset
sourceset:
object
A new source was set via EvePlayer.setSource.
source
source:
SourceDescription
stall
stall:
object
Fired when playback resumes after a mid-playback rebuffer (the player was
already playing, then had to wait for data). duration is the stall
length in seconds. Not fired for the initial buffering wait before the
first playing; that's normal startup latency, not a stall.
duration
duration:
number
texttrackchange
texttrackchange:
object
A text track's mode changed to showing.
track
track:
TextTrack
timeupdate
timeupdate:
object
Periodic playback-position update.
currentTime
currentTime:
number
volumechange
volumechange:
object
The volume or mute state changed.
muted
muted:
boolean
volume
volume:
number