Repository navigation
Conversation
A server_remux_hls plan extracted the selected embedded text track as a whole-file sidecar. The server can carry it as a WebVTT SUBTITLES rendition of the remux playlist instead, once the client lists hls_remux_subtitle_renditions_v1 next to hls_subtitle_renditions_v1. SequencedPlayback adds the feature to start and replan requests only when the server advertises it (in its /api/v2 capability features or a decision's server_features) and the request already lists hls_subtitle_renditions_v1, the same gate buffering_quality_v1 uses, so Cast contexts never ask. validateForMedia3, the session projection and the staged-replan subtitle check accept hls_rendition on server_remux_hls as well as server_transcode_hls. A failed rendition mount still replans with subtitle_hls_rendition_failed for the sidecar plan. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 59 minutes. View limit details
Comment |
|
The visible playback change is that embedded text subtitles on copy-remux HLS are carried as playlist renditions instead of whole-file sidecars; evidence is missing for Android phone, tablet, foldable (folded and open), and Android TV. Please add before-and-after playback recordings using the same subtitle-bearing remux sample, showing subtitle selection and when subtitles appear, and identify the device and build or commit for each capture. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
Superseded by #770, which combines this change with the rest of the stack for review. |
Problem
Related issue: Silo-Server/silo-server#1406
Validation tasks: changes #323 C4; changes #324 C4
When the server copy-remuxes a file to HLS (
server_remux_hls) and the viewer picks an embedded text subtitle, the phone and TV apps got the track as a whole-file sidecar, which the server extracts by reading the entire source. The server can carry the track as a WebVTTSUBTITLESrendition of the remux playlist instead, as it already does for transcodes, once a client listshls_remux_subtitle_renditions_v1next tohls_subtitle_renditions_v1. The apps now ask for it and accept the result.Approach
SequencedPlaybackaddshls_remux_subtitle_renditions_v1to start and replan requests only when the server advertises it, in its/api/v2capability features or a decision'sserver_features, and the request already listshls_subtitle_renditions_v1.buffering_quality_v1uses the same gate, so Cast contexts never ask.validateForMedia3, the session projection and the staged-replan subtitle check accepthls_renditiononserver_remux_hlsas well asserver_transcode_hls.subtitle_hls_rendition_failed, and the server answers with the sidecar plan.main.Validation
./gradlew testDebugUnitTest: pass, 6,629 tests, 0 failures. New tests cover the feature gate on start and replan requests, a copy-remux rendition plan that mounts no sidecar, and a rendition candidate committing without a sidecar artifact../gradlew :android-shared:lintDebug :androidApp:lintDebug :androidTvApp:lintDebug: pass, no new findings.:androidApp:assembleDebugand:androidTvApp:assembleDebug: pass.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-732/
Risks
A server that doesn't advertise the feature gets the same requests as before.
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Accept HLS subtitle renditions on
SERVER_REMUX_HLSplansAdds the
hls_remux_subtitle_renditions_v1protocol feature so copy remuxes can carry HLS subtitle renditions, gated on both the basehls_subtitle_renditions_v1client feature and the server advertising the remux feature.PlaybackDelivery.carriesHlsSubtitleRendition()(true forSERVER_TRANSCODE_HLSandSERVER_REMUX_HLS) and replaces the transcode-only delivery checks inPlaybackDecisionResponseV3.validateForMedia3, PlaybackSessionManager.kt, and PlaybackV3Session.ktgatedForHlsRemuxSubtitleRenditions()extensions on start and replan requests; SequencedPlayback.kt applies the gate when building start and replan wire bodiesSERVER_REMUX_HLSsubtitle renditions; check thehls_remux_subtitle_renditions_v1advertisement path in/api/v2features andserver_features.Macroscope summarized d3a4ad0.