Repository navigation
fix(tv/apple): stop the AVPlayer seek bar bouncing after a seek - #593
Merged
Merged
Conversation
After AVPlayer.seek the player reports the old position and then where it landed, which on HLS is often a few seconds before the target, so the bar went forward, back and forward again. The bar now stays on the seek target until playback reaches it, the player is paused after landing, or 6 seconds pass. Positions sent to phones and the party are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
What
On the Apple TV, seeking in an HLS stream on AVPlayer made the seek bar circle go forward, back, then forward again.
AVPlayer reports the old position until the seek finishes, then where it landed. On HLS that is a segment start, often seconds before the target. The bar showed each of them in turn.
SeekBarHoldkeeps the bar on the seek target until playback gets within 1 s of it, the player is paused after the seek finishes, or 6 s pass. The position sent to phones and the watch party is unchanged; only the TV's own bar is held. mpv is not affected (checked on the device) and is untouched.Checks
SeekBarHoldcases totv/apple/tests/ReceiverReviewTests.swift;run-receiver-review-checks.shpasses.Changelog line goes on the release branch after this merges.
🤖 Generated with Claude Code