dsa28s / compose-video

Video UI Component for Jetpack Compose (Powered by androidx.media3)
https://dsa28s.github.io/compose-video/
Apache License 2.0
208 stars 23 forks source link

Enter full screen reset player and track state #9

Closed fresnohernandez99 closed 7 months ago

fresnohernandez99 commented 7 months ago

When screen rotates all jetpack compose components lose the remembers states. Player is reset and in consequence video track is set on start by default. Trying use:

fresnohernandez99 commented 7 months ago

The problem was trying to test fullscreen on @Preview. This in the manifest activity will do:

android:configChanges="colorMode|density|fontScale|keyboard|keyboardHidden|layoutDirection|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"