RESOLVED FIXED 231225
createImageBitmap using a HLS video as source is always black
https://bugs.webkit.org/show_bug.cgi?id=231225
Summary createImageBitmap using a HLS video as source is always black
Jean-Yves Avenard [:jya]
Reported 2021-10-05 03:27:21 PDT
Seen with bug 231005 MediaPlayerPrivateAVFoundationObjC::paintWithVideoOutput checks that we have a video track before creating an image. However to checks if a video track exists it calls AVAssetTrack* firstEnabledVideoTrack = firstEnabledTrack(safeAVAssetTracksForVisualMedia()); safeAVAssetTracksForVisualMedia queries m_avAsset (a AVURLAsset) for the list of track. However, with HLS the AVURLAsset doesn't contain any tracks, instead they are found in the AVPlayerItem instead.
Attachments
Patch (14.72 KB, patch)
2021-10-05 07:01 PDT, Jean-Yves Avenard [:jya]
no flags
Radar WebKit Bug Importer
Comment 1 2021-10-05 06:48:04 PDT
Jean-Yves Avenard [:jya]
Comment 2 2021-10-05 07:01:12 PDT
EWS
Comment 3 2021-10-05 16:43:36 PDT
Committed r283585 (242543@main): <https://commits.webkit.org/242543@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 440208 [details].
Note You need to log in before you can comment on or make changes to this bug.