From 44a7e42f0310831e6a846d1b6bb40bf3a399bf6d Mon Sep 17 00:00:00 2001 From: John Grossman Date: Thu, 21 Jun 2012 17:29:24 -0700 Subject: Add the ability to dynamicaly register MediaPlayer types. Add the ability to dynamically register low level MediaPlayer factories which will be probed at setDataSource time to determine the proper MediaPlayerBase to instantiate. This change is in preparation for moving libaah_rtp out of frameworks/base and into phantasm platform directory. Change-Id: Icf8904db3ab9e3c85df6e780d5546d9988cb9076 Signed-off-by: John Grossman --- include/media/IMediaPlayer.h | 1 + include/media/MediaPlayerInterface.h | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/media/IMediaPlayer.h b/include/media/IMediaPlayer.h index 00facc5a..4ed18634 100644 --- a/include/media/IMediaPlayer.h +++ b/include/media/IMediaPlayer.h @@ -64,6 +64,7 @@ public: virtual status_t setParameter(int key, const Parcel& request) = 0; virtual status_t getParameter(int key, Parcel* reply) = 0; virtual status_t setRetransmitEndpoint(const struct sockaddr_in* endpoint) = 0; + virtual status_t getRetransmitEndpoint(struct sockaddr_in* endpoint) = 0; virtual status_t setNextPlayer(const sp& next) = 0; // Invoke a generic method on the player by using opaque parcels diff --git a/include/media/MediaPlayerInterface.h b/include/media/MediaPlayerInterface.h index a70fe8c7..0498ed19 100644 --- a/include/media/MediaPlayerInterface.h +++ b/include/media/MediaPlayerInterface.h @@ -154,12 +154,15 @@ public: virtual status_t getParameter(int key, Parcel *reply) = 0; // Right now, only the AAX TX player supports this functionality. For now, - // provide a default implementation which indicates a lack of support for - // this functionality to make life easier for all of the other media player + // provide default implementations which indicate a lack of support for this + // functionality to make life easier for all of the other media player // maintainers out there. virtual status_t setRetransmitEndpoint(const struct sockaddr_in* endpoint) { return INVALID_OPERATION; } + virtual status_t getRetransmitEndpoint(struct sockaddr_in* endpoint) { + return INVALID_OPERATION; + } // Invoke a generic method on the player by using opaque parcels // for the request and reply. -- cgit v1.2.3