[webkit-changes] [WebKit/WebKit] d6c40d: [visionOS] AVPlayerLayer goes blank when transitio...
aestes
noreply at github.com
Sun Apr 28 14:04:51 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d6c40da0535c2a51f51a07747750b4bdc101a28b
https://github.com/WebKit/WebKit/commit/d6c40da0535c2a51f51a07747750b4bdc101a28b
Author: Andy Estes <aestes at apple.com>
Date: 2024-04-28 (Sun, 28 Apr 2024)
Changed paths:
M Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h
M Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
Log Message:
-----------
[visionOS] AVPlayerLayer goes blank when transitioning to LinearMediaKit fullscreen
https://bugs.webkit.org/show_bug.cgi?id=273373
rdar://127199127
Reviewed by Jer Noble.
When transitioning to LinearMediaKit fullscreen during AVPlayer-based playback,
MediaPlayerPrivateAVFoundationObjC would immediately remove the AVPlayer from its AVPlayerLayer,
causing the layer to go blank. Resolved this by deferring removal of the AVPlayer until the
fullscreen transition completes. Conversely, deferred removing the FigVideoTarget from the AVPlayer
until the transition back to inline completes.
* Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
* Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::setVideoReceiverEndpoint):
(WebCore::MediaPlayerPrivateAVFoundationObjC::isInFullscreenOrPictureInPictureChanged):
(WebCore::MediaPlayerPrivateAVFoundationObjC::clearVideoReceiverEndpoint): Deleted.
Canonical link: https://commits.webkit.org/278092@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list