[Webkit-unassigned] [Bug 133511] New: iOS 8 WebGL cannot pass video to texImage2d

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 4 06:40:23 PDT 2014


           Summary: iOS 8 WebGL cannot pass video to texImage2d
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: iOS
               URL: http://www.scirra.com/labs/bugs/webglvideo/
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGL
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ashley at scirra.com

Visit the URL http://www.scirra.com/labs/bugs/webglvideo/. It creates a simple spinning cube and plays a clip of "big buck bunny". The video is used as the cube's texture. The video is 

On desktop Chrome and Firefox it works fine. On IE11 it does not work since it also does not support video being passed to texImage2d, but it's possible to work around since it can render video to a canvas 2D context and then pass that 2D canvas to texImage2d.

On Chrome for Android it works. Note the video does not start until the first touch event (the demo is coded to start the video in the first touchstart to work around the gesture requirement).

On Safari iOS 8 beta on an iPhone 4S, after touching the display remains blank - the texture is not updated. However the audio from the video starts playing and the fullscreen video playback controls appear. These are unwanted for this demo and likely unwanted for most use cases of playing video within a WebGL context. I could not get the workaround of rendering via a canvas2d to work either, and playback controls still appeared. (FWIW it appears iOS 7 does not support passing video to canvas2d drawImage() at all, and that iOS 8 adds support for this, but in my experimenting I still did not get a canvas2d with video drawn on to it to upload to a texture either.)

The most convenient solution is if video can be passed directly to texImage2d, and not have playback controls appear.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list