Constructor

PresentationData

new PresentationData()

Properties

isDurationVisible

boolean

Indicates whether to show duration label on the right corner under progress bar. For some live cases, duration label should be hidden when playing at live edge.

isPlayingLive

boolean

Indicates whether player is playing at live edge of a live stream. It can be used to show different states of live indicator.

liveProgressStart

nullable number

Live progress start time relative to section start time in seconds. It is only used when a live stream is not seekable, but live progress should be drawn on progress bar. This value means the start of progress. Current time should be used as the end of progress.

progressCurrentTime

nullable number

Media current time relative to media start time in seconds. It indicates where playhead should be. Null means no playhead and no current time label should show.

progressDuration

number

Duration of current media, current show, or current progress, or current seekable area in seconds. It indicates the total length of progress bar. For seekable VOD, it is used as the seekable length. Value -1 means nothing to show on progress bar.

seekableRange

nullable cast.framework.messages.LiveSeekableRange

Seekable range relative to section start time or seekable start in seconds. It shows the start and end of the seekable area.

timeOffset

number

This describes the offsets between time in presentation data and media time in seconds. When sending request, time should be adjusted to use media time.