-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Use picture-in-picture (PIP) for the popup player on Android >= 8.0 #8750
Conversation
The PiP mode should be configurable and not enforced, in my opinion, as it have less advantages than the popup player such as:
Good luck with the remaining work to make the feature working properly, including player UI changes! You may use a separate Player UI for the PiP usage, though @Stypox may have better input on the subject, as they refactored how player UIs are in the app. Also, be sure to enable PiP only if the feature is available on the device (some Android Go devices may not have this feature). |
Yeah, that sounds good to me. Allowing the user to choose between the popup and PiP could be useful.
I set those views to be hidden upon entering PiP for the moment. They could be shown and used instead of the standard controls.
Thank you!
Got it, thanks for the input. |
Whoa. Isira not afraid to take on mammoth feature work, I see. :O |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
707904f
to
e17a056
Compare
The method currently overridden is deprecated (after two API versions, in classic Android fashion). Is there a way to use the new one on the Android versions that support it? |
The overridden method is in the |
e17a056
to
2d3723f
Compare
That's one of the limitations of Android Picture in Picture's feature: you can only tap on the actions provided at the bottom on the PiP window and tapping on everywhere else in the window would increase the PiP size on API 29 and lower. See https://developer.android.com/guide/topics/ui/picture-in-picture#handling_ui for more details. By the way, it seems you have a few unwanted changes on your pushed code. You may also show a message, probably a toast, when the PiP option it is not available, saying to check that the permission to use PiP may be not enabled or not available on the device NewPipe is running. Note that I am not sure about this. |
7cd35f4
to
c24ad9a
Compare
Yeah, that's why this is a draft for the moment. @Stypox is doing some refactoring of the player code: #8731 #8678 |
Holy scrolling, guys. Please truncate your quoted texts. |
2bd146a
to
a2a55c8
Compare
What's with the massive Also, instead of copying everything in Lines 54-60 in
No dealing with duplicate XML :) |
e2ef06d
to
1fbed27
Compare
99d477b
to
373d4d1
Compare
Hmm, I was under the impression that one of the PRs I mentioned earlier was for this issue, my bad. As for switching to PiP, I'll make changes for that.
👍 |
ca09932
to
a617b9e
Compare
This debug build with Android's newer PiP feature does not crash on my Pixel running Android 13 while the older Newpipe pop-up crashes every time. I get the same full screen play/pause issue as the previous person but I'd rather deal with that than crashes Send it pls! |
@jawz101 Send it where? |
Into the app |
Bugs:
|
@opusforlife2 Thanks for the feedback. I'm away from home at the moment, I'll look into those when I get back. |
Been a bit busy these days, I'll try and look into the issues this evening. |
54529cd
to
ec384a4
Compare
ec384a4
to
b4f26e5
Compare
@AudricV Do you know if there have been any recent changes to the video player UI? Up until I rebased onto |
b4f26e5
to
55eea5a
Compare
Kudos, SonarCloud Quality Gate passed! |
ef4c594
to
5b5dfd5
Compare
This will be properly considered when the player will be rewritten from scratch. Thank you for the contribution and for the insights anyway, they are sure going to be helpful! |
What is it?
Description of the changes in your PR
Before/After Screenshots/Screen Record
device-2022-08-08-204526.mp4
Fixes the following issue(s)
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.
Due diligence