Bug 231225

Summary: createImageBitmap using a HLS video as source is always black
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: eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar, Regression
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=231005
https://bugs.webkit.org/show_bug.cgi?id=136872
Attachments:
Description Flags
Patch none

Description Jean-Yves Avenard [:jya] 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.
Comment 1 Radar WebKit Bug Importer 2021-10-05 06:48:04 PDT
<rdar://problem/83884031>
Comment 2 Jean-Yves Avenard [:jya] 2021-10-05 07:01:12 PDT
Created attachment 440208 [details]
Patch
Comment 3 EWS 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].