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

Playlist support & TV Shuffle #986

Merged
merged 15 commits into from
Feb 25, 2023
Merged

Conversation

1hitsong
Copy link
Member

@1hitsong 1hitsong commented Jan 28, 2023

Changes
Adds support for Playlists from the home view. Currently it only supports playback for videos and audio.

It also adds a Shuffle button to TV series and seasons as a demo of how we will eventually use global queue for all playback.

This PR is an MVP product, so it is NOT feature complete.

This is currently a WIP, so there will be bugs. Please post any findings as a comment.

Ignore how much code duplication there is. I had to convert a ton of stuff to tasks to make this work. Eventually, if approved, all playback will use this system and the old code will be removed.

Issues
Fixes #108 #198

@1hitsong 1hitsong marked this pull request as ready for review January 31, 2023 21:59
Copy link
Contributor

@candry7731 candry7731 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is Great! I used the playlist with mixed content and it worked flawlessly. It will be nice to have more features like, shuffle and random

The Shuffle and random buttons on on tv shows is a great addition! Also worked on my server with no bugs.

It would be nice if the shuffle and play random buttons were the same size.
image

@cewert cewert added this to To do in Ongoing development Feb 24, 2023
@cewert cewert moved this from To do to In progress in Ongoing development Feb 24, 2023
Copy link
Contributor

@jimdogx jimdogx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with some "cleanup" nitpicks.

components/music/AudioPlayerView.brs Outdated Show resolved Hide resolved
components/video/VideoPlayerView.brs Outdated Show resolved Hide resolved
components/ItemGrid/LoadVideoContentTask.brs Show resolved Hide resolved
components/ItemGrid/LoadVideoContentTask.brs Show resolved Hide resolved
Ongoing development automation moved this from In progress to Reviewer approved Feb 25, 2023
@1hitsong
Copy link
Member Author

@jkim2492 This will impact your work on the subtitles. The end goal is to unify all playback into the global queue functions. To make this work, I had to duplicate a lot of the video playback code and modify it to work with tasks.

This PR addresses playlist support and shuffle tv seasons. I'm going to start applying it to the other video playback calls, but before I do, I need to copy over your new subtitle functions into the new video player.

Before you continue work on the embeded subtitles, you may want to either wait until I finish this, or work on adding it here to begin with.

@1hitsong 1hitsong merged commit a33ce8b into jellyfin:unstable Feb 25, 2023
Ongoing development automation moved this from Reviewer approved to Done Feb 25, 2023
@1hitsong 1hitsong deleted the PlaylistSupport branch February 25, 2023 16:44
@jkim2492
Copy link
Contributor

@1hitsong I think waiting won't be a problem since I haven't decided on how to implement it yet :)

return true
end function

function CreateMovieDetailsGroup(movie)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im fixing the crashlog error for ShowScenes.brs and noticed the CreateMovieDetailsGroup function was duplicated here. can't we just include ShowScenes.brs to this task node?

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

Successfully merging this pull request may close these issues.

FR: Playlist Support
5 participants