Repository navigation
Conversation
AVPlayer draws a server HLS stream's subtitle renditions itself, so they never reached Silo's overlay and showed in AVPlayer's default style whatever the viewer chose in subtitle settings. The player now hands its appearance to AVPlayer as an AVTextStyleRule on every remote HLS item, and again when the appearance changes: text color and opacity, the box (transparent when there is none), size relative to AVPlayer's own, font family and text edge. An appearance that matches the device leaves AVPlayer on the device's caption style. Position and the caption window stay AVPlayer's, because a rule can move a cue line but not with the overlay's video-rect geometry. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 50 minutes. View limit details
Comment |
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:
|
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. |
|
Visible effect: server-HLS subtitles now use the configured Silo appearance instead of AVPlayer’s default styling ( Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
Superseded by #970, which combines this change with the rest of the stack for review. |
Problem
Related issue: N/A
Validation tasks: changes #313 C1, C4; changes #314 C1, C4
AVPlayer draws a server HLS stream's subtitle renditions itself (a transcode's subtitle since #821). Those cues never reach Silo's subtitle overlay, so they appear in AVPlayer's default style, whatever the viewer chose in subtitle settings.
Approach
The player hands its subtitle appearance to AVPlayer as an
AVTextStyleRuleon every remote HLS item, and again whenever the appearance changes: text color and opacity, the box (transparent when there is none), size relative to AVPlayer's own, font family, and text edge. An appearance that matches the device leaves AVPlayer on the system caption style. Position and the caption window stay AVPlayer's, because a rule can move a cue line but not with the overlay's video-rect geometry.Affects iOS, tvOS and macOS; the text style API and constants exist on all three.
Validation
Evidence
Evidence: link to follow
Risks
The mapping hasn't been compared with the overlay on screen. Size scale, box padding and edge weight may differ from the overlay and need a look on each device.
Checklist
AI Disclosure
xcodebuild, XcodeGen) on a Mac build servicetextStyleRulesand theCMTextMarkupconstants. It found no problems.🤖 Generated with Claude Code
Note
Draw in-stream HLS subtitle renditions in Silo's appearance
HLSRenditionTextStyle, which converts the effective subtitle appearance intoAVTextStyleRulemarkup attributes: foreground color and opacity, character background, relative font size, edge style, and font family. Matching the system appearance produces no rules, so AVPlayer keeps its own style.PlayerViewModel.observeHLSRenditionTextStylewatches the appearance settings and passes recomputed rules toAetherPlaybackController.setHLSRenditionTextStyleRules.AetherPlaybackControllerstores the rules and applies them to the current AVPlayer item, and re-applies whenever the engine publishes a new item. Rules apply only when the active load's options enable native remote HLS; other items are unchanged.Macroscope summarized 8cfeda5.