<?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>11673</bug_id>
          
          <creation_ts>2011-01-05 21:41:25 +0000</creation_ts>
          <short_desc>Streaming audio data from a microphone over a WebSocket</short_desc>
          <delta_ts>2012-07-18 18:40:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#stream-api</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bugs</cc>
    
    <cc>dakan</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>43830</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-01-05 21:41:25 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html
Section: http://www.whatwg.org/specs/web-apps/current-work/complete.html#stream-api

Comment:
I need to send live data from device to URL on remote system.  Would be nice
to connect WebSocket, but simple access to buffer callback to package and send
data to remote URL.  Having access to data after closing recording interupts
asynchronous processing of audio/video data.

Posted from: 12.116.138.30</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45201</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-02-07 22:37:37 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Did Not Understand Request
Change Description: no spec change
Rationale: I don&apos;t understand. Could you elaborate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45205</commentid>
    <comment_count>2</comment_count>
    <who name="Marvin McFadin">dakan</who>
    <bug_when>2011-02-07 22:48:06 +0000</bug_when>
    <thetext>The last draft I saw only had provision for spooling device data (in my case sound) and when recording is stopped a spool file can be accessed for the binary data.

My application requires a live stream of buffered recorded audio (voice) to be sent to remote server, where the audio data may be immediately and asynchronously processed and an asynchronous result sent back the client and for each segment of time of the continuous live stream.

My application may send a stream of live data for between a few seconds to several minutes in length.  The latter would make the use of the file based API unacceptable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46276</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-03-04 01:35:52 +0000</bug_when>
    <thetext>Ah, I see. Yeah, we&apos;ll need to support this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46706</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-03-15 06:02:48 +0000</bug_when>
    <thetext>Moving this to WebSockets. This will likely not be supported for some time. In the meantime, a server could just implement PeerConnection if you&apos;re willing to do unreliable audio over UDP (as opposed to reliable but potentially high-latency audio over TCP).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46715</commentid>
    <comment_count>5</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2011-03-15 13:10:26 +0000</bug_when>
    <thetext>Why is there PeerConnection and WebSocket APIs. They have very much in common
(the API, not the protocols). Could we just have one API which
can use several communications channels/protocols?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46970</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-03-24 20:17:31 +0000</bug_when>
    <thetext>Marking this &quot;LATER&quot; for now, because we need more implementation experience with binary data in WebSocket and multiplexing in WebSocket before we add this.

Regarding comment 5, the APIs are as similar as makes sense, but in practice the problems of peer-to-peer and client-server have quite different needs and I don&apos;t think it would make sense to use the same API for both.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48756</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-05-24 23:29:41 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: enabled UDP-based client-to-server stream transfer using PeerConnection.
Rationale: WebSockets wasn&apos;t really the right solution, as it&apos;s TCP-based on media really needs UDP.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>