Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Re-introduce record-finished observer event

  • Loading branch information...
commit dfd6bf1901de17e238beeb2f251ce61316132ea8 1 parent ab3b4bf
Anant Narayanan anantn authored
Showing with 4 additions and 2 deletions.
  1. +1 −1  components/MediaRecorder.cpp
  2. +3 −1 content/rainbow.js
2  components/MediaRecorder.cpp
View
@@ -184,7 +184,7 @@ MediaRecorder::GetVideoPacket(PRInt32 *len, PRFloat64 *times)
rv = vState->vPipeIn->Read((char *)times, sizeof(PRFloat64), &rd);
rv = vState->vPipeIn->Read((char *)len, sizeof(PRUint32), &rd);
- fprintf(stderr, "Got %d video packets at %f\n", *len / vState->backend->GetFrameSize(), *times);
+ //fprintf(stderr, "Got %d video packets at %f\n", *len / vState->backend->GetFrameSize(), *times);
v_frame = (PRUint8 *)PR_Calloc(*len, sizeof(PRUint8));
do vState->vPipeIn->Available(&rd);
4 content/rainbow.js
View
@@ -249,7 +249,9 @@ Rainbow.prototype = {
this._rainbow.endRecording();
this._recording = false;
if (this._input) {
- return this._input;
+ let ret = this._input;
+ this._input = null;
+ this._observer("record-finished", ret);
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.