Repository navigation
feat(live): configure fast startup and publish early DVR history - #712
Merged
superuser404notfound merged 2 commits intoOct 8, 2026
Conversation
This was referenced Oct 7, 2026
4 tasks done
superuser404notfound
pushed a commit
that referenced
this pull request
Oct 8, 2026
…s tables seekToLiveEdge(offsetSeconds:), currentItemLiveEdgeTime, liveTargetDurationSeconds and the two DVR lease calls are rows of the Live and DVR table, the timestamp-reset contract sits beside them, and the two startup options plus softwareDVRRetention are LoadOptions rows, instead of three 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
superuser404notfound
pushed a commit
that referenced
this pull request
Oct 8, 2026
…live startup admission, DVR leases (yucelokan's #712-#714) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS
Owner
|
Thank you. Merged together with #714 and released in 7.31.0 ( Integration notes:
Checked against a public HLS channel on the ingest path with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Make fast live startup configurable and publish usable DVR history promptly on a stable session timeline. Default startup admission remains unchanged; callers choose any live-return safety offset.
Why two commits in one PR
The first commit (
bd38f198) admits playable media earlier; the second (f06df432) makes the resulting early playback usable for rewind and keeps its timeline stable across source PTS rollbacks. Testing the first commit with long GOPs exposed a delayed native seekable-range mirror: the picture could already play while the engine still advertised no DVR history. These belong to the same user-visible live-startup flow, so this PR verifies them together, while separate commits keep startup policy and timeline correctness independently reviewable. Each commit builds on its own checkout state; the first does not depend on the second.What changed
LoadOptionsand propagate them through reopens.liveTargetDurationSeconds,currentItemLiveEdgeTimeand caller-selectedseekToLiveEdge(offsetSeconds:).Test plan
swift test --jobs 4 --filter 'LiveStartupAdmissionTests|Issue684|Issue686|Issue195|Issue189|PublicAPIDocumentationTests|DocumentedConstantsTests'.FFMPEG_BIN=<ffmpeg> bash Scripts/test-long-gop-startup.shpassed both media cases: first picture in 3.295 s / 3.187 s, clock progression, rewind after the measured range becomes available, and subsequent playback. These results are for the first commit, before the early-DVR fix.swift build --jobs 4, documentation links andgit diff --checkpass.swift test --jobs 4 --filter 'LiveTimestampRollbackTests|LiveStartupAdmissionTests|LiveSeek|LiveWindow|Issue446|Issue189|Issue684|Issue686|PublicAPIDocumentationTests|DocumentedConstantsTests'. Both long-GOP media cases passed again: first picture in 3.449 s / 3.177 s; seekability in 4.516 s / 3.177 s from load (within 2 s after join), clock progression, rewind, and return to live with a 5 s caller offset.swift build --jobs 4passed at both commit states. Timing values describe this local run, not latency guarantees.Integration with related contributions
This branch builds and tests against
mainwithout the other contribution branches. It overlaps #714 in live-window publication and #716 in live preview coordinates. When integrating #714, preserve its current capacity-lease window and software resident floor alongside this PR's played-resident edge fallback andnotePlayheadupdate; fallback eligibility must follow the effective renewed/expired native DVR window, not only the original load option. When integrating #716, its preview request/result conversions must use this PR's stable live session axis. These are merge-time integration points, not a claim that the branches can be combined in arbitrary order without adaptation.Checklist
CHANGELOG.mdupdatedfeat(...),fix(...),chore(...))