Skip to content

fix(player): update AetherEngine to the 7.28.3 sync and keep server HLS audio on the plan - #683

Merged
Quick104 merged 9 commits into
mainfrom
deps/aetherengine-upstream-7.28.3
Oct 9, 2026
Merged

Quick104 merged 9 commits into
mainfrom
deps/aetherengine-upstream-7.28.3

Conversation

@Quick104

@Quick104 Quick104 commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

AetherEngine 7.22.0 and later publish AVPlayer's own audio renditions on the remote-HLS bypass, under synthetic ids from 400000, and the engine's selectAudioTrack only logs there. Silo builds the audio picker from the plan's catalog tracks only while Aether publishes none, so after the engine update the picker on server remux and transcode HLS would list the one packaged rendition, and a pick would carry an id the server cannot replan. This updates AetherEngine to the fork's upstream 7.28.3 sync and keeps that picker on the plan.

Approach

  • Picker. On server remux and transcode HLS, the picker always builds its rows from the selected catalog version. The selected audio id comes only from the plan, and a pending pick never reaches the engine. Direct play and progressive remux keep the engine's tracks.
  • AetherEngine. Pinned to Silo-Server/AetherEngine 31047b05 (chore: sync upstream AetherEngine 7.28.3 into the Silo fork AetherEngine#16), with FFmpegBuild 3.6.0. Changes viewers will notice:
    • Injected ASS subtitles on server HLS are drawn on the corrected clock. The engine now keeps the plain rendition selected behind a suppressing output, so its picture-timing measurement runs. On a test transcode it measured item time 1.97 s ahead of the picture, which the overlay used to show early by.
    • Upstream fixes: Dolby Vision P8.1 at HEVC level 5.2 on Apple TV, HDR master refused during a tvOS 27 mode switch, several HEVC MP4 and M2TS fixes, software-path colour and range, the mute kept on software sessions, and a VP9 heap fix in FFmpeg 8.1.3.
    • A paused title stays paused when its item dies or is refused (for example behind the tvOS screensaver), now through upstream's play intent. A Play or Pause pressed in the iOS PiP window at that moment is no longer counted; Silo's own controls, Control Center and the Siri Remote are.
    • Fixes to upstream code from the engine PR's review: an HTTP source no longer crashes on a 206 with a non-positive Content-Range total, the audio-only player plays to the last sample below 1x, a crafted subtitle cue no longer stalls the main thread for seconds, and log redaction covers two more credential shapes.

Validation

  • Unit tests: the PlaybackProtocolV3, AetherPlaybackBoundary, MediaAuthorizationPlayback, ASSSubtitleRenderer and PlayerSurfaceLayout suites (161 tests) passed three runs in a row on the iOS simulator against 2d221aaa, 1fda333a and 58037700, and once against 31047b05, whose only engine-library change since 58037700 Silo does not use. MediaAuthorizationPlayback passed three runs in a row on the tvOS simulator too. The new picker test fails against the old guard.
  • CI failed MediaAuthorizationPlayback tests at the first two pins. The engine had selected the hidden ASS rendition while the item was still paused, so it joined AVPlayer's startup buffer, and these tests start playback with stall waiting off. chore: sync upstream AetherEngine 7.28.3 into the Silo fork AetherEngine#16 now selects it only once playback runs (2d221aaa). This branch pins that PR's head, 31047b05.
  • Builds: Silo for the iOS 27.0 simulator and SiloTV for the tvOS 27.0 simulator.
  • Simulator playback against a dev server (engine ebe83785, before the selection fix), audio output off:
    • Direct play: pause, resume and seek work; embedded ASS and an external SRT are drawn.
    • Server transcode HLS: the picker lists the file's two audio tracks; switching to the other one replans on the server and the checkmark follows. Injected ASS is drawn once by Silo's overlay with no system caption under it. A plain SRT is drawn by AVPlayer.
    • A TrueHD Atmos test file plays on the software path. tvOS direct play plays.
  • Not run: physical iPhone, iPad and Apple TV; TrueHD Atmos rendered to APAC (the simulator has no H.264 hardware decoder, so the native path that carries APAC is never chosen); PiP and AirPlay with subtitles.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-apple/pr-683/

Risks

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated; human verification on devices pending
  • Adversarial review: an independent review agent read the hand-merged engine code (relay, subtitle proxy, subtitle suppression, APAC reporting). It found three issues: the suppression ordering, an APAC decoder that rejects every packet going unreported, and a caller's byte limit being clamped. All are fixed in chore: sync upstream AetherEngine 7.28.3 into the Silo fork AetherEngine#16. The picker change here had no separate review.

🤖 Generated with Claude Code

Note

Update AetherEngine to 7.28.3 sync and keep server HLS audio on the plan

  • Pins AetherEngine to a new revision in project.yml and updates the SwiftPM resolution snapshot
  • Adds ApplePlaybackV3PlanAdapter.serverOwnsAudioTracks, which is true for remux HLS and transcode HLS deliveries
  • For server-owned HLS plans, audioPickerTracks now builds audio rows from the selected catalog version instead of Aether-published renditions, and returns no rows when the catalog version is missing
  • PlayerViewModel no longer pushes pending audio selections through Aether's local track-selection API for server-owned plans
  • Adds tests covering both original HTTP and progressive remux plans plus bypass-rendition handling on server HLS
  • Risk: remux/transcode HLS plans without a catalog version now show an empty audio picker — check audioPickerTracks in ApplePlaybackV3PlanAdapter.swift

Macroscope summarized 5492cfc.

Quick104 and others added 2 commits October 7, 2026 14:41
AetherEngine 7.22.0 publishes AVPlayer's audio renditions on the remote
HLS bypass, under synthetic ids from 400000, and its selectAudioTrack only
logs there. The picker used the plan's catalog tracks only while Aether
published none, so on server HLS it would have listed the one packaged
rendition, and a pick would have carried an id the server cannot replan.

On server remux and transcode HLS the picker now always builds its rows
from the selected catalog version, the selected audio id comes only from
the plan, and a pending pick never reaches the engine. Direct play and
progressive remux keep the engine's tracks.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Pins Silo-Server/AetherEngine ebe83785, the fork merged with upstream
7.28.3 and its unreleased fixes. FFmpegBuild moves to 3.6.0 with it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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 53 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: e208953c-41ac-494e-8cf6-a076f3ac0a68
📥 Commits

Reviewing files that changed from the base of the PR and between 320de76 and 5492cfc.

📒 Files selected for processing (2)
  • scripts/ci/apple-test-selector-contract.json
  • scripts/ci/select-apple-platforms.py

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 07d6aa22-b9e0-49b7-a6fd-6859a8ab411f
📥 Commits

Reviewing files that changed from the base of the PR and between ef9813f and 320de76.

⛔ Files ignored due to path filters (1)
  • iosApp/Silo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved is excluded by !**/Package.resolved
📒 Files selected for processing (4)
  • iosApp/Tests/PlaybackProtocolV3Tests.swift
  • iosApp/iosApp/Screens/Player/PlayerViewModel.swift
  • iosApp/iosApp/Screens/Player/ProtocolV3/ApplePlaybackV3PlanAdapter.swift
  • iosApp/project.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The Protocol V3 audio picker now uses catalog audio tracks for server-owned HLS plans, while other deliveries retain Aether-first inventory. Player selection handling avoids local Aether selection for server-owned tracks. Tests cover these rules, and the AetherEngine revision is updated.

Changes

Protocol V3 audio picker

Layer / File(s) Summary
Track source selection
iosApp/iosApp/Screens/Player/ProtocolV3/ApplePlaybackV3PlanAdapter.swift, iosApp/Tests/PlaybackProtocolV3Tests.swift, iosApp/project.yml
The adapter uses catalog tracks for remuxHLS and transcodeHLS plans. Tests cover HLS catalog inventory, missing catalog versions, and Aether inventory for originalHTTP and remuxProgressive. The AetherEngine revision changes.
Player selection handling
iosApp/iosApp/Screens/Player/PlayerViewModel.swift
The view model uses Aether’s active track ID and pending audio-index selection only when the server does not own audio tracks.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Possibly related PRs

Suggested reviewers: olivertgwalton

Merge Risk: ⚪ Minimal · up to 320de

No actionable issue is established for the audio-picker changes; merge after normal checks.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 71.43% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 3 files. (1 skipped: 1… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly identifies both primary changes: the AetherEngine update and the server HLS audio-selection behavior.
Description check Passed The description directly explains the server HLS audio changes, AetherEngine revision update, validation results, risks, and untested scenarios.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 71.43% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 3 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · 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.

@silo-kody

silo-kody Bot commented Oct 7, 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 ❌

The sync branch now selects a hidden ASS rendition only once its WebVTT has
been extracted, and takes it down at once when subtitles are turned off.
MediaAuthorizationPlaybackTests started playback with the rendition still
selected and stopped at rate 0 in CI.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@silo-kody

silo-kody Bot commented Oct 7, 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 ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Centralize server-relative authentication path validation
  • Enforce latest-link-wins centrally across deferred deep links

The engine now selects the hidden ASS rendition only once playback runs, so
a paused item never has it in its startup buffer. MediaAuthorizationPlayback
tests turned subtitles off before a start with stall waiting disabled, and in
CI they stopped at rate 0 on iOS and tvOS with the earlier pin.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@silo-kody

silo-kody Bot commented Oct 7, 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 ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Centralize server-relative authentication path validation
  • Enforce latest-link-wins centrally across deferred deep links

Head of Silo-Server/AetherEngine#16: since 2d221aaa it adds a guard so a
stale origin-rendition pick cannot drop a newer selection's suppression,
plus test-only changes.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@silo-kody

silo-kody Bot commented Oct 7, 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 ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Centralize server-relative authentication path validation
  • Enforce latest-link-wins centrally across deferred deep links

Head of Silo-Server/AetherEngine#16: since 1fda333a it fixes the bugs Kody
found in upstream code the sync takes. For Silo: an HTTP source no longer
crashes on a 206 with a non-positive Content-Range total, the audio-only
host plays to the last sample below 1x, a crafted cue no longer stalls the
main actor, and a delayed live revive no longer queues a stale restart.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@silo-kody

silo-kody Bot commented Oct 8, 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 ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Centralize server-relative authentication path validation
  • Enforce latest-link-wins centrally across deferred deep links

Head of Silo-Server/AetherEngine#16 after its review rounds: since 58037700
the engine library only adds a refusal for a sharedOutputRole change in a
session correction, which Silo does not use. The rest is aetherctl, tests
and docs.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@silo-kody

silo-kody Bot commented Oct 8, 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 ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Centralize server-relative authentication path validation
  • Enforce latest-link-wins centrally across deferred deep links

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 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-09T01:31:37.854596Z 5492cfc New commits
🔒 Security Review ✅ Completed 2026-10-09T01:33:17.613957Z 5492cfc New commits
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2a7a441106

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread iosApp/project.yml Resolved
The platform selector seals project.yml. This branch changes only the
AetherEngine revision line, which owns no source path, so the reviewed
snapshot and the selector seal are refreshed for it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Oct 9, 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 ❌

@Quick104
Quick104 merged commit beb8ab8 into main Oct 9, 2026
9 checks passed
@Quick104
Quick104 deleted the deps/aetherengine-upstream-7.28.3 branch October 9, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant