I'm using ExoPlayer and PlayerView to render videos in Compose as follows:
val exoPlayer = remember(videoUrl) {
ExoPlayer.Builder(this).build().apply {
setMediaItem(MediaItem.fromUri(videoUrl))
}
}
AndroidView(
factory = {
PlayerView(it).apply {
player = exoPlayer
}
}
)
The original video is on the left, the PlayerView version is on the right
It renders perfectly, but as you see, there is a slight color difference compared to the original video. It seems that PlayerView adds a dim to the original video or changes some configuration related to the UI. I tried multiple things to get the same color but failed.
Any hint to get the same video color in PlayerView?