Audio API.
The underlying HTML element, or undefined if not yet created.
Whether a main media source is currently loaded and ready.
The currently loaded main media, or undefined if nothing is loaded.
Observable stream of player lifecycle and playback events.
Current player session state (playback position, audio/text selection, etc.).
Text API.
Converts a time value from one MediaTemporalFormat to another (e.g. seconds → timecode, frame count → percent).
The time value to convert.
The format of the input value.
The desired output format.
Extracts video frame from current playhead position
Optionaloptions: VideoKeyframeOptionsReturns the current playback time. Defaults to seconds; pass a MediaTemporalFormat to get the value in another format (frame count, percent, timecode, media time, countdown).
Returns the media duration. Defaults to seconds; pass a MediaTemporalFormat to get the value in another format.
Returns the playback engine instance for the given media type, providing access to engine-specific configuration (e.g. HLS.js internals).
Whether the player is currently in fullscreen mode.
Loads the primary media source.
URL of the media source.
OptionalloadOptions: MainMediaLoadOptionsOptional load configuration (frame rate, DRM data, poster, etc.).
Observable that emits the MainMedia once its load stage reaches success.
Loads a sidecar track (audio or text) from a Source object or URL string.
A Source object or URL string pointing to the sidecar data.
OptionalloadOptions: TrackLoadOptionsOptional configuration specifying track type, text, or audio options.
Observable that emits the loaded Track.
OptionalloadOptions: TrackLoadOptionsPauses playback.
Starts or resumes playback.
Removes all sidecar tracks.
Removes a single sidecar track by its id.
Restores a previously persisted player session (playback position, audio/text state, etc.).
Seeks by a relative offset from the current playback position. The value is interpreted according to the given MediaTemporalFormat (defaults to seconds).
Observable that emits true if the seek succeeded.
Seeks to an absolute position. The value is interpreted according to the given MediaTemporalFormat (defaults to seconds).
Observable that emits true if the seek succeeded.
Sets the playback rate.
Decimal value in the range [0.1, 16]. For example, 2 plays at 2x speed.
Toggles between fullscreen and windowed display.
Unloads the current main media and releases associated resources.
Player API.