Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Media][MSE] Don't emit timeUpdate after play() if currentTime hasn't…
… changed https://bugs.webkit.org/show_bug.cgi?id=195454 Reviewed by Jer Noble. Source/WebCore: This change fixes YouTube 2019 MSE Conformance Tests "26. SFRPausedAccuracy" and "27. HFRPausedAccuracy". The first timeUpdate event after play() is omitted, because currentTime doesn't actually change in that scenario. Tests 26 and 27 measure the time drift (real time vs. media time) on playback and start counting since the first timeUpdate event. In WebKit, that event happens at play(), before the pipeline has completed the transition to playing. Therefore, the real time inherits this startup delay and the test thinks that the player has drifted. * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::playInternal): Don't emit a timeUpdated event unless currentTime has changed. LayoutTests: This patch removes expectations for the first timeUpdate event after play(), because currentTime doesn't actually change in that scenario and the spec[1] states that a timeupdate event is fired if "The current playback position changed as part of normal playback or in an especially interesting way, for example discontinuously." [1] https://www.w3.org/TR/html52/semantics-embedded-content.html#eventdef-media-timeupdate * media/video-paused-0-rate.html: Don't require the timeUpdate event when currentTime=0 to pass the test. * media/video-play-pause-events-expected.txt: Ditto, and changed test description. * media/video-play-pause-events.html: Changed test description to reflect the new behaviour. * media/video-play-pause-exception-expected.txt: Don't require the timeUpdate event. Canonical link: https://commits.webkit.org/209919@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242791 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
7 changed files
with
60 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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