LiveConfig

data class LiveConfig(lowLatencyConfig: LowLatencyConfig?, synchronization: List<SynchronizationConfigEntry>, liveEdgeOffset: Double, minTimeShiftBufferDepth: Double) : Parcelable

Configures the behaviour when playing live content.

Constructors

Link copied to clipboard
fun LiveConfig(lowLatencyConfig: LowLatencyConfig? = null, synchronization: List<SynchronizationConfigEntry> = emptyList(), liveEdgeOffset: Double = -1.0, minTimeShiftBufferDepth: Double = DEFAULT_MIN_TIME_SHIFT_BUFFER_DEPTH)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Adds a SynchronizationConfigEntry. Each Entry has a source which specifies the server that should be used for time synchronization as well as a LiveSynchronizationMethod used to synchronize time with the source.

Properties

Link copied to clipboard
var liveEdgeOffset: Double

The duration in seconds by which the default start position should precede the end of the live window. A suggested presentation delay in a manifest will be overridden. In case of a DASH low latency stream (i.e. LowLatencyConfig is set), the liveEdgeOffset will be ignored. A value < 0 disables this feature.

Link copied to clipboard
var lowLatencyConfig: LowLatencyConfig? = null

The LowLatencyConfig or null.

Link copied to clipboard
var minTimeShiftBufferDepth: Double

The minimum buffer depth of a stream needed to enable time shifting. If the available buffer depth is shorter, time shifting is disabled and Player.maxTimeShift returns 0.

Link copied to clipboard
var synchronization: List<SynchronizationConfigEntry>

A list of SynchronizationConfigEntrys defining the endpoints for time synchronization.