Bug 192400

Summary: Inline video stops working when WebGL is used on iPhone X
Product: WebKit Reporter: Larry Lin <larrylin28>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: dino, eric.carlson, jeremyj-wk, jer.noble, jonlee, justin_fan, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 12   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 223918    

Description Larry Lin 2018-12-05 07:16:04 PST
A very wired issue with inline video in WebView(also on Safari) with autoplay flags all set.
I use Three.js(which uses WebGL) to render the inline video textures in 3D space, it works fine on Chrome, Safari on Mac, and IPhone 6s(IOS 12.1), but got wired issue on IPhoneX(IOS 12.1).
By digging into this, the issues seems to be:
If there're calls in WebGL:
 The inline video element that is loading will stop loading until a click on screen, or re-orientate the phone.
 The inline video texture is not able to update to WebGl when using `texImage2D`(it keeps black, while the video element itself is playing well), only get updated until a click on screen, or re-orientate the phone.
 The inline video texture is not firing "ended" event until a click on screen, or re-orientate the phone.
Comment 1 Radar WebKit Bug Importer 2018-12-05 10:44:47 PST
<rdar://problem/46492260>
Comment 2 Jon Lee 2018-12-05 12:46:27 PST
Is this a regression against older iOS?
Comment 3 Larry Lin 2018-12-05 15:44:24 PST
Iphone6 with same OS(12.1) works just fine
Comment 4 Larry Lin 2018-12-12 06:49:34 PST
Any update on this?
Comment 5 Jer Noble 2018-12-12 09:16:39 PST
Larry, do you have a publicly available reproduction case we can link to?