diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-09 14:51:54 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-09 14:51:54 -0700 |
commit | c494ba2544699e576370b35b7e94fe09e29d1226 (patch) | |
tree | e25599ac7d57f4627f4588865ecf6bee980a1672 /include | |
parent | f00193ff7ac1872fc88f86b5150e023c09846df9 (diff) | |
parent | b2c693919be966f179080a9ec70a7a82dbf57627 (diff) | |
download | frameworks_base-c494ba2544699e576370b35b7e94fe09e29d1226.zip frameworks_base-c494ba2544699e576370b35b7e94fe09e29d1226.tar.gz frameworks_base-c494ba2544699e576370b35b7e94fe09e29d1226.tar.bz2 |
Merge change 6636
* changes:
Implemented the metadata changed notification filters.
Diffstat (limited to 'include')
-rw-r--r-- | include/media/IMediaPlayer.h | 7 | ||||
-rw-r--r-- | include/media/mediaplayer.h | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/media/IMediaPlayer.h b/include/media/IMediaPlayer.h index 85aeb30..074125f 100644 --- a/include/media/IMediaPlayer.h +++ b/include/media/IMediaPlayer.h @@ -52,8 +52,13 @@ public: // @param request Parcel that must start with the media player // interface token. // @param[out] reply Parcel to hold the reply data. Cannot be null. - // @return OK if the invocation was made. PERMISSION_DENIED otherwise. + // @return OK if the invocation was made successfully. virtual status_t invoke(const Parcel& request, Parcel *reply) = 0; + + // Set a new metadata filter. + // @param filter A set of allow and drop rules serialized in a Parcel. + // @return OK if the invocation was made successfully. + virtual status_t setMetadataFilter(const Parcel& filter) = 0; }; // ---------------------------------------------------------------------------- diff --git a/include/media/mediaplayer.h b/include/media/mediaplayer.h index dd8ea19..8326a21 100644 --- a/include/media/mediaplayer.h +++ b/include/media/mediaplayer.h @@ -97,6 +97,8 @@ enum media_info_type { MEDIA_INFO_BAD_INTERLEAVING = 800, // The media is not seekable (e.g live stream). MEDIA_INFO_NOT_SEEKABLE = 801, + // New media metadata is available. + MEDIA_INFO_METADATA_UPDATE = 802, }; @@ -152,6 +154,7 @@ public: static sp<IMemory> decode(const char* url, uint32_t *pSampleRate, int* pNumChannels, int* pFormat); static sp<IMemory> decode(int fd, int64_t offset, int64_t length, uint32_t *pSampleRate, int* pNumChannels, int* pFormat); status_t invoke(const Parcel& request, Parcel *reply); + status_t setMetadataFilter(const Parcel& filter); private: void clear_l(); status_t seekTo_l(int msec); |