-
-
Notifications
You must be signed in to change notification settings - Fork 523
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 shuffle button for music video collection #3861
base: master
Are you sure you want to change the base?
Conversation
@@ -212,6 +212,18 @@ class SdkPlaybackHelper( | |||
} | |||
} | |||
|
|||
BaseItemKind.COLLECTION_FOLDER -> { |
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 think adding COLLECTION_FOLDER to the BaseItemKind.SERIES, BaseItemKind.SEASON, BaseItemKind.BOX_SET, BaseItemKind.FOLDER
line makes more sense. That results in (mostly) the same request.
@@ -719,6 +722,23 @@ private void addTools() { | |||
//Add tools | |||
int size = Utils.convertDpToPixel(requireContext(), 26); | |||
|
|||
if (mFolder.getCollectionType() == CollectionType.MUSICVIDEOS) |
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.
What about other collection types like music (when browsing albums/artists etc.)?
Hey @dmdymov, are you still interested in finishing this pull request? it's currently waiting for you to address my 2 comments above. |
@nielsvanvelzen yes, I am. Busy month. I'll try to finish this pull request next week. |
Hi @dmdymov still interested in finishing the PR? |
Changes
Added "Shuffle all" button to the music video collection toolbar. Once clicked, it creates a random video queue with the collection folder as a source and plays it with
PlaybackHelper
. For the collection folder source to work I added a new type option toSdkPlaybackHelper
. Tested it on my NVIDIA Shield, works fine.Issues
None, as far as I know.