Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f407579f73e56aa92f28abd35fc292933eb0ed27
https://github.com/WebKit/WebKit/commit/f407579f73e56aa92f28abd35fc292933eb0ed27
Author: Jer Noble <[email protected]>
Date: 2022-09-26 (Mon, 26 Sep 2022)
Changed paths:
M Source/WebCore/html/HTMLMediaElement.cpp
Log Message:
-----------
[iOS] Remote playback of autoplaying & muted videos stops when device is
locked
https://bugs.webkit.org/show_bug.cgi?id=245238
<rdar://98685762>
Reviewed by Eric Carlson.
Modify `canProduceAudio()` to take volume state into account, and only take
mute state into
account for non-GStreamer ports.
Then, use `canProduceAudio()` to calculate the IsPlayingAudio state to report
upward to the
Document's mediaState.
This results in the Document (and UIProcess) reporting that the page is
performing audible
playback, and keeps the WebContent/GPU processes from suspending when in app
background state.
* Source/WebCore/html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::mediaType const):
(WebCore::HTMLMediaElement::canProduceAudio const):
(WebCore::HTMLMediaElement::mediaState const):
Canonical link: https://commits.webkit.org/254887@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes