Skip to content

feat(clock): sourceTimeFollowsPicture, the AE#616 lead after a seek is a guess until the next line - #624

Merged
superuser404notfound merged 1 commit into
mainfrom
feat/ae616-source-time-measured
Sep 24, 2026
Merged

superuser404notfound merged 1 commit into
mainfrom
feat/ae616-source-time-measured

Conversation

@superuser404notfound

Copy link
Copy Markdown
Owner

Follow-up to #616, from the reporter's retest on 7.15.2.

On nativeRemoteHLS a time jump keeps the previously measured lead until the next injected line re-measures it. For those first seconds sourceTime is off by however far the new anchor moved: the retest measured -1.50 s, -1.77 s and -1.79 s on the one or two lines right after a landing, then back within one observer tick.

clock.sourceTimeFollowsPicture (plus the sourceTimeFollowsPicture mirror) makes that visible:

  • true on every route except nativeRemoteHLS.
  • On the bypass: false at load and at every AVPlayerItem.timeJumpedNotification, true once a presented line of an injected rendition measured the lead. Stays false for a session without an injected rendition, where sourceTime is plain item time.

The previous lead is still applied during the window (it is the best guess available); the flag only says it is a guess, so a host can hold its overlay instead of detecting seeks itself.

Tests: RemoteHLSCueClock.isMeasuredSinceJump covered in RemoteHLSCueClockTests. swift test green on both runners (swift-testing 3389, XCTest 629). Docs: docs/api.md clock table and the AE#616 paragraph, CHANGELOG Unreleased.

🤖 Generated with Claude Code

https://claude.ai/code/session_014AVNwe8YDG9EQM7uHdjT3f

…s only a guess

On nativeRemoteHLS a time jump keeps the previous lead until the next injected line re-measures it,
so for those first seconds sourceTime is off by however far the new anchor moved (imbenjamin measured
-1.50 s to -1.79 s on the lines right after a landing). The clock now says so: false from a time
jump, or for a whole session without an injected rendition, true once a line matched. Every other
route stays true. Hosts can hold their overlay on it instead of detecting seeks themselves.

Refs #616

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014AVNwe8YDG9EQM7uHdjT3f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant