Repository navigation
fix(core): keep the video on screen while playback waits for another clip - #8849
Open
robinebers wants to merge 1 commit into
Open
robinebers wants to merge 1 commit into
robinebers wants to merge 1 commit into
Conversation
…ture stays While the film holds for a clip that has no data, the runtime reloads the other clips on screen that have played, so their unread bytes stop competing for the connection. That included videos: writing a video's src again drops the frame it decoded, so the picture went black until it decoded again. The reload now skips video elements; audio clips still reload, as before. To reproduce: a composition with background music and a video that has played; when the music runs out of data, the video's src is written twice and its picture goes black for the length of the hold.
This branch has not been deployed
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.
When the film holds for a clip that has no data yet (the music, say), the runtime reloads the other clips that have already played. For a video that means writing its
srcagain, which drops the decoded frame. The picture goes black for as long as the hold lasts.The fix is one line in
reloadPlayedClipsForHold: skip video elements. Audio clips are reloaded as before.There's a new test in
init.buffering.test.ts: the film holds for the music while a video that has played is on screen, and the video'ssrcis never written again. Without the line the test sees twosrcwrites.Refines the hold from #8138.