BufferApi

interface BufferApi

Provides the means to configure buffer settings and to query the current buffer state. Accessible through Player.buffer.

Functions

getLevel
Link copied to clipboard
abstract fun getLevel(type: BufferType, media: MediaType): BufferLevel
Returns the BufferLevel for the chosen buffer type and media type.
setTargetLevel
Link copied to clipboard
abstract fun setTargetLevel(type: BufferType, value: Double)
Sets the target buffer level for the chosen buffer type across all MediaTypes.