Skip to content

fix(player): honor the Dolby Vision setting when playing the original file - #737

Merged
Quick104 merged 1 commit into
mainfrom
fix/dolby-vision-setting-originals
Oct 11, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/dolby-vision-setting-originals

Conversation

@Quick104

@Quick104 Quick104 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

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 dvh1 display 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 = .baseLayerOnly serves the HDR10 / HLG base layer (hvc1, no dvcC, no SUPPLEMENTAL-CODECS) and requests HDR10 / HLG display criteria instead of Dolby Vision.

  • AetherLoadSpec.dolbyVisionHandling(hdrEnabled:dolbyVisionEnabled:) maps the setting: .automatic when Dolby Vision is effectively on, .baseLayerOnly otherwise. "Effectively on" means HDR and Dolby Vision are both on, which is what the Settings row shows.
  • All three AetherLoadSpec initializers (server plan, downloads, legacy direct URL) take the handling and put it in LoadOptions. PlayerViewModel passes 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

  • Live check: a tvOS 27.0 simulator against a sandbox built from silo-server main, playing a Dolby Vision Profile 8 movie. The server planned delivery=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.
    • This branch: the engine logged dolbyVisionHandling=baseLayerOnly: DV Profile 8 presents its base layer; the format clamp and the criteria request leave Dolby Vision unclaimed.
    • This branch with Dolby Vision back on: no base-layer line, same as main.
  • Limits: the simulator has no HDR display and skips display criteria, so these runs show the setting reaching the engine, not a TV's mode. In the pinned engine (AetherEngine.swift around 4333 and 4382), the branch that writes that line also switches the display-criteria codec tag from dvh1 to hvc1. A physical Apple TV was not tested.
  • Tests: new testDolbyVisionSettingMapsToAetherHandlingForEveryLoadSpec. AetherPlaybackBoundaryTests (62) and PlaybackProtocolV3Tests (81) pass on the tvOS simulator. Three synthetic-HLS tests in MediaAuthorizationPlaybackTests fail with NSURLErrorDomain -1008 in that simulator, and they fail the same way on main.
  • Builds: SiloTV, Silo (iOS simulator) and SiloMac build.
  • Validation tasks: none

Evidence: https://evidence.siloserver.org/r/silo-apple/issue-732/

Risks

  • Turning HDR off now also drops Dolby Vision from original files: they play as HDR10 / HLG. That matches the Settings screen, where the Dolby Vision row reads Off while HDR is off.
  • The setting reaches AetherEngine on every delivery. On a server HLS delivery the engine plays through AVPlayer's own HLS path and doesn't read this option, but with Dolby Vision off the device no longer reports Dolby Vision to the server.

Follow-ups

  • Android has the same gap: its Dolby Vision switch changes the server capabilities but not the local decoder choice for a directly played original. Parity issue: [bug] Dolby Vision setting doesn't change the decoder for directly played originals silo-android#550.
  • When Dolby Vision is off, Android still reports Profile 5 to the server, because Profile 5 has no base layer to fall back to. Apple does not. That predates this change.
  • User manual: no change needed. The site doesn't describe what the Dolby Vision switch does.

AI Disclosure

  • Harness: Claude Code (running in T3 Code)
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, pending human review
  • Adversarial review: a multi-agent code review (three finders and a validation check) ran on the diff before this PR opened. It found no defect in the change. Its one fix renamed the test to say what it covers. A cross-provider adversarial review (Codex, gpt-6.1-sol, reviewed 3091ba4, source-only) checked every load and reload path, the engine's profile routing, settings timing, the HDR footer copy, and Android parity, and found no defects.

🤖 Generated with Claude Code

… 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

silo-kody Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Oct 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e402e3b8-94bb-47f3-9961-0f00e3ebf5ae

📥 Commits

Reviewing files that changed from the base of the PR and between 12c778c and 3091ba4.


📒 Files selected for processing (3)
  • iosApp/Tests/AetherPlaybackBoundaryTests.swift
  • iosApp/iosApp/Screens/Player/AetherLoadSpec.swift
  • iosApp/iosApp/Screens/Player/PlayerViewModel.swift

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T20:38:06.385432Z 3091ba4 PR opened
🔒 Security Review ✅ Completed 2026-10-11T20:38:36.830947Z 3091ba4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-triage silo-triage Bot added bug Something isn't working impact: playback Can't play, stalls, or wrong media priority: P2 Limited scope, workaround exists, or polish labels Oct 11, 2026
@Quick104
Quick104 merged commit 5a9c189 into main Oct 11, 2026
12 of 14 checks passed
@Quick104
Quick104 deleted the fix/dolby-vision-setting-originals branch October 11, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: playback Can't play, stalls, or wrong media priority: P2 Limited scope, workaround exists, or polish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Dolby Vision setting is ignored when playing the original file

1 participant