SourceLiveConfig

SourceLiveConfig

data class SourceLiveConfig(var targetLatency: Double? = null, var catchupConfig: TargetSynchronizationConfig = DEFAULT_CATCHUP_CONFIG, var fallbackConfig: TargetSynchronizationConfig = DEFAULT_FALLBACK_CONFIG, var minTimeShiftBufferDepth: Double = DEFAULT_MIN_TIME_SHIFT_BUFFER_DEPTH) : Parcelable

Configures the behaviour when playing live content.

Constructors

SourceLiveConfigconstructor(targetLatency: Double? = null, catchupConfig: TargetSynchronizationConfig = DEFAULT_CATCHUP_CONFIG, fallbackConfig: TargetSynchronizationConfig = DEFAULT_FALLBACK_CONFIG, minTimeShiftBufferDepth: Double = DEFAULT_MIN_TIME_SHIFT_BUFFER_DEPTH)

Types

NameSummary
Companionobject Companion

Properties

NameSummary
catchupConfigvar catchupConfig: TargetSynchronizationConfig
The TargetSynchronizationConfig for catchup.
fallbackConfigvar fallbackConfig: TargetSynchronizationConfig
The TargetSynchronizationConfig for fallback.
minTimeShiftBufferDepthvar minTimeShiftBufferDepth: Double
The minimum buffer depth of the Source needed to enable time shifting. If the available buffer depth is shorter, time shifting is disabled and Player.maxTimeShift returns 0.0.
targetLatencyvar targetLatency: Double?
The offset in seconds between the target playhead time and the real time, or window edge, if the offset to current real time is not known. Setting this will move the player's definition of the live edge to targetLatency. The player will try to bring the LowLatencyApi.latency as close as possible to the targetLatency while avoiding stalls.