Permalink
Browse files

Make record and stop non-blocking (does not invoke observer because J…

…S objects cannot be shared across threads)
  • Loading branch information...
1 parent c7e3b9f commit f94e5e84b46739bf58415f8d7de2703fce09f7b0 @anantn anantn committed Mar 15, 2011
Showing with 201 additions and 196 deletions.
  1. +3 −0 .gitignore
  2. +7 −2 components/IMediaRecorder.idl
  3. +161 −118 components/MediaRecorder.cpp
  4. +11 −9 components/MediaRecorder.h
  5. +5 −1 content/example.html
  6. +5 −32 content/injected.js
  7. +1 −3 content/injector.js
  8. +7 −30 content/rainbow.js
  9. +1 −1 install.rdf
View
@@ -1 +1,4 @@
*.swp
+*.o
+*.dylib
+.DS_Store
@@ -39,12 +39,17 @@
#include "nsIPropertyBag2.idl"
#include "nsIDOMCanvasRenderingContext2D.idl"
+[scriptable, function, uuid(9d66a225-0134-4c6f-a6e2-466c899bdde4)]
+interface nsIMediaStateObserver : nsISupports
+{
+ void onStateChange(in string state, in string args);
+};
+
[scriptable, uuid(c467b1f4-551c-4e2f-a6ba-cb7d792d1452)]
interface IMediaRecorder : nsISupports
{
void recordToFile(in nsIPropertyBag2 prop,
in nsIDOMCanvasRenderingContext2D ctx,
- in nsILocalFile file);
+ in nsILocalFile file, in nsIMediaStateObserver obs);
void stop();
};
-
Oops, something went wrong.

0 comments on commit f94e5e8

Please sign in to comment.