Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmdymov
Copy link

@dmdymov dmdymov commented Aug 8, 2024

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 to SdkPlaybackHelper. Tested it on my NVIDIA Shield, works fine.

image

Issues
None, as far as I know.

@@ -212,6 +212,18 @@ class SdkPlaybackHelper(
}
}

BaseItemKind.COLLECTION_FOLDER -> {
Copy link
Member

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)
Copy link
Member

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.)?

@nielsvanvelzen
Copy link
Member

Hey @dmdymov, are you still interested in finishing this pull request? it's currently waiting for you to address my 2 comments above.

@dmdymov
Copy link
Author

dmdymov commented Sep 28, 2024

@nielsvanvelzen yes, I am. Busy month. I'll try to finish this pull request next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants