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 PlaybackForwardingActivity for bridging to new playback module #1092

Merged

Conversation

nielsvanvelzen
Copy link
Member

Changes

This is a small change that does not modify any behavior in the normal app flow (and thus is safe for 0.12 inclusion). It adds a new activity "PlaybackForwardingActivity" that is used to bridge all playback requests to the new playback module.
Right now it extracts the to-be-played item from the current playback code and retrieves the BaseItemDto from the api using the SDK. It then quits the activity. This code is backported from my playback scratch branch.

With this the app will not crash anymore when playback is started with the new playback module enabled.

Issues

Part of #1057

Copy link
Contributor

@MrChip53 MrChip53 left a comment

Choose a reason for hiding this comment

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

Code is pretty straightforward. I don't think the comments are necessary except the TODO but I'll leave that to your discretion, otherwise LGTM.

@nielsvanvelzen nielsvanvelzen merged commit b64c5ef into jellyfin:master Aug 22, 2021
@nielsvanvelzen nielsvanvelzen deleted the playback-forwarding-activity branch August 22, 2021 07:55
@nielsvanvelzen nielsvanvelzen added this to the v0.15.0 milestone Oct 29, 2022
@nielsvanvelzen nielsvanvelzen added enhancement New feature or request playback Issue related to media playback labels Oct 29, 2022
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