Bug 282797

Summary: requestVideoFrameCallback never calls its callback if the window is hidden.
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: MediaAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Jean-Yves Avenard [:jya]
Reported 2024-11-07 18:20:41 PST
This affects also WebKitTestRunner as it is not showing the window. Our implementation of requestVideoFrameCallback relies on `[AVSampleBufferDisplayLayer copyDisplayedPixelBuffer]` to return an image. But this will always return null if the video image didn't actually get rendered (such as when the WKTR window isn't showing)
Attachments
Radar WebKit Bug Importer
Comment 1 2024-11-07 18:20:56 PST
Jean-Yves Avenard [:jya]
Comment 2 2024-11-13 05:14:27 PST
Jean-Yves Avenard [:jya]
Comment 3 2024-11-14 18:11:34 PST
EWS
Comment 4 2024-11-20 04:17:33 PST
Committed 286853@main (865a4038f9b5): <https://commits.webkit.org/286853@main> Reviewed commits have been landed. Closing PR #36586 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.