summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGloria Wang <gwang@google.com>2011-04-25 17:28:22 -0700
committerGloria Wang <gwang@google.com>2011-04-29 10:24:03 -0700
commitd01ec6eab019e46398975202e9e4a198a603ad99 (patch)
tree0669d2f0f8a546de5ebaf135bec67086648f51fc /include
parent71a0dab1ca962c2827be0221a7fbcc065dc3cbb8 (diff)
downloadframeworks_base-d01ec6eab019e46398975202e9e4a198a603ad99.zip
frameworks_base-d01ec6eab019e46398975202e9e4a198a603ad99.tar.gz
frameworks_base-d01ec6eab019e46398975202e9e4a198a603ad99.tar.bz2
Add setParameter/getParameter to MediaPlayer API.
for bug 1982947 Change-Id: If3f40e4f18cbba155af29944af38bdc627f8cd53
Diffstat (limited to 'include')
-rw-r--r--include/media/IMediaPlayer.h2
-rw-r--r--include/media/MediaPlayerInterface.h2
-rw-r--r--include/media/mediaplayer.h3
3 files changed, 7 insertions, 0 deletions
diff --git a/include/media/IMediaPlayer.h b/include/media/IMediaPlayer.h
index 9b1af6b..d552b2e 100644
--- a/include/media/IMediaPlayer.h
+++ b/include/media/IMediaPlayer.h
@@ -51,6 +51,8 @@ public:
virtual status_t setVolume(float leftVolume, float rightVolume) = 0;
virtual status_t setAuxEffectSendLevel(float level) = 0;
virtual status_t attachAuxEffect(int effectId) = 0;
+ virtual status_t setParameter(int key, const Parcel& request) = 0;
+ virtual status_t getParameter(int key, Parcel* reply) = 0;
// Invoke a generic method on the player by using opaque parcels
// for the request and reply.
diff --git a/include/media/MediaPlayerInterface.h b/include/media/MediaPlayerInterface.h
index bebecc0..f0401cc 100644
--- a/include/media/MediaPlayerInterface.h
+++ b/include/media/MediaPlayerInterface.h
@@ -132,6 +132,8 @@ public:
virtual status_t reset() = 0;
virtual status_t setLooping(int loop) = 0;
virtual player_type playerType() = 0;
+ virtual status_t setParameter(int key, const Parcel &request) = 0;
+ virtual status_t getParameter(int key, Parcel *reply) = 0;
// Invoke a generic method on the player by using opaque parcels
// for the request and reply.
diff --git a/include/media/mediaplayer.h b/include/media/mediaplayer.h
index 748e489..241626c 100644
--- a/include/media/mediaplayer.h
+++ b/include/media/mediaplayer.h
@@ -177,6 +177,9 @@ public:
int getAudioSessionId();
status_t setAuxEffectSendLevel(float level);
status_t attachAuxEffect(int effectId);
+ status_t setParameter(int key, const Parcel& request);
+ status_t getParameter(int key, Parcel* reply);
+
private:
void clear_l();
status_t seekTo_l(int msec);