<?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>27296</bug_id>
          
          <creation_ts>2014-11-11 10:33:36 +0000</creation_ts>
          <short_desc>[MSE] HTMLMediaElement.seekable when duration equals Infinity but buffered is empty</short_desc>
          <delta_ts>2014-11-11 17:10:53 +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>All</rep_platform>
          <op_sys>All</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>CR</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henrik Steen">henriks</reporter>
          <assigned_to name="Aaron Colwell">acolwell</assigned_to>
          <cc>acolwell</cc>
    
    <cc>cyril.concolato</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</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>114781</commentid>
    <comment_count>0</comment_count>
    <who name="Henrik Steen">henriks</who>
    <bug_when>2014-11-11 10:33:36 +0000</bug_when>
    <thetext>Spawned from: https://codereview.chromium.org/710173004/diff/1/Source/modules/mediasource/MediaSource.cpp#newcode378

&quot;If duration equals positive Infinity
Return a single range with a start time of 0 and an end time equal to the highest end time reported by the HTMLMediaElement.buffered attribute.&quot;

But what should be returned if the duration equals positive Infinity but nothing is yet buffered?  Should seekable be empty as well, or should it return a range of (0, 0]?

Previous discussion: https://www.w3.org/Bugs/Public/show_bug.cgi?id=18666</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114782</commentid>
    <comment_count>1</comment_count>
    <who name="Henrik Steen">henriks</who>
    <bug_when>2014-11-11 10:38:09 +0000</bug_when>
    <thetext>As you can see from the Chromium review, I would opt for seekable being empty in this case, but the spec is a bit vague about what should actually be return.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114804</commentid>
    <comment_count>2</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2014-11-11 17:10:53 +0000</bug_when>
    <thetext>Change committed...
https://dvcs.w3.org/hg/html-media/rev/9d9e8d48c852

Updated algorithm to return an empty range if .buffered is empty and .duration equals Infinity.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>