VideoAdaptation
fun interface VideoAdaptation
Can be implemented and added to the AdaptationConfig to customize the video adaptation logic.
Functions
| Name | Summary |
|---|---|
| onVideoAdaptation | abstract fun onVideoAdaptation(data: VideoAdaptationData): String? Is called before the next video segment is downloaded. The quality according to VideoQuality.id that is returned will be downloaded next. Invalid IDs or null will result in a fallback to the ID provided in data. |