Repository navigation
feat(preview): return cancellable resident frames with measured timestamps - #716
Merged
superuser404notfound merged 1 commit intoOct 7, 2026
Conversation
This was referenced Oct 7, 2026
Owner
|
Thank you. Merged together with #717 and released in 7.30.0 ( Integration notes:
|
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
Let hosts request timestamped previews from media already resident in the active session, without another source connection or playback seek. Reject cancelled work and results from replaced sources.
What changed
Test plan
swift test --jobs 4 --filter 'FrameDecodeContextHardwareTests|FrameExtractor|SoftwareStill|SoftwarePacketReadAhead|PacketRingBufferTests|ScrubThumbnailSegmentMappingTests|PresentationAxis|PublicAPIDocumentationTests|DocumentedConstantsTests'. Tests cover actual PTS, a missing refined target beyond EOF, cancellation, replaced/missing segment files, packet-copy cancellation and timeline mapping.swift build --jobs 4, documentation links andgit diff --checkpass.Integration with related contributions
This branch builds and tests against
mainindependently. With #712, replace the upstream seam-based live preview request/result mapping with that PR's stable live session axis, capturing the mapping consistently around asynchronous extraction. With #717, retain both resident-time and decoded-time callbacks inFrameDecodeContext, including recursive hardware-to-software fallback, and cancel an in-flight bounded extraction when a new resident extraction supersedes it. The two preview APIs share the extractor queue and cancellation ownership; neither implementation should replace the other during conflict resolution.Checklist
CHANGELOG.mdupdatedfeat(...),fix(...),chore(...))