[html5] r6288 - [e] (0) correct example

whatwg at whatwg.org whatwg at whatwg.org
Mon Jul 11 15:37:23 PDT 2011


Author: ianh
Date: 2011-07-11 15:37:21 -0700 (Mon, 11 Jul 2011)
New Revision: 6288

Modified:
   complete.html
   index
   source
Log:
[e] (0) correct example

Modified: complete.html
===================================================================
--- complete.html	2011-07-11 22:34:50 UTC (rev 6287)
+++ complete.html	2011-07-11 22:37:21 UTC (rev 6288)
@@ -75837,10 +75837,11 @@
    navigator.getUserMedia('audio', gotStream, noStream);
    recBtn.disabled = true;
  }
- var msgStream;
+ var msgStream, msgStreamRecorder;
  function gotStream(stream) {
    report('Recording... To stop, press to ◼ button.');
    msgStream = stream;
+   msgStreamRecorder = stream.record();
    stopBtn.disabled = false;
    stream.onended = function () {
      msgStop();     
@@ -75851,7 +75852,7 @@
    stopBtn.disabled = true;
    msgStream.onended = null;
    msgStream.stop();
-   msgStream.getRecordedData(msgSave);
+   msgStreamRecorder.getRecordedData(msgSave);
  }
  function msgSave(blob) {
    report('Uploading file...');

Modified: index
===================================================================
--- index	2011-07-11 22:34:50 UTC (rev 6287)
+++ index	2011-07-11 22:37:21 UTC (rev 6288)
@@ -75735,10 +75735,11 @@
    navigator.getUserMedia('audio', gotStream, noStream);
    recBtn.disabled = true;
  }
- var msgStream;
+ var msgStream, msgStreamRecorder;
  function gotStream(stream) {
    report('Recording... To stop, press to ◼ button.');
    msgStream = stream;
+   msgStreamRecorder = stream.record();
    stopBtn.disabled = false;
    stream.onended = function () {
      msgStop();     
@@ -75749,7 +75750,7 @@
    stopBtn.disabled = true;
    msgStream.onended = null;
    msgStream.stop();
-   msgStream.getRecordedData(msgSave);
+   msgStreamRecorder.getRecordedData(msgSave);
  }
  function msgSave(blob) {
    report('Uploading file...');

Modified: source
===================================================================
--- source	2011-07-11 22:34:50 UTC (rev 6287)
+++ source	2011-07-11 22:37:21 UTC (rev 6288)
@@ -86532,10 +86532,11 @@
    navigator.getUserMedia('audio', gotStream, noStream);
    recBtn.disabled = true;
  }
- var msgStream;
+ var msgStream, msgStreamRecorder;
  function gotStream(stream) {
    report('Recording... To stop, press to ◼ button.');
    msgStream = stream;
+   msgStreamRecorder = stream.record();
    stopBtn.disabled = false;
    stream.onended = function () {
      msgStop();     
@@ -86546,7 +86547,7 @@
    stopBtn.disabled = true;
    msgStream.onended = null;
    msgStream.stop();
-   msgStream.getRecordedData(msgSave);
+   msgStreamRecorder.getRecordedData(msgSave);
  }
  function msgSave(blob) {
    report('Uploading file...');




More information about the Commit-Watchers mailing list