---
updatedAt: 2026-06-12T07:21:52.000Z
agentTools:
  siteIndex: https://developer.bitmovin.com/llms.txt
  projectIndex: https://developer.bitmovin.com/playback/llms.txt
---

# VideoAdaptation

com.bitmovin.player.api.media.video.quality

# VideoAdaptation

fun interface VideoAdaptation

Can be implemented and added to the [AdaptationConfig](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-media-adaptation-config) to customize the video adaptation logic.

## Functions

| Name              | Summary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| onVideoAdaptation | abstract fun onVideoAdaptation(data: [VideoAdaptationData](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-media-video-quality-video-adaptation-data)): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)?<br>Is called before the next video segment is downloaded. The quality according to [VideoQuality.id](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-media-video-quality-video-quality) that is returned will be downloaded next. Invalid IDs or `null` will result in a fallback to the ID provided in data. |