Modules

Classes

AirplayToggle
AirplayToggle
BitrateButton
BitrateButton
BitrateMenuItem
BitrateMenuItem
CastPlugin
Chromecast
ChromeCastButton
ChromeCastButton
ChromecastSender
ChromecastSender
ChromecastSender
ControlBar
DownloadService
DownloadService
EMPAnalyticsConnector
EMPAnalyticsConnector
EmpForwardButton
EmpLiveDisplay
EmpMarker
EmpMarker
EmpMediaInfoBar
EmpMediaInfoBar
EmpMouseTimeDisplay
EmpNextButton
EmpPlayerError
EmpPlayerError
EmpPlayerEvents
EmpPlayerEvents
EmpPlayToggle
EmpPreviousButton
EmpReloadButton
EmpRestartButton
EmpRewindButton
EmpStopButton
EmpTech
EmpTimeDisplay
Entitlement
Entitlement
EntitlementEngine
EntitlementEngine
EntitlementError
EntitlementError
EntitlementExpirationService
EntitlementExpirationService
EntitlementRequest
EntitlementRequest
EricssonExposure
EricssonExposure
EricssonMDN
LoadProgressBar
MediaError
exports
AnalyticsPlugin
AnalyticsPlugin
CastPlugin
CastPlugin
EmpDashif
EmpDashif
EntitlementMiddleware
EmpHlsMse
EmpHlsMse
EmpHLS
EmpHLS
empPlayer
EmpShaka
EmpShaka
EmpSmooth
EmpSmooth
PlaylistPlugin
PlaylistPlugin
YospacePlugin
YospacePlugin
PipToggle
PipToggle
Player
Player
PlaylistButton
PlaylistButton
PlaylistMenuItem
PlaylistMenuItem
PlayProgressBar
ProgramService
ProgramService
SeekBar
TextTrackDisplay
TextTrackSettings
YospacePlayer

Events


ABORT

Fired when playback is aborted


ADD_TRACK

Fired when an AudioTrack object has been added to an AudioTrackList object.


BEFORE_MODAL_CLOSE

Used when a modal html view will be closed. Fired by VideoJS on the ModalDialog


BEFORE_MODAL_EMPTY

Used when a modal html view will clear its content. Fired by VideoJS on the ModalDialog


BEFORE_MODAL_FILL

Used when a modal html view will be populated with html content. Fired by VideoJS on the ModalDialog


BEFORE_MODAL_OPEN

Used when a modal html view is about to be opened. Fired by VideoJS on the ModalDialog


BITRATE_CHANGED

Fired when the video bitrate changes


BLUR

Used when an html element loses focus. Fired by VideoJS on components


CAN_PLAY

Fired when the player can start playback


CAN_PLAY_THROUGH

Enough data has been loaded to play the media up to its end


CHANGE

Fired when a state changes. Used for example when an AudioTrack changes its enabled value


CLICK

Used when an html element is clicked. Fired by VideoJS on components


CLOSE

Used when something closes. Fired by VideoJS when the CloseButton closes


CONTROLS_DISABLED

When controls are disabled


CONTROLS_ENABLED

When controls are enabled


DISPOSE

Fired when the player is destroyed.


DURATION_CHANGE

Fired when the video duration changes


EMPTIED

When the current playlist is empty


ENDED

Fired when video playback ends


ENTER_FULL_WINDOW

When fullscreen isn't supported and the video will resize to the window


ERROR

Fired when an error occurs


EXIT_FULL_WINDOW

When exiting full window


FIRST_PLAY

Video is played for the first time


FOCUS

Used when an html element gains focus. Fired by VideoJS on components


FULLSCREEN_CHANGE

When the fullscreen state changes


KEY_DOWN

When a key is down


KEY_UP

When a key is up


LOAD_START

Fired when the video is starting to load


LOADED_DATA

Fired when the player has downloaded data at the current playback position


LOADED_METADATA

Fired when the player has initial duration and dimension information


METRIC_CHANGED

Fired by Dash.js when a metric changes


MODAL_CLOSE

Used when a modal html view has been closed. Fired by VideoJS on the ModalDialog


MODAL_EMPTY

Used when a modal html view has cleared its content. Fired by VideoJS on the ModalDialog


MODAL_FILL

Used when a modal html view has been populated with html content. Fired by VideoJS on the ModalDialog


MODAL_OPEN

Used when a modal html view has been opened. Fired by VideoJS on the ModalDialog


MODE_CHANGE

Fired when an AudioTrack object changes its enabled value


MOUSE_DOWN

When the mouse is down


MOUSE_MOVE

When the mouse is moved


MOUSE_UP

When the mouse is up


PAUSE

Fired when the player is paused


PLAY

Fired when the player will start playing


PLAYING

Fired when the player has starting playback


POSTER_CHANGE

When the video poster changes


PROGRESS

When the user agent is downloading media data


RATE_CHANGE

When the playing speed of the audio/video is changed


READY

Used when something is ready. Fired when the tech is ready


RECOVERABLE_ASSET_ERROR

Fired when a recoverable asset error occurs


REMOVE_TRACK

Fired when an AudioTrack object has been removed from an AudioTrackList object.


RESIZE

Used when an html element resizes. Fired when the video element changes size


SEEKED

Fired when the player seeked to a different point in time


SEEKING

Fired when the player started seeking


SLIDER_ACTIVE

Fired when a VideoJS slider is active


SLIDER_INACTIVE

Fired when a VideoJS slider is inactive


STALLED

When the player is trying to get media data, but data is not available


SUSPEND

When the player is suspended from downloading media data


TAP

Used when an html element is tapped. Fired by VideoJS on components


TEXT_TRACK_CHANGE

When the text track has been changed


TIME_UPDATE

Fired when the current playback position has changed


TIMESHIFT_CHANGE

Fired when the timeshift changes


TOUCH_CANCEL

When a touch point has been disrupted


TOUCH_END

When touch ended


TOUCH_LEAVE

When a touch point is moved off the interactive area of an element


TOUCH_MOVE

When touch moved


TOUCH_START

When touch started


TRACK_CHANGE

When the track has been changed


USER_ACTIVE

Fired when the user is active


USERIN_ACTIVE

Fired when the user is inactive


USING_CUSTOM_CONTROLS

When custom controls are being used


USING_NATIVE_CONTROLS

When native tech or device controls are being used


VOLUME_CHANGE

Fired when the volume changes


WAITING

Fired when the player starts buffering


canplay

The media has a readyState of HAVE_FUTURE_DATA or greater.

Type: EventTarget~Event

canplaythrough

The media has a readyState of HAVE_ENOUGH_DATA or greater. This means that the
entire media file can be played without buffering.

Type: EventTarget~Event

ended

Fired when the end of the media resource is reached (currentTime == duration)

Type: EventTarget~Event
Listeners of This Event:

playing

The media is no longer blocked from playback, and has started playing.

Type: EventTarget~Event