-
-
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
Add stream segments to player controls #5274
Conversation
5b2452b
to
5784568
Compare
5784568
to
f3c7412
Compare
eyy i opened the issue for this |
Fun fact: these segments are named "YouTube Chapters" |
Thanks for implementing that! As you are using the layout used by the queue, please make sure to handlde swipe events differently. E.g. it is currently possible to remove segments from the list by swiping them to the right. |
Is this being added in the next version? |
You're right, it starts to be possible whenever the queue was opened before. I'll address it tomorrow ;) |
f3c7412
to
9a90161
Compare
The apk is corrupted it says if I click "app artifact" and If i extract the zip it says it's corrupted |
Hmm it let's ME review this. I won't do that unless you guys are ok with it |
@HTSamurai Hmm, I tried it and the zip seems to be fine (I just copied the URL to the file which is built automatically => checks tab). Probably trying to download it from there? |
I'll try that |
Yeah now it's fixed |
Am I allowed to do a review? It let's me, but I won't do it without consent |
@HTSamurai sure @vkay94 Layout looks good to me! One small suggestion: Add a title to the view, so users quickly understand what it is about |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me!
9a90161
to
cb5f692
Compare
@TobiGr Done. I used |
can you rebase your PR please? the upcoming release lacks of noteworthy changes/features. This PR could be it |
@Redirion Sure, I planed to do it today anyway |
No I didn't find anything that should be changed. All was well |
Happy rebasing! ;-) |
cb5f692
to
dbba577
Compare
@Stypox No problem, at least it wasn't that much (but I had to do it twice because I clicked on "skip commit" during rebasing accidentally :') ) |
I think these can safely reduced to int. We don't need the ms precision that is returned by simpleExoPlayer.getCurrentPosition() and we use int everywhere else. |
@Redirion Good point, I didn't pay attention to it in the other places, I'll adjust it then. |
dbba577
to
880daad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the changes, just a few small issues. Thank you! :-D
Run Ctrl+Shift+Alt+L
in the player.xml
files after you are done, to reorder attributes
app/src/main/java/org/schabi/newpipe/info_list/StreamSegmentItem.kt
Outdated
Show resolved
Hide resolved
880daad
to
37aa41a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you for this great feature!
Maybe let's wait for somebody else to review, though, this is a pretty big change ;-)
Edit: I didn't test 😨
Tested, looking good |
@Redirion "Am I dead to you!?" ~ PeerTube Sepia Search. |
@vkay94 When did you last open Matrix? Please check your messages. |
Add stream segments to player controls
What is it?
Description of the changes in your PR
This PR adds stream segments for the YouTube service to player controls. The feature provides the following behaviors:
Code changes:
queueLayout
toitemsListLayout
Fixes the following issue(s)
APK testing
Check the build artifact page for the debug apk.
Preview
Demo (dynamically changing at 0:22) : https://streamable.com/e/0v66wn
Due diligence