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.
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.
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 current status of the active media.
Increases the current playback rate based on predefined steps.
Returns a list of all registered plugins.
Load a specific video file.
The video file to load.
Mutes the player.
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.
Starts playback. Queues requests if the player is seeking or loading to achieve autoplay behavior.
Seeks to a specific time in the current media.
Specifies where to seek to within the media.
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.
Toggles mute.
Toggles playback.
Unmutes the player.
Service layer serves as the api of a player. It should provide high level function and use the adapter to accomplish the tasks.