<?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>197527</bug_id>
          
          <creation_ts>2019-05-02 12:58:38 -0700</creation_ts>
          <short_desc>HLS videos not rendered when used as WebGL textures until canvas is resized</short_desc>
          <delta_ts>2021-03-18 03:05:59 -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>Safari 12</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pavel Pomerantsev">pomerantsevp</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>jer.noble</cc>
    
    <cc>jonlee</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>pomerantsevp</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1532406</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel Pomerantsev">pomerantsevp</who>
    <bug_when>2019-05-02 12:58:38 -0700</bug_when>
    <thetext>If an HLS video is used as a WebGL texture, it&apos;s not displayed initially.
In order to display it, the WebGL canvas needs to be resized (`canvas.width` or `canvas.height` needs to change after the video has started playing).
HLS videos as textures are working correctly in iOS 12.0.1 (16A404), but not in iOS 12.2 (16E227). It doesn&apos;t seem to be OS-version-dependent rather than hardware-dependent (I tested it on a few different iPhone models).
Here&apos;s a minimal reproduction of the issue: http://ios-bug-demo.s3-website-us-east-1.amazonaws.com/ — in desktop Safari and in older iOS Safari versions the video is displayed inside the canvas as soon as video starts playing, but in iOS 12.2 you have to additionally click on the canvas to see the video.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1534393</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-05-08 11:30:41 -0700</bug_when>
    <thetext>&lt;rdar://problem/50589167&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1534394</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-05-08 11:30:44 -0700</bug_when>
    <thetext>&lt;rdar://problem/50589169&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1741121</commentid>
    <comment_count>3</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-18 03:05:59 -0700</bug_when>
    <thetext>Thanks for the report.
I think the test-case outputs some errors related to video element not having the video content.
In ThreeJS I think there&apos;s a VideoTexture that could be used.

If there&apos;s further problems with current iOS, please reopen and maybe revise the test case a bit.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>