<?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>18962</bug_id>
          
          <creation_ts>2012-09-21 22:07:03 +0000</creation_ts>
          <short_desc>Allow appending with XHR</short_desc>
          <delta_ts>2013-01-20 16:16:17 +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>tpac2012</status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>FPWD</target_milestone>
          <dependson>20434</dependson>
          <blocked>20253</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Aaron Colwell (c)">acolwell</reporter>
          <assigned_to name="Adrian Bateman [MSFT]">adrianba</assigned_to>
          <cc>cyril.concolato</cc>
    
    <cc>eric.sun</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>74268</commentid>
    <comment_count>0</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2012-09-21 22:07:03 +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

The goal is to allow appending data fetched from XMLHttpRequest without having to surface the media data to the JavaScript layer. Ideally this data would be progressively appended as it arrives.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74615</commentid>
    <comment_count>1</comment_count>
    <who name="Yang Sun">eric.sun</who>
    <bug_when>2012-09-27 00:57:39 +0000</bug_when>
    <thetext>what does it mean by without surface media data to JS layer?
In common operation,
I will fetch data from XHR response by JS API, then using append() to append to SourceBuffer.
What are other means direct media data in XHR reponse to SourceBuffer?


(In reply to comment #0)
&gt; This bug is the result of discussions around Bug 16998
&gt; 
&gt; http://lists.w3.org/Archives/Public/public-html-media/2012Jul/0074.html
&gt; http://www.w3.org/2012/07/31-html-media-minutes.html#item05
&gt; 
&gt; The goal is to allow appending data fetched from XMLHttpRequest without having
&gt; to surface the media data to the JavaScript layer. Ideally this data would be
&gt; progressively appended as it arrives.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76872</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2012-10-22 02:37:41 +0000</bug_when>
    <thetext>The goal here is to avoid JavaScript from having to do work to load the data with script (for example into an ArrayBuffer) before pushing back down to the media engine. User agents use fewer resources by letting the media engine and related components take care of buffer management.

I propose adding void appendStream(Stream stream) based on the Microsoft proposal [1], which was discussed recently in Webapps [2]. We need to understand if and how this feature will be added to the W3C XHR spec.

[1] http://dvcs.w3.org/hg/streams-api/raw-file/tip/Overview.htm#addition-of-stream-responsetype
[2] http://lists.w3.org/Archives/Public/public-webapps/2012OctDec/0134.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79405</commentid>
    <comment_count>3</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2012-12-04 15:32:47 +0000</bug_when>
    <thetext>I will add void append(Stream stm) and two events for appendcomplete and appenderror to the SourceBuffer object. Assigned to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80901</commentid>
    <comment_count>4</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2013-01-04 19:20:31 +0000</bug_when>
    <thetext>Changes committed
http://dvcs.w3.org/hg/html-media/rev/52a85235137b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81606</commentid>
    <comment_count>5</comment_count>
    <who name="Cyril Concolato">cyril.concolato</who>
    <bug_when>2013-01-20 16:16:17 +0000</bug_when>
    <thetext>Why did you add the maxSize attribute ? I don&apos;t see the use case where one would want to push XHR data limited to a size, except maybe if it has parsed the data in already, in which case the appendArrayBuffer will be used. I would rather see a maxDuration attribute. 
(As a side note, I think the Stream object has a problem in that it keeps all data since the beginning of the download, which is not what we want here. More details here: http://lists.w3.org/Archives/Public/public-webapps/2013JanMar/0081.html)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>