Represents the media player model

Methods

absoluteTime ():Float

The absolute time in reference to the starting presentation time stamp of the most recently parsed Hls fragment

bitrate ():ApiBitrateValue

The bitrate of the current profile being played

calculatedMediaHeight ():Float

Effective height of the media

calculatedMediaWidth ():Float

Effective width of the media

duration ():ApiTimeValue

The duration of the current content

error ():String

The error message of the media player if an error occurs

events ():MediaModelEvents

Media model events collection

initialBufferLength ():Float

Time to buffer before playback begins

isDynamic ():Bool

TODO

isLive ():Bool

true if the content is live content

isProtected ():Bool

true if the content is protected

maxBitrate ():ApiBitrateValue

The maximum bitrate the media player is allowed to shift up to

minBitrate ():ApiBitrateValue

The minimum bitrate the media player is allowed to shift down to

muted ():Bool

true if the media player is muted

playBufferLength ():Float

The length of the play buffer

playableRange ():TimeRange

Defines time values for the current media

profileIndex ():Int

The index of the media profile being played

profiles ():Array<MediaProfile>

List of media profiles of the current content

seekableRange ():TimeRange

Defines the time values for seeking the current media

startBitrate ():ApiBitrateValue

The bitrate of the media profile to use when content first plays

startIndex ():Int

The index of the media profile to use when content first plays

state ():MediaState

The current state of the media player

streamInfo ():MediaStreamInfoModel

Retrieve the stream info model

time ():ApiTimeValue

The current playhead time of the media player

url ():String

The manifest url of the current content

viewHeight ():Float

The height of the media player viewport

viewWidth ():Float

The width of the media player viewport

volume ():ApiVolumeValue

The current volume level of the media player