BufferConfig

com.bitmovin.player.api.buffer

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

BufferConfigconstructor(audioAndVideo: BufferMediaTypeConfig = BufferMediaTypeConfig(), startupThreshold: Double = 2.5, restartThreshold: Double = 5.0)

Types

NameSummary
Builderclass Builder : BufferConfigBuilder

Properties

NameSummary
audioAndVideovar audioAndVideo: BufferMediaTypeConfig
Configures various settings for the video and audio buffers.
restartThresholdvar restartThreshold: Double
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.
startupThresholdvar startupThreshold: Double
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.

Functions

NameSummary
describeContentsabstract fun describeContents(): Int
writeToParcelabstract fun writeToParcel(p0: Parcel, p1: Int)