Repository navigation
Description
What happened
Jellyfin Web 12.1 in desktop Chrome cannot direct play a file that Silo also offers to transcode. Silo sets TranscodingSubProtocol: "hls" on every media source in PlaybackInfo, including ones it marks SupportsDirectPlay: true (internal/jellycompat/handlers_playback.go, the unconditional dto.TranscodingSubProtocol = "hls").
Jellyfin Web then builds the direct URL (/Videos/{id}/stream.mkv?Static=true...) because the source supports direct play (playbackmanager.js). Its HTML video player picks hls.js whenever isHls(mediaSource) is true, and isHls only checks TranscodingSubProtocol (src/utils/mediaSource.ts, src/plugins/htmlVideoPlayer/plugin.js:647 at tag v12.1). hls.js receives the raw MKV, fails with manifestParsingError, and the video never starts. Jellyfin defaults this field to http, so on Jellyfin the direct URL goes to the native <video> element.
Steps to reproduce
Reproduced on a Silo dev deployment (main at b93c8f5) with Jellyfin Web 12.1 and Google Chrome 156:
- Sign in to Jellyfin Web and leave the max streaming bitrate on Auto.
- Play an h264/AAC MKV episode that Chrome can direct play.
- PlaybackInfo returns
SupportsDirectPlay: truetogether with aTranscodingUrl. The browser requestsGET /Videos/{id}/stream.mkv(200), and the console logsHLS Error: Type: networkError Details: manifestParsingError Fatal: true. Playback stays on the loading spinner, andcurrentTimenever advances within 60 seconds.
With the max streaming bitrate lowered so that PlaybackInfo offers only the transcode, the same episode plays over HLS.
Expected behavior
A direct-play source plays in the browser's native video element. TranscodingSubProtocol reads hls only when the client will actually play the HLS TranscodingUrl.
Silo version / commit
main at b93c8f5
Deployment
Silo dev sandbox
Area
Jellyfin compatibility
Clients affected
- Jellyfin-compat client (Jellyfin Web in desktop Chrome; other clients that branch on
TranscodingSubProtocolnot checked)
Relevant logs
Browser console (Jellyfin Web 12.1, Chrome 156):
[error] HLS Error: Type: networkError Details: manifestParsingError Fatal: true
Server request log for the attempt (request IDs and client fields removed):
method=POST path=/Items/<item>/PlaybackInfo status=200
method=GET path=/Videos/<item>/stream.mkv status=200
Technical notes
- Only checked with an MKV source in Chrome 156. Whether MP4 direct play fails the same way was not checked.
- Jellyfin Web retries with transcoding only on some error types; here the player stayed on the spinner without a second PlaybackInfo request.
- Found while verifying [bug] Jellyfin Web draws no ASS/SSA subtitles because /System/Configuration/encoding returns 404 #2856 / fix(jellycompat): serve the encoding config Jellyfin Web needs to draw ASS subtitles #2857. Those change a different file.
AI harness
Claude Code
AI tool(s)
Claude Code agent with shell access
AI model(s)
claude-opus-5-5
AI involvement
Fully AI-generated. An AI agent found it while verifying another fix, reproduced it on a dev deployment, and drafted this issue; no person has verified it yet.
Independent or adversarial review
n/a
Confirmations
- I searched open and recently closed issues and pull requests, and this is not already reported
- I reproduced this myself on a real deployment (the agent reproduced it on a dev deployment)
- Any logs provided are raw apart from marked redactions and are not AI-summarized; if none were available, I said so above
Source: found in review of #2857
Activity
fix(jellycompat): report hls sub-protocol only for sources played via…
fix(jellycompat): report hls sub-protocol only for sources played via…