[Webkit-unassigned] [Bug 186353] New: iOS 11.4 breaks video playback in Cordova apps

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 6 09:21:58 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=186353

            Bug ID: 186353
           Summary: iOS 11.4 breaks video playback in Cordova apps
           Product: WebKit
           Version: Safari 11
          Hardware: iPhone / iPad
                OS: iOS 11
            Status: NEW
          Severity: Major
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ashley at scirra.com

Cordova apps on iOS run on the file:// protocol in WKWebView. Because there is still no solution to issue 154916, some subresources unnecessarily count as cross-origin. One example is rendering video in WebGL. The video must count as same-origin to be able to upload to a texture.

To work around this, our framework (construct.net) previously would use cordova-plugin-file to read the video file as a blob, use URL.createObjectURL(blob), and then assign that to the video source. However as of iOS 11.4, this now appears to create a blob with an origin of 'null', which *still* counts as a cross-origin resource. Therefore video uploads to textures fail with a SecurityError.

As a result all existing iOS apps made using our framework are no longer able to display video in iOS 11.4. I cannot even find any work around to make the video count as same-origin, so I don't even know if we can update our framework.

Please at least allow video playback from a blob URL in this case.

To demonstrate the problem, here is a Cordova iOS project that plays video in a WebGL context: https://www.dropbox.com/s/izhjf84abzvztqb/ios-local-video-test.zip?dl=0
The video plays and the audio track can be heard, but it does not appear, because it is throwing a SecurityError every frame trying to update the texture.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180606/4068d595/attachment.html>


More information about the webkit-unassigned mailing list