Repository navigation
fix(player): honor the Dolby Vision setting when playing the original file - #737
Conversation
… file Turning Dolby Vision off only changed the capabilities sent to the server. An original file is opened by AetherEngine, which was never told, so a Dolby Vision Profile 8.1 original kept playing as Dolby Vision and the TV was still asked for dvh1 display criteria. The engine swap in #180 dropped the local base-layer fallback the setting had when it was added. Pass LoadOptions.dolbyVisionHandling = .baseLayerOnly into every Aether load (server plan, downloads, legacy direct) whenever Dolby Vision is not effectively on, matching what the Settings row shows. Profile 7 / 8.1 / 8.4 sources then play as their HDR10 / HLG base layer; a Profile 5 source has no base layer and stays Dolby Vision. Closes #732 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 30 minutes. View limit details
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 |
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. |
Closes #732
Problem
The Dolby Vision switch in Settings > Playback does nothing for videos that play from the original file. It only changes the capabilities this device reports to the server. AetherEngine opens the original file itself and is never told about the setting. With Dolby Vision off, a Dolby Vision Profile 8.1 original still plays as Dolby Vision, and on Apple TV the engine still asks the TV for
dvh1display criteria.The switch used to work. e9bd775 added it with a local base-layer fallback (
DolbyVisionPolicy). #180 replaced the engine and deleted that policy without wiring an equivalent.Solution
AetherEngine already has the fallback:
LoadOptions.dolbyVisionHandling = .baseLayerOnlyserves the HDR10 / HLG base layer (hvc1, nodvcC, noSUPPLEMENTAL-CODECS) and requests HDR10 / HLG display criteria instead of Dolby Vision.AetherLoadSpec.dolbyVisionHandling(hdrEnabled:dolbyVisionEnabled:)maps the setting:.automaticwhen Dolby Vision is effectively on,.baseLayerOnlyotherwise. "Effectively on" means HDR and Dolby Vision are both on, which is what the Settings row shows.AetherLoadSpecinitializers (server plan, downloads, legacy direct URL) take the handling and put it inLoadOptions.PlayerViewModelpasses it the same way it passes the deinterlace settings.With Dolby Vision on, nothing changes. With it off, Profile 7, 8.1 and 8.4 sources play as their base layer. A Profile 5 source has no base layer, so it stays Dolby Vision, as it did before #180. The setting applies at load time, like the other playback settings.
Validation
main, playing a Dolby Vision Profile 8 movie. The server planneddelivery=original_http. Dolby Vision was set off for that device through the settings API, with HDR on.main: the engine logged no base-layer line and kept its Dolby Vision route.dolbyVisionHandling=baseLayerOnly: DV Profile 8 presents its base layer; the format clamp and the criteria request leave Dolby Vision unclaimed.main.AetherEngine.swiftaround 4333 and 4382), the branch that writes that line also switches the display-criteria codec tag fromdvh1tohvc1. A physical Apple TV was not tested.testDolbyVisionSettingMapsToAetherHandlingForEveryLoadSpec.AetherPlaybackBoundaryTests(62) andPlaybackProtocolV3Tests(81) pass on the tvOS simulator. Three synthetic-HLS tests inMediaAuthorizationPlaybackTestsfail withNSURLErrorDomain -1008in that simulator, and they fail the same way onmain.SiloTV,Silo(iOS simulator) andSiloMacbuild.Evidence: https://evidence.siloserver.org/r/silo-apple/issue-732/
Risks
Follow-ups
AI Disclosure
🤖 Generated with Claude Code