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
Playback stops although the progress bar moves
https://bugs.webkit.org/show_bug.cgi?id=248585 rdar://102846199 Reviewed by Eric Carlson. When playback has stalled due to insufficient data being buffered, the effective rate should be 0 as time is no longer progressing. While the GPU process would indicate that the rate has changed once the player has stalled, the effective rate reported would remain the same causing the current time position to continue moving as it's estimated based on the effective rate. Fly-By fix: set the new rate in HTMLMediaElement if previously the requested rate is different. * LayoutTests/http/tests/media/video-play-stall.html: Update test to ensure currentTime doesn't progress (WebCore::HTMLMediaElement::updatePlaybackRate): * Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: (WebCore::MediaPlayerPrivateAVFoundation::updateStates): * Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::effectiveRate const): Canonical link: https://commits.webkit.org/257403@main
- Loading branch information
Showing
5 changed files
with
28 additions
and
20 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