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
| SourceLiveConfig | constructor(targetLatency: Double? = null, catchupConfig: TargetSynchronizationConfig = DEFAULT_CATCHUP_CONFIG, fallbackConfig: TargetSynchronizationConfig = DEFAULT_FALLBACK_CONFIG, minTimeShiftBufferDepth: Double = DEFAULT_MIN_TIME_SHIFT_BUFFER_DEPTH) |
Types
| Name | Summary |
|---|---|
| Companion | object Companion |
Properties
| Name | Summary |
|---|---|
| catchupConfig | var catchupConfig: TargetSynchronizationConfig The TargetSynchronizationConfig for catchup. |
| fallbackConfig | var fallbackConfig: TargetSynchronizationConfig The TargetSynchronizationConfig for fallback. |
| minTimeShiftBufferDepth | var 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. |
| targetLatency | var 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. |