MKPBufferApi

interface MKPBufferApi: Any

This buffer API should be accessible using player buffer

Methods

setTargetLevel

abstract fun setTargetLevel(type: MKBufferType, value: Double)

Sets the target buffer level for the chosen buffer type across all media types.

Parameters

Name Description
type: MKBufferType
  • The buffer type to change the target buffer level for.
value: Double
  • The buffer value to be set.

ReturnValue

Name Description
Unit

getLevel

abstract fun getLevel(btype: MKBufferType, mtype: MKMediaType): MKPBufferLevel

Returns the current and target buffer level for the given buffer type and media type.

Parameters

Name Description
btype: MKBufferType
  • The buffer type for which to get the buffer level for.
mtype: MKMediaType
  • The media type for which to get the buffer level for.

ReturnValue

Name Description
MKPBufferLevel

The current and target buffer level for the given buffer type and media type.