diff options
author | Gloria Wang <gwang@google.com> | 2010-11-18 11:18:35 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-11-18 11:18:35 -0800 |
commit | 3d1c5a27884ef01772b187ff250daadb7678572e (patch) | |
tree | c1edb7f2e597b1bda9ee1b44eeae8f69b47678c0 | |
parent | 0c400f0a68d4b48516fbe0dbae05e500598317f1 (diff) | |
parent | 43cd12dae2bbfd128e58a836f2627907d5a92381 (diff) | |
download | frameworks_base-3d1c5a27884ef01772b187ff250daadb7678572e.zip frameworks_base-3d1c5a27884ef01772b187ff250daadb7678572e.tar.gz frameworks_base-3d1c5a27884ef01772b187ff250daadb7678572e.tar.bz2 |
Merge "Add getUri() for streaming"
-rw-r--r-- | include/media/stagefright/DataSource.h | 3 | ||||
-rw-r--r-- | media/libstagefright/NuCachedSource2.cpp | 3 | ||||
-rw-r--r-- | media/libstagefright/NuHTTPDataSource.cpp | 4 | ||||
-rw-r--r-- | media/libstagefright/include/NuCachedSource2.h | 1 | ||||
-rw-r--r-- | media/libstagefright/include/NuHTTPDataSource.h | 1 |
5 files changed, 12 insertions, 0 deletions
diff --git a/include/media/stagefright/DataSource.h b/include/media/stagefright/DataSource.h index d0b9fcd..27f33fb 100644 --- a/include/media/stagefright/DataSource.h +++ b/include/media/stagefright/DataSource.h @@ -80,6 +80,9 @@ public: } virtual void getDrmInfo(DecryptHandle **handle, DrmManagerClient **client) {}; + virtual String8 getUri() { + return String8(); + } protected: virtual ~DataSource() {} diff --git a/media/libstagefright/NuCachedSource2.cpp b/media/libstagefright/NuCachedSource2.cpp index 4a2402b..3bb38de 100644 --- a/media/libstagefright/NuCachedSource2.cpp +++ b/media/libstagefright/NuCachedSource2.cpp @@ -526,5 +526,8 @@ void NuCachedSource2::getDrmInfo(DecryptHandle **handle, DrmManagerClient **clie mSource->getDrmInfo(handle, client); } +String8 NuCachedSource2::getUri() { + return mSource->getUri(); +} } // namespace android diff --git a/media/libstagefright/NuHTTPDataSource.cpp b/media/libstagefright/NuHTTPDataSource.cpp index 133f225..40f501a 100644 --- a/media/libstagefright/NuHTTPDataSource.cpp +++ b/media/libstagefright/NuHTTPDataSource.cpp @@ -424,4 +424,8 @@ void NuHTTPDataSource::getDrmInfo(DecryptHandle **handle, DrmManagerClient **cli *client = mDrmManagerClient; } +String8 NuHTTPDataSource::getUri() { + return mUri; +} + } // namespace android diff --git a/media/libstagefright/include/NuCachedSource2.h b/media/libstagefright/include/NuCachedSource2.h index 8cec1b1..5e404b6 100644 --- a/media/libstagefright/include/NuCachedSource2.h +++ b/media/libstagefright/include/NuCachedSource2.h @@ -39,6 +39,7 @@ struct NuCachedSource2 : public DataSource { virtual DecryptHandle* DrmInitialization(DrmManagerClient *client); virtual void getDrmInfo(DecryptHandle **handle, DrmManagerClient **client); + virtual String8 getUri(); //////////////////////////////////////////////////////////////////////////// size_t cachedSize(); diff --git a/media/libstagefright/include/NuHTTPDataSource.h b/media/libstagefright/include/NuHTTPDataSource.h index c707fdc..0b840bd 100644 --- a/media/libstagefright/include/NuHTTPDataSource.h +++ b/media/libstagefright/include/NuHTTPDataSource.h @@ -33,6 +33,7 @@ struct NuHTTPDataSource : public DataSource { virtual DecryptHandle* DrmInitialization(DrmManagerClient *client); virtual void getDrmInfo(DecryptHandle **handle, DrmManagerClient **client); + virtual String8 getUri(); protected: virtual ~NuHTTPDataSource(); |