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

Rewrite media session code with androidx.media3 #2803

Merged

Conversation

nielsvanvelzen
Copy link
Member

The current media session implementation had a few issues:

  • Rare crashes due to the threading not implemented correctly
  • Missing a lot of features
  • Messy
  • Uses androidx.media2 which almost nobody does (because Google documentation uses appcompat which is weird..)

In this PR the implementation is rewritten with androidx.media3 and most missing features are added. It works great in my testing (emulator, phone, shield).

Changes

  • Rewrite media session code with androidx.media3
  • Update QueueEntryMetadata to be based on media3 properties
  • Add missing features to media session

Issues

Part of #1057

@nielsvanvelzen nielsvanvelzen added enhancement New feature or request playback Issue related to media playback labels May 30, 2023
@nielsvanvelzen nielsvanvelzen added this to the v0.16.0 milestone May 30, 2023
@nielsvanvelzen nielsvanvelzen merged commit 4193ccc into jellyfin:master May 31, 2023
@nielsvanvelzen nielsvanvelzen deleted the playback-media3-session branch May 31, 2023 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request playback Issue related to media playback
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants