0

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.

enter image description here

2
  • 3
    its not disabled its behind the navigation bar due to your app not handling Android 15's edge to edge properly Commented Jul 14 at 17:59
  • You're right. That was pretty dumb by me. Commented Jul 15 at 9:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.