I am using exoplayer2 via androidx.media3:media3-exoplayer:1.0.0-beta03. I have a androidx.media3.ui.PlayerView in my XML layout, and then in my code I am creating an Exoplayer with ExoPlayer.Builder and assigning it to playerView.setPlayer.
When the controls (PlayerControlView) are displayed, the entire video appears dark/dimmed. I don't want that, but I can't figure out how to disable it.
Searching Google I find references (link, link) to an old glitch involving backgroundDimEnabled. I don't think this is what I am seeing because (1) I don't find "backgroundDimEnabled" anywhere in our application (2) it happens on both dark and light themes, and (3) when I try the suggested workaround ((binding.videoView.getVideoSurfaceView() as SurfaceView).setZOrderOnTop(true);
) the controls disappear, in other words z-order-on-top puts the video on top of the control view, which is not at all what I wanted. If there is somewhere I supposed to affirmatively set backgroundDimEnabled="false"
, I don't know what XML to put that on.
I am using Kotlin but that probably doesn't matter.