Skip to content

Playback retry logic strengthening - #2038

Open
kvpt wants to merge 1 commit into
damontecres:mainfrom
kvpt:fix/playback-error-fallback
Open

kvpt wants to merge 1 commit into
damontecres:mainfrom
kvpt:fix/playback-error-fallback

Conversation

@kvpt

@kvpt kvpt commented Oct 4, 2026

Copy link
Copy Markdown

Description

My server that hosts Jellyfin stops the hard drives when no activity is detected.
So when I first launch a playback it's often time out.
And in this case the current code retry with allow allowAudioStreamCopy to true.
This cause another issue where the client receive the format : TS HEVC MP3 which result in no sound.

So I reworked the retry logic to do the following things :

  • Fail instead of transcoding when retries don't fix a non-format error
  • Only transcode the stream that failed when falling back from direct play

Related issues

Not sure if it also caused by a timeout but the issue #879 has the same TS HEVC MP3 behavior.

Testing

Added unit tests

Screenshots

AI or LLM usage

Claude Opus 5.5 used to generate the test code

…oding

Fail instead of transcoding when retries don't fix a non-format error
Only transcode the stream that failed when falling back from direct play
Add tests for playback error handling

This branch has not been deployed

No deployments
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