Repository navigation
feat(live): env-gated first-serve latch arm for engine-cut sources (#686) - #692
Merged
Merged
Conversation
…sources (#686) On a source the engine cuts itself (raw MPEG-TS under fastZap) a bounded start holds AVPlayer's second plain /media.m3u8 request for a second grace: 1.015 to 1.384 s on every bounded start on the reporter's Apple TV. #684 latched the gate for ingest sessions only, because whether skipping that wait costs a stall (the session sits closer to the producing edge) was never measured on a device. AETHER_FIRST_SERVE_LATCH_ALL=1 extends the latch to engine-cut sources, read once and off by default, like AETHER_BOUNDED_START_FLOOR. Both arms now log how long the second request waited, which the reporter noted was silent. On the Mac (live --fast-zap --realtime --preroll 0, two runs per arm): the arm removes exactly the grace (2.003 s / 1.011 s), init.mp4 and the sustained advance come that much sooner, the playhead ends 0.9 to 2.0 s closer to the edge, and neither arm stalled. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS
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.
Refs #686.
AETHER_FIRST_SERVE_LATCH_ALL=1applies #684's first-serve latch to sources the engine cuts itself (raw MPEG-TS), so AVPlayer's second plain/media.m3u8request no longer waits out a second fastZap grace. Measurement arm, read once per process, off by default (same shape asAETHER_BOUNDED_START_FLOORfor #594). Default behaviour is unchanged.Both arms now emit one line per session with the second request's hold, which was silent before:
Mac measurement
aetherctl live --fast-zap --realtime --preroll 0 --seconds 40, two runs per arm, interleaved:GET /init.mp4item=at endThe stall half needs a client that seeks to edge-minus-holdback, which the Mac harness does not do (see the #594 section in
docs/cli.md); that is what the reporter's Apple TV A/B is for.Tests
Issue686FirstServeLatchArmTests: armed second request passes at once, unserved gate stays a gate, repeat line once per session in either arm. Fullswift test: 718 XCTest + 4056 swift-testing, 0 failures.🤖 Generated with Claude Code
https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS