Bug 192400 - Inline video stops working when WebGL is used on iPhone X
Summary: Inline video stops working when WebGL is used on iPhone X
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 12
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: webgl2media
  Show dependency treegraph
 
Reported: 2018-12-05 07:16 PST by Larry Lin
Modified: 2021-03-30 03:56 PDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?