Repository navigation
feat(clock): sourceTimeFollowsPicture, the AE#616 lead after a seek is a guess until the next line - #624
Merged
Conversation
…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
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.
Follow-up to #616, from the reporter's retest on 7.15.2.
On
nativeRemoteHLSa time jump keeps the previously measured lead until the next injected line re-measures it. For those first secondssourceTimeis 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 thesourceTimeFollowsPicturemirror) makes that visible:trueon every route exceptnativeRemoteHLS.falseat load and at everyAVPlayerItem.timeJumpedNotification,trueonce a presented line of an injected rendition measured the lead. Staysfalsefor a session without an injected rendition, wheresourceTimeis 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.isMeasuredSinceJumpcovered inRemoteHLSCueClockTests.swift testgreen on both runners (swift-testing 3389, XCTest 629). Docs:docs/api.mdclock table and the AE#616 paragraph, CHANGELOG Unreleased.🤖 Generated with Claude Code
https://claude.ai/code/session_014AVNwe8YDG9EQM7uHdjT3f