Skip to content

Fix audio track not persisting across episode transitions#5326

Open
skalthoff wants to merge 2 commits intojellyfin:masterfrom
skalthoff:fix/audio-track-persistence
Open

Fix audio track not persisting across episode transitions#5326
skalthoff wants to merge 2 commits intojellyfin:masterfrom
skalthoff:fix/audio-track-persistence

Conversation

@skalthoff
Copy link
Contributor

Changes
Removed an unnecessary reset of audioStreamIndex in startItem() that was overriding the language preference already set by buildExoPlayerOptions(). The existing mechanism that stores the user's audio language was working correctly—it was just being immediately undone.

Code assistance
Debugging guidance to trace the audio preference flow and identify where it was being reset.

Issues

When transitioning to the next episode, the user's audio track selection
was being reset because startItem() was clearing audioStreamIndex after
buildExoPlayerOptions() had already set it from the stored language
preference.

This removes the unnecessary reset, allowing the language preference
(stored via lastPlayedAudioLanguageIsoCode) to persist correctly.
@skalthoff skalthoff marked this pull request as ready for review January 12, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant