summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/MediaPlayerService.cpp
diff options
context:
space:
mode:
authorNicolas Catania <niko@google.com>2009-07-09 09:21:33 -0700
committerNicolas Catania <niko@google.com>2009-07-10 11:00:42 -0700
commit8e1b6cce24574b9ecd5b0300155776bd0b4ef756 (patch)
treeb0bc11d197c1f234a845a64c34b357d9b3120632 /media/libmediaplayerservice/MediaPlayerService.cpp
parenta920ee99dc97b54b661d1238d8c26ac07c875bed (diff)
downloadframeworks_av-8e1b6cce24574b9ecd5b0300155776bd0b4ef756.zip
frameworks_av-8e1b6cce24574b9ecd5b0300155776bd0b4ef756.tar.gz
frameworks_av-8e1b6cce24574b9ecd5b0300155776bd0b4ef756.tar.bz2
Basic plumbing to retrieve metadata from the native player.
IMediaPlayer.h Added a getMetadata method that mirrors the on in MediaPlayer.java. MediaPlayer.java Added a native method to get the metadata from the native player. Parse the parcel into a Metadata object. Metadata.java Added a stub to parse the Parcel returned by the native player into a set of metadata. android_media_MediaPlayer.cpp JNI call to forward the getMetadata call. MediaPlayerService.cpp MediaPlayerService::Client implements the new getMetadata method added in IMediaPlayer.h
Diffstat (limited to 'media/libmediaplayerservice/MediaPlayerService.cpp')
-rw-r--r--media/libmediaplayerservice/MediaPlayerService.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/MediaPlayerService.cpp b/media/libmediaplayerservice/MediaPlayerService.cpp
index 3adbfac..04aab81 100644
--- a/media/libmediaplayerservice/MediaPlayerService.cpp
+++ b/media/libmediaplayerservice/MediaPlayerService.cpp
@@ -846,6 +846,16 @@ status_t MediaPlayerService::Client::setMetadataFilter(const Parcel& filter)
return status;
}
+status_t MediaPlayerService::Client::getMetadata(bool update_only, bool apply_filter, Parcel *metadata)
+{
+ status_t status;
+ metadata->writeInt32(-1); // Placeholder for the return code
+
+ // FIXME: Implement, query the native player and do the optional filtering, etc...
+ status = OK;
+ return status;
+}
+
status_t MediaPlayerService::Client::prepareAsync()
{
LOGV("[%d] prepareAsync", mConnId);