Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change adds Dolby Vision and audio profile metadata decoding, centralizes Atmos and dynamic-range badge formatting, propagates audio hints through playback routes, updates phone and tvOS badges, and combines home resolution and dynamic-range overlays. Tests cover the new metadata and label behavior. ChangesPlayback metadata labeling and propagation
Estimated code review effort: 4 (Complex) | ~60 minutes Merge Risk: ⚪ Minimal · up to This change adds Dolby Atmos and Dolby Vision labeling while preserving existing playback behavior; no actionable merge-blocking risk remains beyond normal checks and review. Sequence Diagram(s)sequenceDiagram
participant Server
participant AudioTrack
participant PlayerTrack
participant PlaybackSessionBridge
participant DetailPlaybackFormatting
participant OverlayRegistry
Server->>AudioTrack: decode audio profile and video metadata
AudioTrack->>PlayerTrack: propagate audioProfile
PlayerTrack->>PlayerTrack: compute hasAtmosHint
PlaybackSessionBridge->>DetailPlaybackFormatting: request video and Atmos labels
DetailPlaybackFormatting-->>PlaybackSessionBridge: return formatted badges
OverlayRegistry->>OverlayRegistry: combine resolution and dynamic-range badges
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (1)
iosApp/Tests/DetailVersionSelectionTests.swift (1)
197-223: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winTest correctly targets profile-only Atmos detection, but depends on the missing wiring flagged in
DetailPlaybackFormatting.swift.Given the current
compactAudioLayoutimplementation (unchanged), theaudioValueLabelassertion at Lines 218-221 expecting"EAC3 Atmos"will fail, sincecompactAudioLayoutdoesn't consultprofile. Once the label-formatting fix is applied, this test should pass as written.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@iosApp/Tests/DetailVersionSelectionTests.swift` around lines 197 - 223, The new test in DetailVersionSelectionTests correctly covers profile-only Atmos detection, but the audio label path still ignores the track profile in DetailPlaybackFormatting. Update the audio formatting logic used by audioValueLabel, specifically compactAudioLayout and any helper it calls, so it consults DetailPlaybackFormatting.audioTrackIsAtmos(track) and appends Atmos when the profile indicates it even without a title hint. Keep the existing test as-is and ensure the labeling flow for versions[0] and selectedAudioTrackIndex nil returns the expected Atmos string.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@iosApp/iosApp/Screens/Detail/DetailPlaybackFormatting.swift`:
- Around line 524-533: Update the audio label formatter so it uses the existing
audioTrackIsAtmos helper when building audioTitle/compactAudioLayout. Right now
the formatter only inspects channelLayout, so Atmos tracks identified via
profile, title, or embeddedTitle still render as plain 5.1; adjust the logic in
DetailPlaybackFormatting to append or prefer “Atmos” whenever
audioTrackIsAtmos(_:) returns true.
---
Duplicate comments:
In `@iosApp/Tests/DetailVersionSelectionTests.swift`:
- Around line 197-223: The new test in DetailVersionSelectionTests correctly
covers profile-only Atmos detection, but the audio label path still ignores the
track profile in DetailPlaybackFormatting. Update the audio formatting logic
used by audioValueLabel, specifically compactAudioLayout and any helper it
calls, so it consults DetailPlaybackFormatting.audioTrackIsAtmos(track) and
appends Atmos when the profile indicates it even without a title hint. Keep the
existing test as-is and ensure the labeling flow for versions[0] and
selectedAudioTrackIndex nil returns the expected Atmos string.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 56df70f8-19eb-4f82-bbe2-5538ce3089c7
📒 Files selected for processing (3)
iosApp/Tests/DetailVersionSelectionTests.swiftiosApp/iosApp/Networking/Models.swiftiosApp/iosApp/Screens/Detail/DetailPlaybackFormatting.swift
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8780f1bba0
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
8780f1b to
480efd9
Compare
|
Addressed the review threads in 480efd9: the profile-only Atmos test is now throwable, detail audio labels call the Atmos detector before falling back to plain channel layout, and loopback PlayerTrack metadata now carries audioProfile through the route planner / PlayerViewModel / AVPlayer backend so profile-only EAC3 Atmos can set preservesAtmos and mayClaimAtmos correctly. |
3974269 to
55f4db2
Compare
55f4db2 to
696838c
Compare
|
Rebased onto current |
696838c to
71caa2a
Compare
71caa2a to
9fc614c
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@iosApp/iosApp/Overlays/OverlayRegistry.swift`:
- Around line 114-120: Update combinedDynamicRangeLabel to return "Dolby Vision"
for Dolby Vision values, but preserve the original non-Dolby-Vision value
instead of collapsing it to "HDR", matching
DetailPlaybackFormatting.heroVideoBadgeLabel behavior for HDR10, HLG, and other
raw values.
In `@iosApp/iosApp/Screens/Detail/DetailPlaybackFormatting.swift`:
- Around line 552-571: Update heroVideoBadgeLabel’s normalizedDynamicRange
closure to return “Dolby Vision” for Dolby Vision values and collapse every
other non-empty dynamicRange value to the literal “HDR”, matching
OverlayRegistry.combinedDynamicRangeLabel and keeping combined labels consistent
across hero and home-card badges.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: ba34b5e7-e3b1-4168-a9bb-226a20671b30
📒 Files selected for processing (14)
iosApp/Tests/DetailVersionSelectionTests.swiftiosApp/Tests/HDRDisplayCriteriaPolicyTests.swiftiosApp/iosApp/Networking/Models.swiftiosApp/iosApp/Overlays/OverlayExtractors.swiftiosApp/iosApp/Overlays/OverlayRegistry.swiftiosApp/iosApp/Screens/Detail/DetailPlaybackFormatting.swiftiosApp/iosApp/Screens/Detail/Phone/PhoneHeroMetadata.swiftiosApp/iosApp/Screens/Player/AVPlayerRoute/AVPlayerBackend.swiftiosApp/iosApp/Screens/Player/ApplePlaybackRoutePlanner.swiftiosApp/iosApp/Screens/Player/PlaybackSessionBridge.swiftiosApp/iosApp/Screens/Player/PlayerTrack.swiftiosApp/iosApp/Screens/Player/PlayerViewModel.swiftiosApp/iosApp/tvOS/Components/TVFocusMarquee.swiftiosApp/iosApp/tvOS/Screens/Detail/TVDetailHero.swift
🚧 Files skipped from review as they are similar to previous changes (5)
- iosApp/iosApp/Networking/Models.swift
- iosApp/iosApp/Screens/Player/PlayerViewModel.swift
- iosApp/iosApp/Screens/Player/PlayerTrack.swift
- iosApp/iosApp/Screens/Player/AVPlayerRoute/AVPlayerBackend.swift
- iosApp/iosApp/Screens/Player/ApplePlaybackRoutePlanner.swift
Decode the optional audio track profile field and include it in the shared Atmos detector. This is additive for older servers and lets tvOS recognize Atmos when the stream profile carries the signal but the title and layout do not.
The combined card formatter expanded DV when hero labels were unified. Restore compact DV card labels while keeping full Dolby Vision text on hero and player surfaces.
e128fbe to
411e62e
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
Silo's pull request guidance changed today (#658). A PR that changes what a user sees now needs before-and-after evidence in its Evidence section, and a PR with no visible change says Missing here: Before-and-after screenshots of the iOS and tvOS detail heroes for an Atmos or Dolby Vision title, showing the new format labels. The rules are in Show visible changes, and the PR template shows the Evidence section layout. I've converted this PR to draft for now. Mark it ready for review once the Evidence section is filled in. Generated by Claude Code |
Problem
Some streams expose Dolby Atmos only in the audio stream
profile, while Dolby Vision may be represented bydolby_vision,dv_profile,video_range, orvideo_range_type. The Apple client could therefore render profile-only Atmos as plain 5.1/EAC3, reduce Dolby Vision to generic HDR, show resolution and dynamic range as separate badges, or collapse a known carrier to genericATMOSduring playback.Approach
Decode the optional audio-profile and Dolby Vision fields already emitted by the server. Preserve the audio profile through
PlayerTrackand loopback planning so profile-only EAC3 Atmos keeps the existingpreservesAtmos/mayClaimAtmosbehavior.Centralize detail formatting in
DetailPlaybackFormatting: EAC3 Atmos renders asDD+ Atmos, TrueHD Atmos asTrueHD Atmos, and unknown Atmos codecs retain the conservativeAtmosfallback. Dolby Vision evidence takes precedence over generic HDR.Phone and tvOS detail heroes use one full video chip such as
4K Dolby Visionor4K HDR. Compact home-card overlays use4K DVandAtmos; combined non-Dolby formats preserve specific labels such as4K HDR10and4K HLG. Carrier-specific audio labels are reserved for roomier detail and player metadata. Deliberately placing resolution and HDR overlays in different corners keeps them separate. The focused-card marquee and in-player hero strip combine video quality and preserve the precise Atmos carrier. The player strip follows the selected session audio track, falling back to the server-effective/default track when needed. No stored overlay preference is rewritten.Offline media constructors retain existing behavior by leaving unavailable profile and Dolby Vision metadata unset.
Verification
xcodegen generate.SiloTVbuilds successfully for the tvOS Simulator with code signing disabled.git diff --check origin/main...HEADpasses.This does not claim device-level Atmos output testing.
Risks & follow-up
The overlay change is presentation-only and preserves intentional different-corner layouts. The compact server summary remains
Atmos; detail and player carrier labels derive from full audio-track metadata instead. Runtime decoder diagnostics also remain unchanged so they continue to describe the actual output stream rather than source-file metadata.AI-use disclosure
Implemented with a combination of Claude Code and Codex assistance, with human oversight.
Summary by CodeRabbit
New Features
Bug Fixes