Whether a main media source is currently loaded and ready.
Observable stream of player lifecycle and playback events.
Current player session state (playback position, audio/text selection, etc.).
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.
Returns 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.
Pauses playback.
Starts or resumes playback.
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.
Live mode only. Seeks to the current live edge (the recommended sync position). No-ops
(false) when the loaded media isn't live.
Observable that emits true if the seek succeeded, false if not currently live.
Rotates the video element by the given number of degrees. Ignored while the loaded main media is audio-only.
Note: native <track> and hls.js-embedded subtitles render inside the video element itself and will
visually rotate along with it. Use the PlayerTextHandlerType.MEDIA_CAPTIONS text handler (the
library default) to keep captions upright regardless of rotation.
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.
Shared API surface inherited by all player variants (PlayerApi, PlayerInternalApi, PlayerLocalApi, PlayerDetachedApi).
Provides playback control, seeking (supporting multiple temporal formats), time conversion, playback rate, and fullscreen toggling.