diff options
author | Gloria Wang <gwang@google.com> | 2011-04-25 17:28:22 -0700 |
---|---|---|
committer | Gloria Wang <gwang@google.com> | 2011-04-29 10:24:03 -0700 |
commit | 4f9e47f2c03ce36261c4717cd7e131d7940bb068 (patch) | |
tree | 5c3fc9eacd2d81b02cb45c050336c28ea924842e /media/libstagefright | |
parent | d0675ede6de2249256d20271a19ccbf9f11745b8 (diff) | |
download | frameworks_av-4f9e47f2c03ce36261c4717cd7e131d7940bb068.zip frameworks_av-4f9e47f2c03ce36261c4717cd7e131d7940bb068.tar.gz frameworks_av-4f9e47f2c03ce36261c4717cd7e131d7940bb068.tar.bz2 |
Add setParameter/getParameter to MediaPlayer API.
for bug 1982947
Change-Id: If3f40e4f18cbba155af29944af38bdc627f8cd53
Diffstat (limited to 'media/libstagefright')
-rw-r--r-- | media/libstagefright/AwesomePlayer.cpp | 7 | ||||
-rw-r--r-- | media/libstagefright/include/AwesomePlayer.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/media/libstagefright/AwesomePlayer.cpp b/media/libstagefright/AwesomePlayer.cpp index 1bfdd8e..145b935 100644 --- a/media/libstagefright/AwesomePlayer.cpp +++ b/media/libstagefright/AwesomePlayer.cpp @@ -1905,4 +1905,11 @@ void AwesomePlayer::postAudioSeekComplete() { postCheckAudioStatusEvent_l(0 /* delayUs */); } +status_t AwesomePlayer::setParameter(int key, const Parcel &request) { + return OK; +} + +status_t AwesomePlayer::getParameter(int key, Parcel *reply) { + return OK; +} } // namespace android diff --git a/media/libstagefright/include/AwesomePlayer.h b/media/libstagefright/include/AwesomePlayer.h index 8c61064..2c17d92 100644 --- a/media/libstagefright/include/AwesomePlayer.h +++ b/media/libstagefright/include/AwesomePlayer.h @@ -88,6 +88,9 @@ struct AwesomePlayer { status_t getDuration(int64_t *durationUs); status_t getPosition(int64_t *positionUs); + status_t setParameter(int key, const Parcel &request); + status_t getParameter(int key, Parcel *reply); + status_t seekTo(int64_t timeUs); // This is a mask of MediaExtractor::Flags. |