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
, i.e. plugin[Plugin.Name]
.
Returns true if a seek is in progress, false otherwise
Player and plugins, if any, are ready for continued 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.
Cancels loop playback.
Decreases the current playback rate based on predefined steps.
Destroys the service, should only be called from within the player.
Returns the active video file or undefined if no video file is loaded.
Increases the current playback rate based on predefined steps.
Returns a list of all registered plugins.
Load videoFiles i.e multiple representations of the same video.
The files to be loaded.
Loop section of loaded Video.
inclusive
exclusive
Mutes the player.
Mutes the muxed audio
Helper method to make sure that playback is resumed correctly. Should only be used from within the player.
Pauses playback and makes sure that the player is stopped at an exact frame.
(Optional) Seek to specific time when pausing.
Starts playback. Queues requests if the player is seeking or loading to achieve autoplay behavior.
Update frameOffset value for all loaded videoFiles. Equivalent to load videoFile with a specific frameOffset.
Frame offset to set.
Sets the playback rate. Limited to predefined min- and max values.
The new playback rate
Set the volume of the player.
A number between 0 and 1.
Sets the default controller for the volume
the volume controller
Switch between already loaded video files i.e representations of the same video. The file must be with the 'loadVideoFiles' method.
The desired representation.
Toggles mute.
Toggles mute on the muxed audio
Toggles playback.
Unmutes the player.
Unmutes the muxed audio
Update the dropFrame value for all loaded videoFiles. Equivalent to load videoFile with dropFrame property set.
Drop frame value to set.
This service is a api layer that handles the communication with the video element regarding playback.
Note This service is created by the HlsPlayer on startup and should never be instantiated elsewhere.