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

Send QueueEntry to playback backend #3657

Merged

Conversation

nielsvanvelzen
Copy link
Member

Changes

Recently I changed the way we work with data in the playback code to use elements. As a result we can now more easily pass the complete queue entry everywhere and read the data we want from it. So the big state classes will slowly empty out.

With this PR the media stream state is no longer a thing. Instead you can just read the media stream from the queue entry. The player backend now receives an entry to allow full access. This is required for my next PR that adds audio normalization support.

I'm still working on some more changes to the media stream resolving, so I've left the existing implementation without much changes. It will need to be changed quite a bit to allow track switching for video playback (selecting subtitles or audio tracks).

Issues

Part of #1057

@nielsvanvelzen nielsvanvelzen added playback Issue related to media playback refactor Improvements to code realiability, readability and quality labels Jun 9, 2024
@nielsvanvelzen nielsvanvelzen added this to the v0.17.0 milestone Jun 9, 2024
backendService = backendService,
)

init {
services.forEach { it.initialize(this, state, Job(job)) }

// FIXME: This should be more integrated in the future

Check warning

Code scanning / detekt

Flags a forbidden comment. Warning

Forbidden FIXME todo marker in comment, please fix the problem.
@nielsvanvelzen nielsvanvelzen merged commit f0554b2 into jellyfin:master Jun 10, 2024
6 checks passed
@nielsvanvelzen nielsvanvelzen deleted the playback-entry-in-backend branch June 10, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
playback Issue related to media playback refactor Improvements to code realiability, readability and quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants