<?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>211852</bug_id>
          
          <creation_ts>2020-05-13 11:14:32 -0700</creation_ts>
          <short_desc>Media Source Extensions + WebGL video texture degraded playback performance</short_desc>
          <delta_ts>2021-03-30 03:55:27 -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>Media</component>
          <version>Safari 13</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>223918</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dustin Kerstein">dustin.kerstein</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>dustin.kerstein</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>justin_fan</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1652292</commentid>
    <comment_count>0</comment_count>
    <who name="Dustin Kerstein">dustin.kerstein</who>
    <bug_when>2020-05-13 11:14:32 -0700</bug_when>
    <thetext>It appears that the issue noted in https://bugs.webkit.org/show_bug.cgi?id=211750 is significantly worse when using Media Source Extensions for video playback. Here are two near-identical demos:

   JSFiddle with MSE - https://jsfiddle.net/yj9vpfkr
   JSFiddle with blob as video source - https://jsfiddle.net/knL126st

*Note* that as these JSFiddles use iFrames, you&apos;ll need to click into the result iFrame to get Safari to avoid using its low power mode (meant for ads) which limits rendering to 30fps.

Test results - JSFiddle with MSE:

   2011 Macbook Pro - Playback starts to freeze at playbackRate = 0.02 and also causes the render loop to stop running (and the whole tab freezes)
   First generation iPad Pro - Playback starts to freeze at playbackRate = 0.10

Test results - JSFiddle with blob as video source:

   2011 Macbook Pro - Playback starts to freeze at playbackRate = 0.80
   First generation iPad Pro - Playback starts to freeze at playbackRate = 2.00

Note that with blob as video source you&apos;ll eventually run into https://bugs.webkit.org/show_bug.cgi?id=211750, but regardless, the maximum playbackRate with MSE is significantly worse.

Also note that these JSFiddles are specifically using Long GOP test video files to avoid this XPC messages issue - https://bugs.webkit.org/show_bug.cgi?id=211295</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1652432</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-05-13 16:25:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/63205446&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>