SourceLiveConfig
data class SourceLiveConfig(var targetLatency: Double? = null, var catchupConfig: TargetSynchronizationConfig = TargetSynchronizationConfig(
playbackRate = DEFAULT_PLAYBACK_RATE_CATCHUP
), var fallbackConfig: TargetSynchronizationConfig = TargetSynchronizationConfig(
playbackRate = DEFAULT_PLAYBACK_RATE_FALLBACK
), var minTimeShiftBufferDepth: Double = DEFAULT_MIN_TIME_SHIFT_BUFFER_DEPTH) : Parcelable
Configures the behaviour when playing live content.
Constructors
Link copied to clipboard
constructor(targetLatency: Double? = null, catchupConfig: TargetSynchronizationConfig = TargetSynchronizationConfig(
playbackRate = DEFAULT_PLAYBACK_RATE_CATCHUP
), fallbackConfig: TargetSynchronizationConfig = TargetSynchronizationConfig(
playbackRate = DEFAULT_PLAYBACK_RATE_FALLBACK
), minTimeShiftBufferDepth: Double = DEFAULT_MIN_TIME_SHIFT_BUFFER_DEPTH)
Properties
Link copied to clipboard
The TargetSynchronizationConfig for catchup.
Link copied to clipboard
The TargetSynchronizationConfig for fallback.
Link copied to clipboard
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
.
Link copied to clipboard
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.