<?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>23726</bug_id>
          
          <creation_ts>2013-11-05 17:17:01 +0000</creation_ts>
          <short_desc>Integration between XMLHttpRequest and Streams API</short_desc>
          <delta_ts>2015-04-28 04:51:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Streams API</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Takeshi Yoshino">tyoshino</reporter>
          <assigned_to name="Takeshi Yoshino">tyoshino</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>95814</commentid>
    <comment_count>0</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2013-11-05 17:17:01 +0000</bug_when>
    <thetext>Current ED tries to support upload-with-Stream usage by making send() to accept a Stream as its argument. We can also choose to let XHR provide a WritableByteStream.

For example, if we can make send() to return a WritableByteStream, it&apos;ll be

streamForUpload = xhr.send();
source.pipe(streamForUpload);

Current extension approach is easy. But maybe now we should revisit this and discuss which is better not only about XHR but for each API and if possible figure out good practice in general.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95816</commentid>
    <comment_count>1</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2013-11-05 17:35:56 +0000</bug_when>
    <thetext>The SourceBuffer.appendStream method of Media Source Extensions takes a Stream as an argument.

https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#widl-SourceBuffer-appendStream-void-Stream-stream-unsigned-long-long-maxSize

void appendStream (Stream stream, [EnforceRange] optional unsigned long long maxSize);

----

Media Capture API

http://www.w3.org/wiki/Media_Capture

----

Discussion between Takeshi and Aymeric with some examples.

http://lists.w3.org/Archives/Public/public-webapps/2013JulSep/0593.html
http://lists.w3.org/Archives/Public/public-webapps/2013JulSep/0664.html
http://lists.w3.org/Archives/Public/public-webapps/2013OctDec/0232.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119969</commentid>
    <comment_count>2</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2015-04-28 04:51:44 +0000</bug_when>
    <thetext>Integration of Streams and XMLHttpRequest has been discontinued as the WG roughly agreed on feature freeze of XMLHttpRequest.

Integration with the Fetch API is happening at https://github.com/yutakahirano/fetch-with-streams.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>