OnMKVideoAdaptation

interface OnMKVideoAdaptation: MKEventListener<MKPVideoAdaptationData>, Any

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

Methods

onVideoAdaptation

abstract fun onVideoAdaptation(eventdata: MKPVideoAdaptationData): String

Is called before the next video segment is downloaded.

Parameters

Name Description
eventdata: MKPVideoAdaptationData

see MKPVideoAdaptationData for description

ReturnValue

Name Description
String

Returns the ID of the class MKVideoQuality that should be downloaded next.