Repository navigation
fix(vod): preserve seekability through bounded source recovery - #713
Conversation
seek(to:) names the forward-only rejection and the 0.75 s landing rule, canSeek and isSourceSeekable sit beside it, and sourceOpenPolicy is a LoadOptions row with its defaults, instead of two prose sections under "Public but not host API". Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS
|
Thank you. Merged into main ( Before the merge I checked it against a real origin: a 25 GB 4K mkv from a Jellyfin server on the LAN, as a static download URL. The same aetherctl runs went through 7.30.0 and this branch:
One follow-up on top ( |
…ved async poll CI run 37722262358 failed three SourceOpenRecoveryTests while every other suite on the runner ran 50 to 80 times slower than locally. Each test drove the reader into a short window (a slot wait of at most 4 s, a body stall, the alternate data request) and then acted on it from an async test task polling every 20 ms. On a starved cooperative pool that poll came back too late: the teardown test's slot wait had already given up, so its waiting == 1 never recurred and it hung into the 2-minute limit; the data retry and the held connection hit an engine timeout of their own and failed on an error they were not about (noResponse, a restart from byte 0). ProbeTestTrigger runs the step on its own thread, which is where ProbeTestJob already runs the engine half, and a missed window now fails at once with a message instead of hanging. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS
|
Released in 7.31.0 ( |
Summary
Recover unanswered HTTP VOD opens within caller-selected budgets without silently downgrading a seekable source. Report actual source/seek capability and native seek landings so a known duration cannot masquerade as working seeking.
What changed
isSourceSeekable/canSeek, reject unsupported forward-only seeks and ignore unreachable saved positions.Test plan
swift test --jobs 4 --filter 'SourceOpen|VODSeek|OriginRequestBudget|AVIOReader|ProbeCancellation|ProbeHTTP|CancellableLoad|PublicAPIDocumentationTests|DocumentedConstantsTests'passed: 19 XCTest and 93 Swift Testing cases.FFMPEG_BIN=<ffmpeg> bash Scripts/test-vod-open-seek.shpassed both real AVPlayer cases: recovered readiness in 1.219 s with two requests, forward/backward seeks landed at 12 s / 4 s, paused seeking worked, and the sequential source rejected seeking without a false landing. The engine also builds for arm64 tvOS Simulator with Xcode 27.swift build --jobs 4, documentation links andgit diff --checkpass.Checklist
CHANGELOG.mdupdatedfeat(...),fix(...),chore(...))