Generate UUID in case the user-defined nativeId
is empty.
Optional
config: PlayerConfigOptional
analyticsThe AnalyticsApi
for interactions regarding the Player
's analytics.
undefined
if the player was created without analytics support.
The BufferApi for interactions regarding the buffer.
Optional
Readonly
configThe configuration object used to initialize this instance.
Whether the native Player
object has been disposed.
Whether the native Player
object has been created.
Readonly
nativeOptionally user-defined string id
for the native instance, or UUIDv4.
Optional
sourceCurrently active source, or null
if none is active.
Checks the possibility to play the media at specified playback speed.
The playback speed to check.
true
if it's possible to play the media at the specified playback speed, otherwise false
. On Android it always returns undefined
.
iOS, tvOS
The currently selected audio track or null
.
An array containing AudioTrack objects for all available audio tracks.
An array containing SubtitleTrack objects for all available subtitle tracks.
Returns an array containing all available video qualities the player can adapt between.
An array containing all available video qualities the player can adapt between.
The time mode to specify: an absolute UNIX timestamp ('absolute') or relative time ('relative').
The current playback time in seconds.
For VoD streams the returned time ranges between 0 and the duration of the asset.
For live streams it can be specified if an absolute UNIX timestamp or a value relative to the playback start should be returned.
The player's current playback speed.
setPlaybackSpeed for details on which values playback speed can assume.
The currently selected subtitle track or null
.
a Thumbnail
for the specified playback time for the currently active source if available.
Supported thumbnail formats are:
WebVtt
configured via SourceConfig.thumbnailTrack
, on all supported platformsImage Media Playlist
in the multivariant playlist, Android-onlyImage Adaptation Set
as specified in DASH-IF IOP, Android-only
If a WebVtt
thumbnail track is provided, any potential in-manifest thumbnails are ignored on Android.Returns the currently selected video quality.
The currently selected video quality.
Loads a new Source
from sourceConfig
into the player.
Loads the downloaded content from OfflineContentManager
into the player.
Optional
options: OfflineSourceOptionsLoads the given Source
into the player.
Dynamically schedules the adItem
for playback.
Has no effect if there is no active playback session.
Ad to be scheduled for playback.
iOS, Android
Sets the playback speed of the player. Fast forward, slow motion and reverse playback are supported.
The playback speed to set.
0
and 1
.1
.0
and -1
, and fast reverse is used by values less than -1
. iOS and tvOS only.Negative values are ignored during Casting and on Android.
During reverse playback the playback will continue until the beginning of the active source is
reached. When reaching the beginning of the source, playback will be paused and the playback
speed will be reset to its default value of 1
. No PlaybackFinishedEvent will be
emitted in this case.
Shifts the time to the given offset
in seconds from the live edge. The resulting offset has to be within the
timeShift window as specified by maxTimeShift
(which is a negative value) and 0. When the provided offset
is
positive, it will be interpreted as a UNIX timestamp in seconds and converted to fit into the timeShift window.
When the provided offset
is negative, but lower than maxTimeShift
, then it will be clamped to maxTimeShift
.
Has no effect for VoD.
Has no effect if no sources are loaded.
Generated using TypeDoc
Loads, controls and renders audio and video content represented through
Source
s. A player instance can be created via theusePlayer
hook and will idle until one or moreSource
s are loaded. Onceload
is called, the player becomes active and initiates necessary downloads to start playback of the loaded source(s).Can be attached to
PlayerView
component in order to use Bitmovin's Player Web UI.See
PlayerView