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

Disable SocketHandler when using RewriteMediaManager #3253

Merged
merged 1 commit into from
Dec 29, 2023

Conversation

nielsvanvelzen
Copy link
Member

Right now both the SocketHandler and RewriteMediaManager respond to play state messages. When sending a "pause" message it will pause and play again due to this. Also likely other issues I didn't test.

This PR updates the SocketHandler to make it a bit smarter.

Changes

  • Switch isAudioPlayerInitialized (always true) to hasAudioQueueItems() (only true when there is a queue, so music playback is currently being used).
  • When RewriteMediaManager is active: do nothing
  • Refactor to use a when expression

Issues

@nielsvanvelzen nielsvanvelzen added bug Something isn't working playback Issue related to media playback labels Dec 24, 2023
@nielsvanvelzen nielsvanvelzen added this to the v0.16.3 milestone Dec 24, 2023
@nielsvanvelzen nielsvanvelzen merged commit 332b6af into jellyfin:master Dec 29, 2023
5 checks passed
@nielsvanvelzen nielsvanvelzen deleted the fix-rewrite-sockets branch December 29, 2023 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working playback Issue related to media playback
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants