Repository navigation
Conversation
… row A mid-play pick of an embedded subtitle on the open file needs the row's FFmpeg stream index. The client derived it by counting embedded catalog tracks against embedded inventory rows, and any disagreement between the two lists named another stream or none. None meant the pick fell back to the inventory sidecar URL: a whole-file server extraction of a track Aether was already demuxing. The row now answers first: its stream_index when the server publishes it (contract C1), else the embedded_stream_index the server puts on every embedded sidecar URL. Ordinal matching remains the last resort, and the reverse lookup no longer maps a stream onto a row that names another one. The picker, the local-switch check, the plan intent and persistence all read the same resolution. container_track_id and native_selectable are decoded too; all three are optional, so plans from servers without them decode as before. 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 51 minutes. View limit details
Comment |
|
Embedded subtitle selection now resolves the selected inventory row to its own FFmpeg stream, changing which subtitle cues render and avoiding the catalog-order fallback — evidence is missing on iPhone, iPhone Duo folded and open, iPad, Mac, and Apple TV. Add a recording on each device showing selection and the resulting subtitle playback, labeled with device and build/commit (and Duo state); the selection flow and switching timing are part of the change. Suggested fix: No diff; attach the requested recordings under Evidence or replace the placeholder with the evidence page link. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
Superseded by #970, which combines this change with the rest of the stack for review. |
Problem
Related issue: N/A
Validation tasks: changes #313 C3, C4; changes #314 C3, C4
In direct play, Aether already demuxes every embedded subtitle of the open file, so switching between them should be instant. To pick one, the app needs the track's FFmpeg stream index, and it worked that out by counting embedded tracks in the catalog against embedded rows in the plan's inventory. When the two lists disagree, the pick names another stream, or none. With none, the app falls back to the row's sidecar URL, and the server extracts the track by reading the whole source file.
Approach
stream_indexwhen the server sends one (contract C1, from feat(playback): honor native subtitle limitations and mark switchable tracks silo-server#3271), else theembedded_stream_indexquery parameter the server already puts on every embedded sidecar URL. Counting catalog tracks is the last resort. The reverse lookup no longer matches a stream to a row that names a different one.container_track_idandnative_selectableare decoded too. All three fields are optional, so plans from current servers decode as before.Affects iOS, tvOS and macOS. This is stacked on #953 only so the all-track rendition change can build on both; it doesn't need #953.
Validation
Evidence
Evidence: https://evidence.siloserver.org/r/silo-apple/pr-954/
Risks
None identified. The URL fallback uses the same stream-index namespace as
stream_indexandsubtitle.embedded.stream_index.Checklist
AI Disclosure
xcodebuild, XcodeGen) on a Mac build service🤖 Generated with Claude Code