BufferConfig

data class BufferConfig(audioAndVideo: BufferMediaTypeConfig, startupThreshold: Double, restartThreshold: Double) : Parcelable

Configures buffer settings for media types defined in MediaType.

Constructors

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

Properties

Link copied to clipboard
var audioAndVideo: BufferMediaTypeConfig

Configures various settings for the video and audio buffers.

Link copied to clipboard
var restartThreshold: Double = 5.0

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
var startupThreshold: Double = 2.5

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.