Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Revert "Refactor API to allow seperate preview and record steps"
Browse files Browse the repository at this point in the history
This reverts commit f2a6d84.
  • Loading branch information
anantn committed Mar 28, 2011
1 parent f2a6d84 commit 6b268e8
Show file tree
Hide file tree
Showing 10 changed files with 124 additions and 282 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 21,7 @@ endif
endif

so_files=components/libmediarecorder.$(so)
xpt_files=components/IMediaDevice.xpt
xpt_files=components/IMediaRecorder.xpt

xpi_name=rainbow-$(VERSION)-dev.xpi
xpi_files=chrome.manifest install.rdf content/ $(so_files) $(xpt_files)
Expand Down
2 changes: 1 addition & 1 deletion chrome.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 2,7 @@ resource rainbow ./
content rainbow content/
overlay chrome://browser/content/browser.xul chrome://rainbow/content/browser.xul

interfaces components/IMediaDevice.xpt
interfaces components/IMediaRecorder.xpt
binary-component components/libmediarecorder.dylib ABI=Darwin_x86-gcc3
binary-component components/libmediarecorder.dll ABI=WINNT_x86-msvc
binary-component components/libmediarecorder.so ABI=Linux_x86-gcc3
Expand Down
12 changes: 4 additions & 8 deletions components/IMediaDevice.idl → components/IMediaRecorder.idl
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 46,10 @@ interface nsIMediaStateObserver : nsISupports
};

[scriptable, uuid(c467b1f4-551c-4e2f-a6ba-cb7d792d1452)]
interface IMediaDevice : nsISupports
interface IMediaRecorder : nsISupports
{
void beginSession(in nsIPropertyBag2 prop,
void recordToFile(in nsIPropertyBag2 prop,
in nsIDOMCanvasRenderingContext2D ctx,
in nsIMediaStateObserver obs);
void beginRecord(in nsILocalFile file);
void pauseRecord();
void resumeRecord();
void endRecord();
void endSession();
in nsILocalFile file, in nsIMediaStateObserver obs);
void stop();
};
2 changes: 1 addition & 1 deletion components/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 53,7 @@ target = libmediarecorder
so_target = $(target:=.$(so))

# source and path configurations
idl = IMediaDevice.idl
idl = IMediaRecorder.idl
cpp_sources = MediaRecorder.cpp MediaModule.cpp Convert.cpp \
VideoSource.cpp $(os)/VideoSource$(teh).cpp \
AudioSource.cpp $(os)/AudioSource$(teh).cpp \
Expand Down
Loading

0 comments on commit 6b268e8

Please sign in to comment.