From acb62af8ccf493b38decd91d94eb18395b6f9461 Mon Sep 17 00:00:00 2001 From: Gloria Wang Date: Mon, 25 Apr 2011 17:29:16 -0700 Subject: Add setParameter/getParameter to MediaPlayer API for bug 1982947 Change-Id: Ic32704367bdcf2ade3f035a164927e95c69af7fa --- libvideoeditor/lvpp/VideoEditorPlayer.cpp | 10 ++++++++++ libvideoeditor/lvpp/VideoEditorPlayer.h | 2 ++ 2 files changed, 12 insertions(+) (limited to 'libvideoeditor/lvpp') diff --git a/libvideoeditor/lvpp/VideoEditorPlayer.cpp b/libvideoeditor/lvpp/VideoEditorPlayer.cpp index 2ca7996..d8ec3be 100755 --- a/libvideoeditor/lvpp/VideoEditorPlayer.cpp +++ b/libvideoeditor/lvpp/VideoEditorPlayer.cpp @@ -159,6 +159,16 @@ status_t VideoEditorPlayer::setLooping(int loop) { return mPlayer->setLooping(loop); } +status_t VideoEditorPlayer::setParameter(int key, const Parcel &request) { + LOGV("setParameter"); + return mPlayer->setParameter(key, request); +} + +status_t VideoEditorPlayer::getParameter(int key, Parcel *reply) { + LOGV("getParameter"); + return mPlayer->getParameter(key, reply); +} + player_type VideoEditorPlayer::playerType() { LOGV("playerType"); return STAGEFRIGHT_PLAYER; diff --git a/libvideoeditor/lvpp/VideoEditorPlayer.h b/libvideoeditor/lvpp/VideoEditorPlayer.h index 0b8a992..349f7fd 100755 --- a/libvideoeditor/lvpp/VideoEditorPlayer.h +++ b/libvideoeditor/lvpp/VideoEditorPlayer.h @@ -117,6 +117,8 @@ public: virtual status_t resume(); virtual void acquireLock(); virtual void releaseLock(); + virtual status_t setParameter(int key, const Parcel &request); + virtual status_t getParameter(int key, Parcel *reply); virtual status_t getMetadata( const media::Metadata::Filter& ids, Parcel *records); -- cgit v1.1