<?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>227165</bug_id>
          
          <creation_ts>2021-06-18 03:40:21 -0700</creation_ts>
          <short_desc>Using existing HTMLVideoElement as source for texImage2D causes the video to disappear in HTMLVideoElement in Safari</short_desc>
          <delta_ts>2023-01-30 12:48:47 -0800</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>Safari 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>pepelesne801</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>erich.kreutzer</cc>
    
    <cc>kbr</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>vander</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1770977</commentid>
    <comment_count>0</comment_count>
    <who name="">pepelesne801</who>
    <bug_when>2021-06-18 03:40:21 -0700</bug_when>
    <thetext>When calling the WebGL&apos;s texImage2D to create a texture from an HTMLVideoElement, the texture is successfully created, but the existing HTMLVideoElement turns black, the sound can still be heard and the texture keeps getting updated with appropriate video frames. This only happens in Safari and works properly in other Browsers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1770979</commentid>
    <comment_count>1</comment_count>
    <who name="">pepelesne801</who>
    <bug_when>2021-06-18 03:43:10 -0700</bug_when>
    <thetext>No errors are reported in console</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1770981</commentid>
    <comment_count>2</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-06-18 03:55:13 -0700</bug_when>
    <thetext>Could you post example content, such as file + small video that reproduces the error.
Or then a test case url that reproduces the error.

Locally you can develop the test case with local web server by doing:
sudo pip3 install rangehttpserver
python3 -m RangeHTTPServer 

and then browse http://localhost:8000</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1772614</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-06-25 03:41:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/79770670&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1856407</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Vanderbeck">vander</who>
    <bug_when>2022-03-30 09:07:28 -0700</bug_when>
    <thetext>Here is an example of this bug still in action:

https://playground.babylonjs.com/#ZMCFYA#275

A video element being used with calls to texImage2D should appear in the upper left after a few seconds. It works fine in browsers besides Safari.

This makes it impossible to currently display a video on the DOM and in a 3d scene at the same time. A real problem for some use cases (click on a 3d screen to get a popup of a perfect 2d DOM view, etc.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>