-
-
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
Replace specific enqueue options with one #4425
Conversation
The enqueue options won't be shown in the dialogs if the Player service is not running. When it's running one item (enqueue stream) will be shown and enqueues the item into the Player type which is currently selected.
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.
Thank you for taking care of this! :-D
app/src/main/java/org/schabi/newpipe/player/helper/PlayerHolder.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/util/StreamDialogEntry.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/util/StreamDialogEntry.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/util/StreamDialogEntry.java
Outdated
Show resolved
Hide resolved
I've pushed your suggestions/requested changes and updated the OP. |
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.
Thank you for implementing the suggestions, almost there :-D
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.
Thank you again!
And also works after some testing |
@vkay94 thank you! |
What is it?
Description of the changes in your PR
This PR replaces the enqueue options within the StreamDialogEntry-dialogs with one.
Dev:
PlayerHolder
to determine the current runningPlayerType
(VIDEO, AUDIO, POPUP).enqueue
which automatically checks which type is running and enqueues the stream accordingly to the right player.showStreamDialog
(see more in User)StreamDialogEntry
items and their strings.User:
If there is no player playing a stream, then the options for queuing won't be shown - there is no need for them, in this case it's the same as start playing in background/popup.
But If there is a stream playing then there'll be the entry
Enqueue
which enqueues the next stream without interrupting the current flow.I hope the behavior is what you've expected @TobiGr
Fixes the following issue(s)
Testing apk
app-debug-2.zip
Agreement