BufferConfig

data class BufferConfig(var audioAndVideo: BufferMediaTypeConfig = BufferMediaTypeConfig(), var startupThreshold: Double = 2.5, var restartThreshold: Double = 5.0) : Parcelable

Configures buffer settings for media types defined in MediaType.

Constructors

Link copied to clipboard
constructor(audioAndVideo: BufferMediaTypeConfig = BufferMediaTypeConfig(), startupThreshold: Double = 2.5, restartThreshold: Double = 5.0)

Properties

Link copied to clipboard

Configures various settings for the video and audio buffers.

Link copied to clipboard

Amount of seconds the player buffers before playback starts again after a stall. This value is restricted to the maximum value of the buffer minus 0.5 seconds. Default is 5 seconds.

Link copied to clipboard

Amount of seconds the player buffers before playback starts. This value is restricted to the maximum value of the buffer minus 0.5 seconds. Default is 2.5 seconds.