Repository navigation
Player: a seek that reloads keeps its target on the clock until the first frame - #1303
Merged
Merged
Conversation
…irst frame A transcode seek's reload (Rebase) and a direct-play reload or resume (ArmOpen) publish their target as the playhead, so the HUD reads it until the new stream's first frame. Since plxnative#1274 the Feed's attempt facts report a position only once the session has presented a frame, and every reload resets that, so between the reload and its first frame the HUD read no position and drew 0:00 before jumping to the target. A session reset zeroes the playhead, and before the first frame only a seeded open or a seek moves it, so the attempt facts now also report a playhead above zero. A fresh play still reports none until its first picture; a seek to exactly 0:00 reads none until its frame, as before. The timeline reporter reads the raw playhead and is unchanged. A unit test drives Rebase and ArmOpen through session resets and fails without the change (None where 120 s is expected). Checked on an LG C1 (webOS 6.5.3) by seeking a transcoded item: the clock stays on the target through the reload instead of dropping to 0:00.
Collaborator
|
Thanks! |
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 changes for the viewer
After a seek that reloads the stream (a transcode seek, or a direct-play reload), the player clock showed 0:00 between the reload and the new stream's first frame, then jumped to the target. It now stays on the target, as it did before #1274.
Why
arm_openandrebasepublish the target as the playhead so the HUD reads it until frames land (their own docs say so). Since #1274 the Feed's attempt facts reportposition_nsonly once the session has presented a frame, and every reload resets that, so the HUD (hud_model,playpos_ns(ps).unwrap_or(0)) drew 0:00 for that window.The change
attempt_facts(play-feed/src/feed_pump.rs) now reports the playhead when a frame was seen or it is above zero. A session reset zeroes it, and before the first frame only a seeded open (arm_open,rebase) or a seek moves it, so no new state is needed.is_playingdoc, the heartbeat note indocs/agent-reference.md, the contract'splaypos_nsaudit row) now match.Verification
feed_pump::tests::a_seeded_open_reports_its_target_before_the_first_frame: fails without the change (Nonewhere 120 s is expected), passes with it.plx_play_feed301 passed;plx_medialib 1973 passed;plx_mediahostsim (including the transcode-seek flight tests) 2245 passed;make check-nodefclean.