MKAdaptationConfiguration

class MKAdaptationConfiguration: MKConfiguration

Contains configuration values regarding the behaviour of the adaptation.

Fields

Name Description
var startupBitrate: Int

startupBitrate The bitrate the player should start playback with in bits per second. If set to a value > -1 this value will be used as initial bitrate estimate. A value of -1 indicates that the default initial bitrate estimate.

Default value is -1.

var maxSelectableVideoBitrate: Int

maxSelectableVideoBitrate Sets upper bitrate boundary for video qualities. All qualities above this threshold will not be selected by the ABR logic. These qualities are still available for manual quality selection.

Default value is Int.MAX_VALUE.

var isAllowRebuffering: Boolean

isAllowRebuffering Sets if rebuffering is allowed.

Default value is true.

var preload: Boolean

preload Specifies whether the player preloads the content or not.

Default value is true.

var videoAdaptation: OnMKVideoAdaptation?

Can be implemented and added to the class MKAdaptationConfiguration to customize the video adaptation logic.

Constructors

<init>

constructor()

Contains configuration values regarding the behaviour of the adaptation.

<init>

constructor(lstartupBitrate: Int, lmaxSelectableVideoBitrate: Int, lisAllowRebuffering: Boolean, lpreload: Boolean, lvideoAdaptation: OnMKVideoAdaptation?)

Contains configuration values regarding the behaviour of the adaptation.

Parameters

Name Description
lstartupBitrate: Int

Refer startupBitrate description

lmaxSelectableVideoBitrate: Int

Refer maxSelectableVideoBitrate description

lisAllowRebuffering: Boolean

Refer isAllowRebuffering description

lpreload: Boolean

Refer preload description

lvideoAdaptation: OnMKVideoAdaptation?

Refer videoAdaptation description