[webkit-changes] [WebKit/WebKit] f40757: [iOS] Remote playback of autoplaying & muted video...
Jer Noble
noreply at github.com
Mon Sep 26 18:09:12 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f407579f73e56aa92f28abd35fc292933eb0ed27
https://github.com/WebKit/WebKit/commit/f407579f73e56aa92f28abd35fc292933eb0ed27
Author: Jer Noble <jer.noble at apple.com>
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
More information about the webkit-changes
mailing list