feat(player): add support for Jellyfin Merge Versions plugin#75
Open
DarkseidAM wants to merge 1 commit intoMakD:masterfrom
Open
feat(player): add support for Jellyfin Merge Versions plugin#75DarkseidAM wants to merge 1 commit intoMakD:masterfrom
DarkseidAM wants to merge 1 commit intoMakD:masterfrom
Conversation
This commit introduces full support for selecting and playing different media versions grouped by the Jellyfin Merge Versions plugin. Key Features: - Pre-play Version Picker: Intercepts the primary Play action on the ItemDetailScreen. If an item contains multiple remote sources (versions), it prompts the user with a newly created VersionPickerDialog to select their preferred version before launching the player. - In-Player Version Switching: Added a Versions button to the PlayerControls interface (visible only when multiple sources exist). Users can seamlessly switch between versions mid-playback via the new VersionPickerSheet, which seamlessly resumes playback from the current position. - Sticky Autoplay Logic: Re-architected auto-play logic within PlayerViewModel (loadMedia and playQueueItem). Autoplaying the next episode now intelligently selects the source that best matches the previously played version (matching by source name, then video height) across fetched items. Data Layer & Architecture: - Enriched the AfinitySource data model to extract and store display-oriented fields from Jellyfin's MediaSourceInfo (bitrate, container, audioCodec, videoCodec, width, height). - Introduced PlayerEvent.SwitchVersion to orchestrate on-the-fly source switching. - Refactored PlayerViewModel to manage the lifecycle and UI state of version pickers natively.
Owner
Owner
Author
Author
Owner
Owner
|
Do let me know once the changes are pushed, will test and merge 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This commit introduces full support for selecting and playing different media versions grouped by the Jellyfin Merge Versions plugin. Key Features: