<?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>18593</bug_id>
          
          <creation_ts>2012-08-16 15:43:17 +0000</creation_ts>
          <short_desc>Should SourceBuffer.buffered return a new object?</short_desc>
          <delta_ts>2012-08-23 08:36:11 +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>VERIFIED</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="Philip Jägenstedt">philipj</reporter>
          <assigned_to name="Aaron Colwell (c)">acolwell</assigned_to>
          <cc>acolwell</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>72289</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-08-16 15:43:17 +0000</bug_when>
    <thetext>http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#dom-buffered

2. Return TimeRanges for the media segments buffered.

It&apos;s not clear if a new object should be returned or if the same object should be returned each time. If the same object is returned, it must be clearly stated that the object is live, similar to a HTMLCollection.

HTMLMediaElement.buffered always returns a new object, see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-media-buffered</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72290</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-08-16 15:45:06 +0000</bug_when>
    <thetext>To be perfectly clear, I think that MSE should also return a new object on each property read.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72372</commentid>
    <comment_count>2</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2012-08-17 20:46:23 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#dom-buffered
&gt; 
&gt; 2. Return TimeRanges for the media segments buffered.
&gt; 
&gt; It&apos;s not clear if a new object should be returned or if the same object should
&gt; be returned each time. If the same object is returned, it must be clearly
&gt; stated that the object is live, similar to a HTMLCollection.
&gt; 
&gt; HTMLMediaElement.buffered always returns a new object, see
&gt; http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-media-buffered

I intended for it to be a new object every time.

How about:
&quot;2. Return a new static normalized TimeRanges object for the media segments buffered.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72419</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-08-20 08:39:50 +0000</bug_when>
    <thetext>Yes, that sounds good!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72564</commentid>
    <comment_count>4</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2012-08-22 23:37:46 +0000</bug_when>
    <thetext>Changes committed.
http://dvcs.w3.org/hg/html-media/rev/340786fcae83</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>