Bug 206812

Summary: MSE video is not drawn onto canvas
Product: WebKit Reporter: tomerlahav
Component: MediaAssignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: aiden.lx, bdakin, ben.browitt, eric.carlson, itmyaddress, jean-yves.avenard, jer.noble, simon.fraser, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=125157
Attachments:
Description Flags
Patch none

Description tomerlahav 2020-01-26 16:30:59 PST
Similar to this bug:
https://bugs.webkit.org/show_bug.cgi?id=125157

Made a simple test page here:
https://s3.amazonaws.com/storage2.interlude.fm/dev_temp/tomer/safari_mse_canvas_bug/index.html

The above test page works correctly on other browsers (including IE), but MSE video is not drawn onto the canvas on Safari 13 (desktop + iPadOS).
Would appreciate any pointers - thanks!!
Comment 1 Radar WebKit Bug Importer 2020-01-27 05:56:47 PST
<rdar://problem/58916170>
Comment 2 Andrey Starostin 2020-05-16 09:39:20 PDT
Another example: https://bugs.webkit.org/show_bug.cgi?id=186038
Comment 3 Wenson Hsieh 2021-11-11 15:12:57 PST
(In reply to tomerlahav from comment #0)
> Similar to this bug:
> https://bugs.webkit.org/show_bug.cgi?id=125157
> 
> Made a simple test page here:
> https://s3.amazonaws.com/storage2.interlude.fm/dev_temp/tomer/
> safari_mse_canvas_bug/index.html
> 
> The above test page works correctly on other browsers (including IE), but
> MSE video is not drawn onto the canvas on Safari 13 (desktop + iPadOS).
> Would appreciate any pointers - thanks!!

FWIW — this example works for me after enabling the experimental feature labeled "Experimental MediaSource Inline Painting" in the Develop > Experimental Features menu, on tip-of-tree WebKit (r285672)
Comment 4 Aiden Liu 2022-01-11 04:21:21 PST
> https://s3.amazonaws.com/storage2.interlude.fm/dev_temp/tomer/safari_mse_canvas_bug/index.html

Confirmed that this is occurring in iPadOS 15.1 and macOS monetary (safari version 15.2 (17612.3.6.1.6))
Comment 5 Aiden Liu 2022-01-28 08:20:42 PST
 
> FWIW — this example works for me after enabling the experimental feature
> labeled "Experimental MediaSource Inline Painting" in the Develop >
> Experimental Features menu, on tip-of-tree WebKit (r285672)

BTW, `tip-of-tree WebKit` means that Until Jan. 29th, 2022, the `Experimental MediaSource Inline Painting` option is only available in Safari Technology Preview
Comment 6 Sam Sneddon [:gsnedders] 2022-02-14 18:58:47 PST
<rdar://31763425>
Comment 7 Wenson Hsieh 2022-04-12 17:47:38 PDT
Created attachment 457493 [details]
Patch
Comment 8 Wenson Hsieh 2022-04-13 08:24:54 PDT
Comment on attachment 457493 [details]
Patch

Thanks for the review!
Comment 9 EWS 2022-04-13 09:13:34 PDT
Committed r292811 (249593@main): <https://commits.webkit.org/249593@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 457493 [details].