-
-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video is interrupted on orientation change #5754
Comments
Duplicate of #5538. Unfortunately, there's no better way to achieve this. I've already tried to make the transition as seamless as possible in #5635, but that's the best we can get. When rotating the phone, we need to use a different player layout - hence we must recreate the current layout to load the landscape version when you started in portrait mode and vice versa. That just takes some time - as things must get rendered first. |
Loading into fullscreen from portrait mode doesn't have this issue. Do you think it would work if the landscape mode would be disabled for small screens and rotating would launch fullscreen mode? I find landscape mode useless on my phone anyway. |
That's already possible: Settings -> General -> Disable auto rotation Settings -> Player -> Enable Auto fullscreen |
Ah alright, I was thinking that this would launch every new Video in fullscreen |
Buffering again doesn't happen if the exoplayer object is persisted upon orientation change, which is not the case yet. Moving it to the ViewModel and managing the object from there should fix it I think. |
That's false, it's already the case. Feel free to make a PR if you think you can improve things though. |
Here's what I mean. |
Steps to reproduce
Expected behavior
Video should play seamlessly
Actual behavior
Video is interrupted quickly
LibreTube version
Nightly
Android version
14
Other details
This is a followup of #5727. I observed this before the fixing commit as well, so this shouldn't be a regression.
I'm sadly not at home and don't have a machine with Android Studio at hand, otherwise I would debug this properly. A quick search on the internet spits out this reddit post but the manifest declares the orientation config. So my guess it that it's an issue in this app and how it handles orientation changes.
Maybe you know if this is fixable at all?
Acknowledgements
The text was updated successfully, but these errors were encountered: