<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>133511</bug_id>
          
          <creation_ts>2014-06-04 06:40:47 -0700</creation_ts>
          <short_desc>iOS 8 WebGL cannot pass video to texImage2d</short_desc>
          <delta_ts>2016-10-25 06:43:58 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebGL</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.scirra.com/labs/bugs/webglvideo/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>134199</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ashley Gullen">ashley</reporter>
          <assigned_to name="Alex Christensen">achristensen</assigned_to>
          <cc>achristensen</cc>
    
    <cc>alastair</cc>
    
    <cc>brendan</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dfarler</cc>
    
    <cc>dino</cc>
    
    <cc>doyer.guyllaume</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>glenn</cc>
    
    <cc>jer.noble</cc>
    
    <cc>mail</cc>
    
    <cc>moo_lj89</cc>
    
    <cc>philipj</cc>
    
    <cc>richard.getinfo</cc>
    
    <cc>rik</cc>
    
    <cc>sergio</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>vincent.ogloblinsky</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1013305</commentid>
    <comment_count>0</comment_count>
    <who name="Ashley Gullen">ashley</who>
    <bug_when>2014-06-04 06:40:47 -0700</bug_when>
    <thetext>Visit the URL http://www.scirra.com/labs/bugs/webglvideo/. It creates a simple spinning cube and plays a clip of &quot;big buck bunny&quot;. The video is used as the cube&apos;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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013306</commentid>
    <comment_count>1</comment_count>
    <who name="Ashley Gullen">ashley</who>
    <bug_when>2014-06-04 06:46:01 -0700</bug_when>
    <thetext>Sorry, editing fail. Last line of first paragraph should read &quot;the video is h.264 encoded in .mp4 container and sent by the server with the MIME type video/mp4&quot;, so it should be a supported video format on iOS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013322</commentid>
    <comment_count>2</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2014-06-04 09:08:55 -0700</bug_when>
    <thetext>Why isn&apos;t Radar picking this up?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013323</commentid>
    <comment_count>3</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2014-06-04 09:09:21 -0700</bug_when>
    <thetext>dfarler, do you know why webkit-bug-importer is not importing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013594</commentid>
    <comment_count>4</comment_count>
    <who name="Ashley Gullen">ashley</who>
    <bug_when>2014-06-05 10:34:03 -0700</bug_when>
    <thetext>In addition to this, and somewhat related: currently playback controls still appear when the video element is not added to the DOM but instead passed to canvas2d&apos;s drawImage(). For the same reasons as this report it should work without forcing fullscreen controls to appear.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013880</commentid>
    <comment_count>5</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2014-06-06 16:36:34 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; In addition to this, and somewhat related: currently playback controls still appear when the video element is not added to the DOM but instead passed to canvas2d&apos;s drawImage(). For the same reasons as this report it should work without forcing fullscreen controls to appear.

Can you explain this a bit more? You are seeing the controls render even if the video is not in the page? Where are the controls?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013882</commentid>
    <comment_count>6</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2014-06-06 16:42:45 -0700</bug_when>
    <thetext>&lt;rdar://problem/14754378&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1014493</commentid>
    <comment_count>7</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2014-06-10 13:20:07 -0700</bug_when>
    <thetext>It opens the video fullscreen as if it were playing an html5 video (making the page no longer visible), but the video is black.  The video controls work and the audio plays, but I can&apos;t see if the video is being drawn to texture because the canvas is covered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1014494</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-06-10 13:20:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/17256389&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1015114</commentid>
    <comment_count>9</comment_count>
    <who name="Klaus Reinfeld">mail</who>
    <bug_when>2014-06-12 07:44:34 -0700</bug_when>
    <thetext>On iOS a &apos;SecurityError: DOM Exception 18&apos; will be thrown when trying to upload a video via texImage2d or when using it in a canvas drawImage().

In both cases the problem seems to be here in the &apos;wouldTaintOrigin&apos; function:
https://trac.webkit.org/browser/trunk/Source/WebCore/html/canvas/CanvasRenderingContext.cpp#L70

It seems that either the &apos;video-&gt;hasSingleSecurityOrigin()&apos; or the &apos;video-&gt;player()-&gt;didPassCORSAccessCheck()&apos; check fails.

Please fix this, iOS is the only missing platform here!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1016437</commentid>
    <comment_count>10</comment_count>
    <who name="Klaus Reinfeld">mail</who>
    <bug_when>2014-06-18 05:51:25 -0700</bug_when>
    <thetext>That limitation is unfortunately still there in iOS 8 beta 2 (Webkit/538.39.2, Safari/9537.53).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1016874</commentid>
    <comment_count>11</comment_count>
    <who name="Vincent Ogloblinsky">vincent.ogloblinsky</who>
    <bug_when>2014-06-20 00:45:49 -0700</bug_when>
    <thetext>Dean,

Any news about for this bug ?

Could you assign it ?

Klaus give us good informations for investing it.

Regards</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1016953</commentid>
    <comment_count>12</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2014-06-20 10:31:51 -0700</bug_when>
    <thetext>The hasSingleSecurityOrigin  check fails.  The source of this problem is in MediaPlayerPrivateAVFoundationObjC.mm:

#if PLATFORM(IOS)
// FIXME: Implement for iOS in WebKit System Interface.
static inline NSURL *wkAVAssetResolvedURL(AVAsset*)
{
    return nil;
}
#endif</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017002</commentid>
    <comment_count>13</comment_count>
      <attachid>233445</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2014-06-20 13:19:02 -0700</bug_when>
    <thetext>Created attachment 233445
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017003</commentid>
    <comment_count>14</comment_count>
      <attachid>233445</attachid>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2014-06-20 13:19:45 -0700</bug_when>
    <thetext>Comment on attachment 233445
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017256</commentid>
    <comment_count>15</comment_count>
    <who name="Klaus Reinfeld">mail</who>
    <bug_when>2014-06-21 03:29:30 -0700</bug_when>
    <thetext>Thanks for the patches!
Great to see progress here!

In the meantime I have made an additional simple and very reduced example for testing this case here:

http://krpano.com/ios/bugs/ios8-webgl-video/

This example also shows the iPhone-only problem with the &apos;video fullscreen&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017287</commentid>
    <comment_count>16</comment_count>
      <attachid>233445</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-06-21 08:30:29 -0700</bug_when>
    <thetext>Comment on attachment 233445
Patch

Rejecting attachment 233445 from commit-queue.

Failed to run &quot;[&apos;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch&apos;, &apos;--status-host=webkit-queues.appspot.com&apos;, &apos;--bot-id=webkit-cq-01&apos;, &apos;build&apos;, &apos;--no-clean&apos;, &apos;--no-update&apos;, &apos;--build-style=release&apos;, &apos;--port=mac&apos;]&quot; exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
rce/WebKit/mac/WebView/WebTextCompletionController.mm -o /Volumes/Data/EWS/WebKit/WebKitBuild/WebKit.build/Release/WebKitLegacy.build/Objects-normal/x86_64/WebTextCompletionController.o

** BUILD FAILED **


The following build commands failed:
	CompileC /Volumes/Data/EWS/WebKit/WebKitBuild/WebKit.build/Release/WebKitLegacy.build/Objects-normal/x86_64/WebSystemInterface.o mac/WebCoreSupport/WebSystemInterface.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Full output: http://webkit-queues.appspot.com/results/5835844803887104</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017317</commentid>
    <comment_count>17</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2014-06-21 12:24:58 -0700</bug_when>
    <thetext>(In reply to comment #15)
&gt; Thanks for the patches!
&gt; Great to see progress here!
&gt; 
&gt; In the meantime I have made an additional simple and very reduced example for testing this case here:
&gt; 
&gt; http://krpano.com/ios/bugs/ios8-webgl-video/
&gt; 
&gt; This example also shows the iPhone-only problem with the &apos;video fullscreen&apos;.

Please file a separate bug for any additional problems you find.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017577</commentid>
    <comment_count>18</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2014-06-23 09:41:29 -0700</bug_when>
    <thetext>This compiles fine.
http://trac.webkit.org/changeset/170295</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017598</commentid>
    <comment_count>19</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-06-23 10:38:16 -0700</bug_when>
    <thetext>Re-opened since this is blocked by bug 134199</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017602</commentid>
    <comment_count>20</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2014-06-23 10:53:08 -0700</bug_when>
    <thetext>Followup build fixes in r170299 and r170300. This did not &quot;compile fine&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017960</commentid>
    <comment_count>21</comment_count>
    <who name="Ashley Gullen">ashley</who>
    <bug_when>2014-06-24 08:58:49 -0700</bug_when>
    <thetext>Possibly related: video playback in canvas2d drawImage() is also buggy. See https://bugs.webkit.org/show_bug.cgi?id=134251</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1022467</commentid>
    <comment_count>22</comment_count>
    <who name="Ashley Gullen">ashley</who>
    <bug_when>2014-07-15 07:09:32 -0700</bug_when>
    <thetext>This is marked &quot;resolved fixed&quot;, but is only partially fixed in iOS 8 beta 3: the unwanted fullscreen playback controls still appear. They can however be exited and the cube displays correctly, albeit with poor performance on an iPhone 4S (looks like 3-4 FPS). As the original comment noted, the fullscreen playback controls are likely unsuitable for most use cases of playing video in WebGL. Also, surely the performance can be improved?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025430</commentid>
    <comment_count>23</comment_count>
    <who name="Klaus Reinfeld">mail</who>
    <bug_when>2014-07-29 03:08:53 -0700</bug_when>
    <thetext>That bug is only partially fixed, when using cross-domain (CORS) videos, this still fails.

Here the new bug report:
https://bugs.webkit.org/show_bug.cgi?id=135379

and here a test case:
http://krpano.com/ios/bugs/ios8-webgl-video-cors/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1111942</commentid>
    <comment_count>24</comment_count>
    <who name="MooLee">moo_lj89</who>
    <bug_when>2015-07-24 00:43:35 -0700</bug_when>
    <thetext>(In reply to comment #23)
&gt; That bug is only partially fixed, when using cross-domain (CORS) videos,
&gt; this still fails.
&gt; 
&gt; Here the new bug report:
&gt; https://bugs.webkit.org/show_bug.cgi?id=135379
&gt; 
&gt; and here a test case:
&gt; http://krpano.com/ios/bugs/ios8-webgl-video-cors/



Hi~~How do you solve this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1132138</commentid>
    <comment_count>25</comment_count>
    <who name="Richard C">richard.getinfo</who>
    <bug_when>2015-10-10 09:41:56 -0700</bug_when>
    <thetext>In iOS 9.0.2 (13A452) video textures works but video does not play using this demo.  I get the first frame but repeated attempts to play() after touch event will not trigger video playback.  Am I missing something new?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1132151</commentid>
    <comment_count>26</comment_count>
    <who name="Richard C">richard.getinfo</who>
    <bug_when>2015-10-10 11:24:13 -0700</bug_when>
    <thetext>(In reply to comment #25)
&gt; In iOS 9.0.2 (13A452) video textures works but video does not play using
&gt; this demo.  I get the first frame but repeated attempts to play() after
&gt; touch event will not trigger video playback.  Am I missing something new?

OK. Caught again by the iOS click-to-play &quot;feature&quot;.  Problem solved.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>233445</attachid>
            <date>2014-06-20 13:19:02 -0700</date>
            <delta_ts>2014-06-21 08:30:29 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-133511-20140620131845.patch</filename>
            <type>text/plain</type>
            <size>4125</size>
            <attacher name="Alex Christensen">achristensen</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE3MDE5OCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE4IEBACisyMDE0LTA2LTIwICBBbGV4IENo
cmlzdGVuc2VuICA8YWNocmlzdGVuc2VuQHdlYmtpdC5vcmc+CisKKyAgICAgICAgW2lPU10gRml4
IHZpZGVvIGluIFdlYkdMLgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1
Zy5jZ2k/aWQ9MTMzNTExCisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisK
KyAgICAgICAgKiBXZWJDb3JlLmV4cC5pbjoKKyAgICAgICAgKiBwbGF0Zm9ybS9ncmFwaGljcy9h
dmZvdW5kYXRpb24vb2JqYy9NZWRpYVBsYXllclByaXZhdGVBVkZvdW5kYXRpb25PYmpDLm1tOgor
ICAgICAgICAoV2ViQ29yZTo6TWVkaWFQbGF5ZXJQcml2YXRlQVZGb3VuZGF0aW9uT2JqQzo6aGFz
U2luZ2xlU2VjdXJpdHlPcmlnaW4pOgorICAgICAgICAoV2ViQ29yZTo6d2tBVkFzc2V0UmVzb2x2
ZWRVUkwpOiBEZWxldGVkLgorICAgICAgICAqIHBsYXRmb3JtL21hYy9XZWJDb3JlU3lz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Rpc3BsYXlOYW1lKSh2b2lkKTsKIHZvaWQgKCp3a1NldENyYXNoUmVw
b3J0QXBwbGljYXRpb25TcGVjaWZpY0luZm9ybWF0aW9uKShDRlN0cmluZ1JlZik7CiAKLU5TVVJM
ICooKndrQVZBc3NldFJlc29sdmVkVVJMKShBVkFzc2V0Kik7Ci0KIE5TQ3Vyc29yICooKndrQ3Vy
c29yKShjb25zdCBjaGFyKik7CiAKIE5TQXJyYXkgKigqd2tTcGVlY2hTeW50aGVzaXNHZXRWb2lj
ZUlkZW50aWZpZXJzKSh2b2lkKTsK
</data>
<flag name="review"
          id="257954"
          type_id="1"
          status="+"
          setter="jer.noble"
    />
    <flag name="commit-queue"
          id="257955"
          type_id="3"
          status="-"
          setter="commit-queue"
    />
          </attachment>
      

    </bug>

</bugzilla>