Repository navigation
fix(player): offer Skip Credits in every credits range - #915
Conversation
The player read only the singular intro/recap/credits fields, which hold the first occurrence of each kind. An episode with two credits ranges showed Skip Credits only in the first one. Read marker_segments from v2 watch detail, download manifests and markers_updated events, keep every occurrence, and point the intro, recap and credits ranges at the occurrence under the playhead. Skips cover only that occurrence and never the content between two. Responses without marker_segments fall back to the singular fields. Closes Silo-Server#914
Credits auto-skip now remembers every credits range it skipped, so seeking back into credits already skipped plays them. After Skip Credits reaches the end of the file, the item counts as finished only while the playhead stays in the final credits range. Drop the unused preview fallback.
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:
|
|
Visible change; evidence is incomplete.
Suggested fix (no diff): publish these recordings on the evidence page and update the Evidence section to identify the Mac and both Duo states. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
Mac: right, the Evidence section contradicted the summary. It now says the Mac is reached through the shared view model (a second intro's prompt and credits auto-skip) and that those paths have unit-test and SiloMac regression coverage but no recording. iPhone Duo: no change. It uses the same iOS player controls captured on iPhone and iPad, and this change affects only when the existing pill appears, not its layout in either fold state. |
Problem
Closes #914
Related issue: Silo-Server/silo-server#1147
Validation tasks: unblocks #311 C1; #312 C1
When an episode has more than one credits range, the iPhone, iPad and Apple TV players offer Skip Credits only in the first one. Viewers have to scrub through the second range by hand. Episodes like this come from TheIntroDB for real titles, for example Game of Thrones S02E03. The player read only the singular
intro,recapandcreditsfields. The server fills those with the first occurrence of each kind, and the app never readmarker_segments, which lists every occurrence.Approach
The player now reads
marker_segmentsfrom v2 watch detail, download manifests (from the server and from the copy saved on the device) andmarkers_updatedevents. It keeps every occurrence. The intro, recap and credits ranges the player already tracks now follow the playhead: they hold the occurrence that is playing, else the last one played, else the next one. Skip controls, auto-skip and the intro prompt therefore act on one occurrence at a time. A skip never covers the content between two occurrences, matchingdocs/markers-api.mdand the web player. Responses withoutmarker_segmentsfall back to the singular fields. With a single occurrence of each kind, behaviour is unchanged.Two latches now track each occurrence separately. Credits auto-skip remembers every credits range it has skipped, as recap auto-skip already did, so seeking back into skipped credits plays them. After Skip Credits runs to the end of the file, the item counts as finished only while the playhead stays in the final credits range, not in the scene before it.
This covers iOS, iPadOS, tvOS and macOS, streamed and downloaded. The Mac player shows only the intro prompt, so the change reaches it through intro occurrences and credits auto-skip. Preview skip is out of scope. No server or Android change is needed: the server already sends
marker_segments, and Android is tracked in Silo-Server/silo-android#693.Validation
SWIFT_VERSION=5on the command line, because the pinned AetherEngine does not compile there in Swift 6 mode. CI builds with Xcode 27.markers_updatedevent. Unit tests cover the code paths for downloads and realtime events.Evidence
Evidence: https://evidence.siloserver.org/r/silo-apple/pr-915/
Surface and build: iPhone 17 Pro and iPad Pro 13-inch (M5) simulators on iOS 26.5, and an Apple TV 4K (3rd generation) simulator on tvOS 26.5. Before is main at b514800; after is this branch. iPhone Duo was not captured: it runs the same iOS player controls as iPhone and iPad, and the change only alters when the existing Skip Credits pill appears, not its layout. Mac was not captured. Its player has no Skip Credits control, but it shares the player view model, so a second intro's prompt and credits auto-skip in a later credits range change there too. Unit tests and the SiloMac regression job cover those paths; there is no recording of them.
Risks
Low. The change only alters which range the player tracks when a kind occurs more than once. Older servers that omit
marker_segmentskeep the previous behaviour.Checklist
AI Disclosure
previewparameter, now removed. A second review of the fixes found no correctness issues. Both reviewers noted that the latch fixes were tested only at the policy level, so the final-credits check moved into a tested helper.