Movie reloading when switching orientation
When screen orientation is changed, it looks like a new connection to the server/proxy is made and the movie is buffering for a long time. This transition should be smooth.
#2 Updated by ming over 7 years ago
It is not actually a bug. The current implementation is completely correct—the Activity is recreated during the orientation change, so all its contents are destroyed and created again. There are two other ways. First—ignore recreation, not suggested solution, because framework knows better how to do it. Second—move the player to a Service. Personally I would leave it at as it is and move to a Service solution if there will be time for that.
#8 Updated by megabitdragon over 7 years ago
For this we want the movie not to reload when switching screen orientations. I guess we need a service for this as well.
The way it should work is as follows.
1. If the movie is playing the device should not go in standby.
2. If user locks the device manually the movies should pause
3. If user switches to another app the movie should pause
4. When user unlocks the screen or returns to the app the movies should be paused at the location was left off and ready to play.
#15 Updated by cpg over 7 years ago
for me, the rotation works well. it's virtually seamless, great job! (black magic non-withstanding).
however, the controls often disappear. tapping in the movie will not bring them back.
i noticed tapping in the notification area will bring them, but not the bottom controls, just the top navbar row (logo + movie name). changing the volume seems to bring them both (top and bottom) fairly reliably.
since there is discrepancy and it works for @megabitdragon, perhaps it's my phone running aosp 4.3. so i released this branch to the community as 0.1.6 to see what they experience.
Also available in: Atom