Repository navigation
fix(playback): keep remote audio tracks in picker - #215
Conversation
Use the selected catalog version when a Protocol V3 route publishes no Aether audio inventory, while preserving Aether authority and local selection for routes that do publish tracks. Fixes #214
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (3)
Included review availability: 2 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour. 📝 WalkthroughWalkthroughProtocol V3 audio picker publication now falls back to selected catalog audio tracks when Aether publishes no audio inventory. Non-empty Aether inventory remains authoritative. Pending selections continue to resolve against native Aether tracks. ChangesProtocol V3 audio selection
Merge Risk: ⚪ Minimal · up to The localized audio-picker fallback is supported by focused regression coverage and validation, and no actionable merge-blocking risk remains beyond normal checks and review. Sequence Diagram(s)sequenceDiagram
participant Aether
participant PlayerViewModel
participant ApplePlaybackV3PlanAdapter
participant Catalog
Aether->>PlayerViewModel: Publish audio inventory
PlayerViewModel->>ApplePlaybackV3PlanAdapter: Project picker tracks
ApplePlaybackV3PlanAdapter->>Catalog: Read selected version audio tracks
Catalog-->>ApplePlaybackV3PlanAdapter: Return catalog tracks
ApplePlaybackV3PlanAdapter-->>PlayerViewModel: Return picker tracks
PlayerViewModel->>Aether: Resolve pending selection against native tracks
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Linked Issues checkExplanation The changes satisfy issue
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Problem
Protocol V3 remote playback can publish no selectable audio inventory through Aether even though the selected catalog file has multiple audio tracks. The Apple player replaced its picker state with that empty engine inventory, so the in-player Audio & Subtitles sheet omitted the Audio section.
Closes #214.
Solution
selected_tracks.audio.indexand retain the server ordinal used by the existingaudio_track_changedreplan flow.The server already accepts and preserves audio selection ordinals, so no server change is required.
Validation
PlaybackProtocolV3Tests: 43 passed, 0 failed, 0 skipped.Lean already. Ship.Risk
The fallback is deliberately narrow: it applies only when Aether publishes no audio tracks and both a Protocol V3 plan and selected catalog version are available. Original/offline and fully probed routes retain their existing engine inventory and local-selection behavior.
Visual evidence
Not attached because the preserved simulator contains private media metadata that should not be uploaded as public PR evidence. The focused regression tests cover the missing-inventory case, selected ordinal, stream-index mapping, server ordinal mapping, and engine-inventory precedence.
AI disclosure
OpenAI GPT-5 implemented and reviewed this change using the Codex desktop app. No additional AI model or agent harness was used. Local build and test validation used the repository's Mac builder workflow and Xcode.
Summary by CodeRabbit
New Features
Bug Fixes