-
-
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
Shouldn't it supposed to handle phones without picture-in-picture mode support? #3746
Comments
|
Yes, I saw that. Tried to explain it on "Expected behavior" section; where I couldn't find the option to enable/disable this in the Settings. In addition... I just figured out that trying to seek the video through the "bottom bar" also crashes the application with the same error. |
Did you figure it out? All good now? |
Nope. It was a missclick, lmao. My bad closing the issue. 😔 |
It was enabled before. Anyway, I tried to enable it again but without success. |
@r1klz are you still facing this issue? |
Hi @n1snt! Unfortunatelly I am. Even in the lastest versions --- LibreTube Debug --- this "bug" still occurs... it must be my phone thing. 😕 |
@r1klz have you enabled something like Screen Reader? |
On the code side, we need to check if it's a Samsung device & accessibility service is enabled before calling OR If the issue is low device ram then we would need to go according to this: I would create a PR for this as soon as I get some time. |
Hey! I didn't see that you answered me so fast, ty. About my device, yeah, it is a Samsung Galaxy J4 Core with 1GB of RAM! (my bad not saying it) and probably it is the really issue. But like I said before, in version 0.13.1, I didn't have this problem because there was an option in the app settings that I could disable PiP. It seems that they repaginated PiP mode in the next version (0.14.0) "reusing PictureInPictureCompat method", maybe was it (?) Again, thank you @n1snt, you are awesome! |
No worries. |
@r1klz Please test it again with the latest debug builds! (see https://github.com/libre-tube/NightlyBuilds) |
Tested and working perfectly as it should be!! Thank you for the amazing work you do in this lovely app and the love to solve this type of problems. When I have conditions, I will try to make a donation! 💗 |
I'm happy it's working for you now! |
Steps to reproduce
Expected behavior
Should not crash. This is happening after 0.14.0 update, where the option to disable "PiP" was removed.
Actual behavior
Crashing right after pausing the video.
LibreTube version
0.14.1
Android version
8.1.0
Other details
java.lang.IllegalStateException: setPictureInPictureParams: Device doesn't support picture-in-picture mode. at android.os.Parcel.readException(Parcel.java:2021) at android.os.Parcel.readException(Parcel.java:1959) at android.app.IActivityManager$Stub$Proxy.setPictureInPictureParams(IActivityManager.java:9479) at android.app.Activity.setPictureInPictureParams(Activity.java:2134) at com.github.libretube.compat.PictureInPictureCompat$$ExternalSyntheticApiModelOutline0.m(R8$$SyntheticClass:1) at com.github.libretube.ui.fragments.PlayerFragment$initializePlayerView$2.onIsPlayingChanged(PlayerFragment.kt:71) at com.google.android.exoplayer2.ExoPlayerImpl$$ExternalSyntheticLambda10.invoke(R8$$SyntheticClass:11) at com.google.android.exoplayer2.util.ListenerSet$$ExternalSyntheticLambda1.run(R8$$SyntheticClass:40) at com.google.android.exoplayer2.util.ListenerSet.flushEvents(ListenerSet.java:58) at com.google.android.exoplayer2.ExoPlayerImpl.updatePlaybackInfo(ExoPlayerImpl.java:899) at com.google.android.exoplayer2.ExoPlayerImpl.updatePlayWhenReady(ExoPlayerImpl.java:72) at com.google.android.exoplayer2.ExoPlayerImpl.setPlayWhenReady(ExoPlayerImpl.java:20) at com.google.android.exoplayer2.BasePlayer.pause(BasePlayer.java:5) at com.github.libretube.ui.fragments.PlayerFragment$$ExternalSyntheticLambda9.onClick(R8$$SyntheticClass:79) at android.view.View.performClick(View.java:6314) at android.view.View$PerformClick.run(View.java:24793) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6543) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:810)
Acknowledgements
The text was updated successfully, but these errors were encountered: