Constructor

PlayerData

new PlayerData()

Properties

breakPercentagePositions

non-null Array of number

Array of breaks positions in percentage.

contentType

nullable cast.framework.ui.ContentType

Content Type.

currentBreakClipNumber

number

The number of the current playing break clip in the break.

currentTime

number

Media current position in seconds, or break current position if playing break.

displayStatus

boolean

Whether the player metadata (ie: title, currentTime) should be displayed. This will be true if at least one field in the metadata should be displayed. In some cases, displayStatus will be true, but parts of the metadata should be hidden (ie: the media title while media is seeking). In these cases, additional css can be applied to hide those elements. For cases where the media is audio-only, this will almost always be true. In cases where the media is video, this will be true when: (1) the video is loading, buffering, or seeking (2) a play request was made in the last five seconds while media is already playing, (3) there is a request made to show the status in the last five seconds, or (4) the media was paused in the last five seconds.

duration

number

Media duration in seconds, Or break duration if playing break.

isBreakSkippable

boolean

Indicate break clip can be skipped.

isLive

boolean

Indicate if the content is a live stream.

isPlayingBreak

boolean

Indicate that the receiver is playing a break.

isSeeking

boolean

Indicate the player is seeking (can be either during playing or pausing).

numberBreakClips

number

Number of break clips in current break.

state

cast.framework.ui.State

Current player state.

thumbnailUrl

string

Content thumbnail url.

title

string

Content title.

whenSkippable

(number or undefined)

Provide the time a break is skipable - relative to current playback time. Undefined if not skippable.