Modules

Classes

Errors
Errors
MediaPlayerEvents
MssErrors
OfflineController
OfflineDownload
OfflineStoreController
ProtectionErrors
ProtectionEvents

Events


AST_IN_FUTURE

Triggered when playback will not start yet as the MPD's availabilityStartTime is in the future. Check delay property in payload to determine time before playback will start.

Source:

BUFFER_EMPTY

Triggered when the video element's buffer state changes to stalled. Check mediaType in payload to determine type (Video, Audio, FragmentedText).

Source:

BUFFER_LEVEL_STATE_CHANGED

Triggered when the video element's buffer state changes, either stalled or loaded. Check payload for state.

Source:

BUFFER_LOADED

Triggered when the video element's buffer state changes to loaded. Check mediaType in payload to determine type (Video, Audio, FragmentedText).

Source:

CAN_PLAY

Sent when enough data is available that the media can be played, at least for a couple of frames. This corresponds to the HAVE_ENOUGH_DATA readyState.

Source:

CAPTION_CONTAINER_RESIZE

Triggered when the caption container is resized.

Source:

CAPTION_RENDERED

Triggered when a caption is rendered.

Source:

ERROR

Triggered when there is an error from the element or MSE source buffer.

Source:

FRAGMENT_LOADING_ABANDONED

Triggered when a fragment download is abandoned due to detection of slow download base on the ABR abandon rule..

Source:

FRAGMENT_LOADING_COMPLETED

Triggered when a fragment download has completed.

Source:

FRAGMENT_LOADING_PROGRESS

Triggered when a partial fragment download has completed.

Source:

FRAGMENT_LOADING_STARTED

Triggered when a fragment download has started.

Source:

LOG

Triggered when module:Debug logger methods are called.

Source:

MANIFEST_LOADED

Triggered when the manifest load is complete

Source:

MANIFEST_VALIDITY_CHANGED

Manifest validity changed - As a result of an MPD validity expiration event.

Source:

METRIC_ADDED

Triggered every time a new metric is added.

Source:

METRIC_CHANGED

Triggered when an individual metric is added, updated or cleared.

Source:

METRIC_UPDATED

Triggered every time a metric is updated.

Source:

METRICS_CHANGED

Triggered anytime there is a change to the overall metrics.

Source:

PERIOD_SWITCH_COMPLETED

Triggered at the stream end of a period.

Source:

PERIOD_SWITCH_STARTED

Triggered when a new period starts.

Source:

PLAYBACK_ENDED

Sent when playback completes.

Source:

PLAYBACK_ERROR

Sent when an error occurs. The element's error attribute contains more information.

Source:

PLAYBACK_METADATA_LOADED

The media's metadata has finished loading; all attributes now contain as much useful information as they're going to.

Source:

PLAYBACK_NOT_ALLOWED

Sent when playback is not allowed (for example if user gesture is needed).

Source:

PLAYBACK_PAUSED

Sent when playback is paused.

Source:

PLAYBACK_PLAYING

Sent when the media begins to play (either for the first time, after having been paused, or after ending and then restarting).

Source:

PLAYBACK_PROGRESS

Sent periodically to inform interested parties of progress downloading the media. Information about the current amount of the media that has been downloaded is available in the media element's buffered attribute.

Source:

PLAYBACK_RATE_CHANGED

Sent when the playback speed changes.

Source:

PLAYBACK_SEEK_ASKED

Sent when a seek operation has been asked.

Source:

PLAYBACK_SEEKED

Sent when a seek operation completes.

Source:

PLAYBACK_SEEKING

Sent when a seek operation begins.

Source:

PLAYBACK_STALLED

Sent when the video element reports stalled

Source:

PLAYBACK_STARTED

Sent when playback of the media starts after having been paused; that is, when playback is resumed after a prior pause event.

Source:

PLAYBACK_TIME_UPDATED

The time indicated by the element's currentTime attribute has changed.

Source:

PLAYBACK_WAITING

Sent when the media playback has stopped because of a temporary lack of data.

Source:

QUALITY_CHANGE_RENDERED

Triggered when the new ABR quality is being rendered on-screen.

Source:

QUALITY_CHANGE_REQUESTED

Triggered when an ABR up /down switch is initiated; either by user in manual mode or auto mode via ABR rules.

Source:

SOURCE_INITIALIZED

Triggered when the source is setup and ready.

Source:

STREAM_INITIALIZED

Triggered when a stream (period) is loaded

Source:

STREAM_INITIALIZING

Triggered when a stream (period) is being loaded

Source:

STREAM_TEARDOWN_COMPLETE

Triggered when the player has been reset.

Source:

TEXT_TRACK_ADDED

Triggered when a text track is added to the video element's TextTrackList

Source:

TEXT_TRACKS_ADDED

Triggered once all text tracks detected in the MPD are added to the video element.

Source:

TRACK_CHANGE_RENDERED

Triggered when the new track is being rendered.

Source:

TTML_PARSED

Triggered when a ttml chunk is parsed.

Source:

TTML_TO_PARSE

Triggered when a ttml chunk has to be parsed.

Source:

DOWNLOADING_FINISHED

Triggered when all fragments has been downloaded

Source:

DOWNLOADING_STOPPED

Triggered when the downloading is initialize and started

Source:

DOWNLOADING_STOPPED

Triggered when the user stop current downloading

Source:

KEY_ADDED

Event ID for events delivered when a new key has been added

Deprecated:
  • The latest versions of the EME specification no longer use this event. {@MediaPlayer.models.protectionModel.eventList.KEY_STATUSES_CHANGED} is preferred.
Source:

KEY_ERROR

Event ID for events delivered when an error is encountered by the CDM while processing a license server response message

Source:

KEY_MESSAGE

Event ID for events delivered when the protection set receives a key message from the CDM

Source:

KEY_SESSION_CLOSED

Event ID for events delivered when a key session close process has completed

Source:

KEY_SESSION_CREATED

Event ID for events delivered when a new key sessions creation process has completed

Source:

KEY_SESSION_REMOVED

Event ID for events delivered when a key session removal process has completed

Source:

KEY_STATUSES_CHANGED

Event ID for events delivered when the status of one or more decryption keys has changed

Source:

KEY_SYSTEM_SELECTED

Event ID for events delivered when a key system selection procedure completes

Source:

LICENSE_REQUEST_COMPLETE

Event ID for events delivered when a license request procedure has completed

Source:

PROTECTION_CREATED

Event ID for events delivered when the Protection system is detected and created.

Source:

PROTECTION_DESTROYED

Event ID for events delivered when the Protection system is destroyed.

Source: