-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
feat: automatic PiP animation #648
feat: automatic PiP animation #648
Conversation
Hi, I added PiP support last year.
Last I recommend calling
inside |
It's working fine when paused, am I missing something? 😅
Is that something that effects the animation?
I see what you are talking about, the callback is firing only after the state change, but it's really hard to notice, so I guess it's not really a big deal. |
I believe that if the video isn't going to be played (
No, but the animation looks bad, it zooms out after entering PiP. (It's not a significant issue; it's also present on YouTube)
I tried to fix this in my pip-autoEnterEnable branch, preparing pip in an external function. Sorry for using YouTube as my main reference, but is the app where I think PiP is better implemented 😅 |
7436018
to
b1ccc10
Compare
Okay so I rebased this on top of I also added the fix for disabling the pip gesture when content is paused. I took the implementation from @cd16b but modified it a little bit. While using a Also fixed a crash when gestures are disabled and entering pip using the button. This PR + my changes have been tested on Android 9 and Android 14. |
* Add automatic PiP animation * Fix linting * Fix linting * chore: fix merge conflict * fix: disable pip gesture when media is paused * fix: crash when gestures are disabled * fix: keep auto enter enabled after using button --------- Co-authored-by: Cd16d <98320806+cd16b@users.noreply.github.com> Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
Make transitions to PiP mode smoother from gesture navigation:
pip.mp4
For Android 12 and newer, only tested on android 14.