<?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>197550</bug_id>
          
          <creation_ts>2019-05-02 21:22:23 -0700</creation_ts>
          <short_desc>calling getVideoPlaybackQuality() during seek will cause hang instantly until end of downloads media source</short_desc>
          <delta_ts>2019-05-03 10:17:48 -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>WebKit Nightly Build</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>root</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1532644</commentid>
    <comment_count>0</comment_count>
    <who name="">root</who>
    <bug_when>2019-05-02 21:22:23 -0700</bug_when>
    <thetext>calling getVideoPlaybackQuality() during seek will cause hang instantly until end of downloads media source.
This also happened when Web Inspector is opened.

* Reproducing step

1. play any mp4 video with url that is never cached yet
2. registering `seeking` event listener which contains getVideoPlaybackQuality()
3. move playhead to unbuffered timeline on video timeline shown
4. repeat 3 until hang it browser

(optionally) If you cannot reproduce with above steps, maybe using `timeupdate` handler will helpful to reproduce (see to code stubs in below)


* Reproducing environments

iOS Safari / WKWebView (iOS 12.1, iOS 12.2, iOS 12.3 public beta3)
macOS Safari 12.1.2, Safari Technical Preview 81 (macOS 10.14.4)
MiniBrowser.app (r244898, macOS 10.14.4)


* Test stubs

&lt;!--
you need to change video source, and it should be MP4
Also, It is not matter of video container.
--&gt;
&lt;video src=&quot;http://example/v.mp4&quot; controls id=&quot;x&quot;&gt;&lt;/video&gt;
&lt;div id=&quot;logger&quot;&gt;&lt;/div&gt;

&lt;script&gt;
  var x = document.getElementById(&apos;x&apos;);
  var l = document.getElementById(&apos;logger&apos;);
  function log(
     l.innerHTML = object.totalVideoFrames;
  }

  x.addEventListener(&apos;seeking&apos;, function () {
    log(x.getVideoPlaybackQuality());
  });
  // It happened more frequently happened with following stubs
  // x.addEventListener(&apos;timeupdate&apos;, function () {
  //  log(x.getVideoPlaybackQuality());
  // });
 &lt;/script&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1532828</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-05-03 10:17:48 -0700</bug_when>
    <thetext>&lt;rdar://problem/50447868&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>