I am using a androidx.media3.ui.PlayerView on an Activity to play a video on full screen in landscape.
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
<androidx.media3.ui.PlayerView
android:id="@+id/fullScreenVideoPlayerView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/black00"
android:keepScreenOn="true"
app:resize_mode="fit"
app:show_buffering="when_playing" />
</FrameLayout>
Upon launching the Activity I set the following to have the player to full screen mode to have exit full screen button.
setFullscreenButtonState(true)
setFullscreenButtonClickListener {
exitFullScreen()
}
However the button is disabled on Android 15. On lower OSes it works fine. How can I have it enabled?
Thanks.
