diff options
author | James Dong <jdong@google.com> | 2010-06-25 17:06:47 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-06-28 15:32:26 -0700 |
commit | fe1bafecdecd49533c46521057c7c9eeb788d0fa (patch) | |
tree | 5f00f3fb509553d049c2f93e7474562ac7aec94c /include/media/IMediaRecorder.h | |
parent | de1057c4a6aa41c3b88bcc4fd49d70f973f1d9eb (diff) | |
download | frameworks_base-fe1bafecdecd49533c46521057c7c9eeb788d0fa.zip frameworks_base-fe1bafecdecd49533c46521057c7c9eeb788d0fa.tar.gz frameworks_base-fe1bafecdecd49533c46521057c7c9eeb788d0fa.tar.bz2 |
Separate MediaRecorderClient with MediaPlayerClient
- An alternative would be to define a common base class that
both MediaRecorderClient and MediaPlayerClient can derive.
But since the common code, onTransact() and notify() uses
some Binder code, having a common base class may not gain
us too much in terms of code reuse.
Change-Id: Ibc06720278ad173fceacff3d267b7060856c6316
Diffstat (limited to 'include/media/IMediaRecorder.h')
-rw-r--r-- | include/media/IMediaRecorder.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/IMediaRecorder.h b/include/media/IMediaRecorder.h index 24ac82b..cfc17a5 100644 --- a/include/media/IMediaRecorder.h +++ b/include/media/IMediaRecorder.h @@ -24,7 +24,7 @@ namespace android { class ISurface; class ICamera; -class IMediaPlayerClient; +class IMediaRecorderClient; class IMediaRecorder: public IInterface { @@ -43,7 +43,7 @@ public: virtual status_t setVideoSize(int width, int height) = 0; virtual status_t setVideoFrameRate(int frames_per_second) = 0; virtual status_t setParameters(const String8& params) = 0; - virtual status_t setListener(const sp<IMediaPlayerClient>& listener) = 0; + virtual status_t setListener(const sp<IMediaRecorderClient>& listener) = 0; virtual status_t prepare() = 0; virtual status_t getMaxAmplitude(int* max) = 0; virtual status_t start() = 0; |