Note Should only be used from within the player.
The video element.
Callback to control internal event handling.
Event bus for internal communication.
Basic settings controlling the behavior.
An object containing all currently registered plugins.
Access a specific plugin using the Plugins static property Name
.
const hotkeyPlugin = player.api.plugin[HotkeyPlugin.Name];
Returns true if the video playback has ended, false otherwise
Returns the current instance of the hls.js player. It's recommended to use this as little as possible to achieve a consistent behavior.
Returns true if the player is currently playing in a loop.
Returns true if a seek is in progress, false otherwise
Player and plugins, if any, are ready for continued playback.
The video element used for playback.
The maximum acceptable value for playback rate.
The maximum value.
The minimum acceptable value for playback rate.
The minimum value.
Player and plugins, if any, are all muted.
Returns a list of playback rates that are used when increasing or decreasing playback rate.
Returns the audio tracks of the current HLS file.
Returns the current time of the player in the requested format.
The format to return the current time in.
Returns the duration of the current media in the requested format.
The format to return the duration in.
Returns the subtitle tracks of the current HLS file.
This service is a api layer that handles the communication with the video element regarding playback. It provides information about the currently loaded HLS file such as subtitles and audio tracks.
Note This service is created by the HlsPlayer on startup and should never be instantiated elsewhere.