Skip to content

feat: improve track selection and restore audio-only for combined UMP#3229

Open
kikoso wants to merge 15 commits intofuto-org:masterfrom
kikoso:feat/ump-track-selection
Open

feat: improve track selection and restore audio-only for combined UMP#3229
kikoso wants to merge 15 commits intofuto-org:masterfrom
kikoso:feat/ump-track-selection

Conversation

@kikoso
Copy link
Copy Markdown

@kikoso kikoso commented Mar 31, 2026

This PR restores full functionality to the "Audio Only" mode when using combined UMP streams by implementing a new adapter-based bridging system that allows muxed video sources to be wrapped as audio-only equivalents. With this approach, the player can now correctly initialize playback and preserve request modifiers even when dedicated audio streams are missing due to bot-detection avoidance measures.

Together with this restoration, the update enhances track selection by integrating persistent audio and subtitle language preferences directly into the underlying ExoPlayer track selector, ensuring that internal manifest tracks are automatically prioritized based on the user's primary language and sticky subtitle settings. The user interface has also been refined in both the Video Detail and Short views to correctly display these internal manifest tracks in the quality selection menu, where a more robust deduplication algorithm ensures the list remains concise by showing only the best bitrate options per language.

Finally, the implementation resolves a bug where DASH audio manifests were being incorrectly assigned to video variables and improves overall stability through safer null-handling and reference management across the JavaScript-based source models.

Testing:

  • Set a primary language
  • Verify a UMP video plays on the primary language, if available.
  • Toggle "Prefer Original language"
  • Verify a UMP video plays on the original language.
  • Change language of video and audio in the UMP video settings, and verify it works.
  • Change subtitles and verify it works.

@kikoso kikoso force-pushed the feat/ump-track-selection branch from 994e511 to 9a6a78c Compare March 31, 2026 18:08
@kikoso kikoso force-pushed the feat/ump-track-selection branch from b4fb970 to 5d71dbc Compare March 31, 2026 19:03
@kikoso kikoso force-pushed the feat/ump-track-selection branch from dd18d3f to 85794ea Compare March 31, 2026 19:15
@kikoso kikoso marked this pull request as ready for review April 1, 2026 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants