You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the user enters fullscreen mode, and then changes the device orientation, then the view is recomposed, and the PlayerView recreated with the fullscreen button state defaulting to 'false'.
Consequently, the user has to tap the fullscreen button twice to exit fullscreen mode.
There isn't an exposed property to set the fullscreen state, so is there a way to have PlayerView created with the fullscreen state of 'true' or have it remember that is was 'true'?
Is this an oversight? Or am I using PlayerView incorrectly?
I do not think that the fullscreen button should force a particular orientation change, because the video could have been recorded in landscape mode or portrait mode.
I think this basically boils down to a duplicate of google/ExoPlayer#10391 (note: StyledPlayerView in ExoPlayer is spelt PlayerView in media3: #186 (comment)).
Good day,
I am using ExoPlayer and PlayerView with Jetpack Compose.
Dependencies:
androidx.media3:media3-exoplayer:1.0.0-beta02
androidx.media3:media3-ui:1.0.0-beta02
The ExoPlayer instance is kept in the view model.
If the user enters fullscreen mode, and then changes the device orientation, then the view is recomposed, and the PlayerView recreated with the fullscreen button state defaulting to 'false'.
Consequently, the user has to tap the fullscreen button twice to exit fullscreen mode.
There isn't an exposed property to set the fullscreen state, so is there a way to have PlayerView created with the fullscreen state of 'true' or have it remember that is was 'true'?
Is this an oversight? Or am I using PlayerView incorrectly?
I do not think that the fullscreen button should force a particular orientation change, because the video could have been recorded in landscape mode or portrait mode.
The text was updated successfully, but these errors were encountered: