Class: PlaybackConfig

Constructor

PlaybackConfig

new PlaybackConfig()

Properties

autoPauseDuration

(number or undefined)

Duration of buffered media in seconds to start buffering.

autoResumeDuration

(number or undefined)

Duration of buffered media in seconds to start/resume playback after auto-paused due to buffering.

autoResumeNumberOfSegments

(number or undefined)

Minimum number of buffered segments to start/resume playback.

captionsRequestHandler

(function(non-null cast.framework.NetworkRequestInfo) or undefined)

A function to customize request to get a caption segment.

enableSmoothLiveRefresh

boolean

A flag to enable manifest refresh logic for Smooth Live streaming.

ignoreTtmlPositionInfo

boolean

A flag whether to ignore TTML positioning information.

initialBandwidth

(number or undefined)

Initial bandwidth in bits in per second.

licenseCustomData

(string or undefined)

Custom license data.

licenseHandler

(non-null function(non-null Uint8Array) returns (non-null Promise containing non-null Uint8Array or non-null Uint8Array) or undefined)

Handler to process license data. The handler is passed the license data, and returns the modified license data.

licenseRequestHandler

(non-null function(non-null cast.framework.NetworkRequestInfo) or undefined)

A function to customize request to get a license.

licenseUrl

(string or undefined)

Url for acquiring the license.

manifestHandler

(non-null function(string) returns (non-null Promise containing string or string) or undefined)

Handler to process manifest data. The handler is passed the manifest, and returns the modified manifest.

manifestRequestHandler

(non-null function(non-null cast.framework.NetworkRequestInfo) or undefined)

A function to customize request to get a manifest.

protectionSystem

cast.framework.ContentProtection

Preferred protection system to use for decrypting content.

segmentHandler

(non-null function(non-null Uint8Array) returns (non-null Promise containing non-null Uint8Array or non-null Uint8Array) or undefined)

Handler to process segment data. The handler is passed the segment data, and returns the modified segment data.

segmentRequestHandler

(non-null function(non-null cast.framework.NetworkRequestInfo) or undefined)

A function to customize request information to get a media segment.

segmentRequestRetryLimit

(number or undefined)

Maximum number of times to retry a network request for a segment.