Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 967ac941be51aa191d52a7c05429d52562228c02
https://github.com/WebKit/WebKit/commit/967ac941be51aa191d52a7c05429d52562228c02
Author: Jean-Yves Avenard <[email protected]>
Date: 2025-10-24 (Fri, 24 Oct 2025)
Changed paths:
M Source/WebCore/platform/graphics/avfoundation/AudioVideoRendererAVFObjC.mm
Log Message:
-----------
[visionOS] Exiting Docked mode for YouTube videos shows black screen for a
sec.
https://bugs.webkit.org/show_bug.cgi?id=301397
rdar://163076430
Reviewed by Jer Noble.
297873@main introduced a regression causing the video frame to temporaly flicker
while the content is being repainted.
In addition, following 301011@main an additional black frame can be noticed.
This occurs because the teardown of the AVSampleBufferVideoRenderer occurs
much more quickly that it used to (the transition between an AVSBDL to a
figVideoTarget
is now very fast as we no longer have to seek).
We now wait an extra 1s, before tearing down the AVSBVR containing the
figVideoTarget).
This removes the black frames.
Ideally we should enqueue frames to both AVSBVR and AVSBDL until a new frame
is actually visible. We will implement this solution in a follow-up change.
For now, we keep the change small and simple to facilitate integration.
Manually tested, the current testing infrastructure doesn't allow for docking
the video.
* Source/WebCore/platform/graphics/avfoundation/AudioVideoRendererAVFObjC.mm:
(WebCore::AudioVideoRendererAVFObjC::stageVideoRenderer):
Canonical link: https://commits.webkit.org/302104@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications