BufferApi

BufferApi

interface BufferApi

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

Functions

NameSummary
getLevelabstract fun getLevel(type: BufferType, media: MediaType): BufferLevel
Returns the BufferLevel for the chosen buffer type and media type of the active Source.
setTargetLevelabstract fun setTargetLevel(type: BufferType, value: Double)
Sets the target buffer level for the chosen buffer type across all MediaTypes.