[webkit-changes] [WebKit/WebKit] 70e57c: Cherry-pick 41855a914387. rdar://problem/103458234
Dean Jackson
noreply at github.com
Fri Mar 3 09:42:55 PST 2023
Branch: refs/heads/safari-7616.1.4-branch
Home: https://github.com/WebKit/WebKit
Commit: 70e57c28227fb6852e23f860c6d6df72a485c952
https://github.com/WebKit/WebKit/commit/70e57c28227fb6852e23f860c6d6df72a485c952
Author: Dean Jackson <dino at apple.com>
Date: 2023-03-03 (Fri, 03 Mar 2023)
Changed paths:
M Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
M Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
M Source/WebCore/platform/graphics/cocoa/MediaPlayerPrivateWebM.mm
Log Message:
-----------
Cherry-pick 41855a914387. rdar://problem/103458234
Opt out of playback preventing app backgrounding for silent videos
https://bugs.webkit.org/show_bug.cgi?id=253163
rdar://103458234
Reviewed by Jer Noble and Eric Carlson.
AVFoundation has exposed new API on AVPlayer and AVSampleBufferDisplayLayer
to avoid silent media playback from keeping the app moving to the background.
Test for the property, then set it to NO.
* Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayer):
* Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::ensureLayer):
* Source/WebCore/platform/graphics/cocoa/MediaPlayerPrivateWebM.mm:
(WebCore::MediaPlayerPrivateWebM::ensureLayer):
Canonical link: https://commits.webkit.org/261128@main
Canonical link: https://commits.webkit.org/260848.7@safari-7616.1.4-branch
More information about the webkit-changes
mailing list