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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24347</bug_id>
          
          <creation_ts>2014-01-21 23:06:55 +0000</creation_ts>
          <short_desc>Use consistant criteria for transitioning to HAVE_FUTURE_DATA.</short_desc>
          <delta_ts>2014-03-03 23:46:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>Media Source Extensions</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aaron Colwell">acolwell</reporter>
          <assigned_to name="Adrian Bateman [MSFT]">adrianba</assigned_to>
          <cc>cyril.concolato</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-media</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98853</commentid>
    <comment_count>0</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2014-01-21 23:06:55 +0000</bug_when>
    <thetext>The &quot;SourceBuffer monitoring&quot; algorithm in Section 2.4.4 and the &quot;Coded frame processing&quot; algorithm in Section 3.5.8 don&apos;t use the same criteria for transitioning the HTMLMediaElement.readyState to HAVE_FUTURE_DATA.

SourceBuffer monitoring text:
&quot;If buffered for at least one object in activeSourceBuffers contains a TimeRange that includes the current playback position but not enough data to ensure uninterrupted playback:&quot;

Coded frame processing algorithm text:
&quot;If the HTMLMediaElement.readyState attribute is HAVE_CURRENT_DATA and the new coded frames cause all objects in activeSourceBuffers to have media data beyond the current playback position, then run the following steps:&quot;


I propose that the SourceBuffer monitoring text be updated to the following:
&quot;If buffered for all objects in activeSourceBuffers contains a TimeRange that includes the current playback position and some time beyond the current playback position, but not enough data to ensure uninterrupted playback:&quot;

I believe this will bring the 2 algorithms into sync and avoid potential readyState oscillations caused by different criteria being used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101799</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2014-03-03 23:46:27 +0000</bug_when>
    <thetext>Change committed
https://dvcs.w3.org/hg/html-media/rev/cad94fce3b90</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>