VideoAdaptation

fun interface VideoAdaptation

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

Functions

Link copied to clipboard

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.