<?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>18963</bug_id>
          
          <creation_ts>2012-09-21 22:28:51 +0000</creation_ts>
          <short_desc>Provide a mechanism for rate limiting appending</short_desc>
          <delta_ts>2012-12-06 01:57:00 +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>Windows 3.1</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>tpac2012</status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>20253</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Aaron Colwell (c)">acolwell</reporter>
          <assigned_to name="Aaron Colwell (c)">acolwell</assigned_to>
          <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>74272</commentid>
    <comment_count>0</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2012-09-21 22:28:51 +0000</bug_when>
    <thetext>This bug is the result of discussions around Bug 16998

http://lists.w3.org/Archives/Public/public-html-media/2012Jul/0074.html
http://www.w3.org/2012/07/31-html-media-minutes.html#item05

Currently there is no mechanism for the UA to signal that it wants the web application to stop appending for a while. A UA might want to do this in a memory constrained environment to help the web application avoid appending &quot;too far ahead&quot; which might trigger media segment eviction (Section 2.10). 

It could be useful to have a mechanism that notifies the application when further appends will trigger evictions so the web application could use remove() (https://www.w3.org/Bugs/Public/show_bug.cgi?id=18709) to control what time ranges get removed. When the UA determines that enough data has been removed to allow appending again it can notify the application with an event.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79493</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2012-12-05 19:09:02 +0000</bug_when>
    <thetext>Based on discussions at TPAC (http://www.w3.org/2012/11/01-html-wg-minutes.html), it was decided to have append() throw an exception when the SourceBuffer is full. The application can use remove() to free up space in the buffer and try again.

I plan on updating the spec text for append() to say that a QUOTA_EXCEEDED_ERR should be thrown if the SourceBuffer doesn&apos;t have space available to accommodate the data in the append.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79519</commentid>
    <comment_count>2</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2012-12-06 01:57:00 +0000</bug_when>
    <thetext>Changes committed
http://dvcs.w3.org/hg/html-media/rev/43be42e69533</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>