diff options
author | Andreas Huber <andih@google.com> | 2010-01-28 11:19:57 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-01-28 11:52:43 -0800 |
commit | 2db8455d8f4468a637109d31f319ce02d9d743ec (patch) | |
tree | 7f3418b24ec0779af3ab25202eb5063e860610d5 /media/libmediaplayerservice/TestPlayerStub.cpp | |
parent | 8566a635aa4bf6d2e908f0bc64d4fb8917025b58 (diff) | |
download | frameworks_av-2db8455d8f4468a637109d31f319ce02d9d743ec.zip frameworks_av-2db8455d8f4468a637109d31f319ce02d9d743ec.tar.gz frameworks_av-2db8455d8f4468a637109d31f319ce02d9d743ec.tar.bz2 |
API Extension: Support for optionally specifying a map of extra request headers when specifying the uri of media data to be played.
related-to-bug: 2393577
Original change by Andrei Popescu <andreip@google.com>
Diffstat (limited to 'media/libmediaplayerservice/TestPlayerStub.cpp')
-rw-r--r-- | media/libmediaplayerservice/TestPlayerStub.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/media/libmediaplayerservice/TestPlayerStub.cpp b/media/libmediaplayerservice/TestPlayerStub.cpp index aa49429..169e49a 100644 --- a/media/libmediaplayerservice/TestPlayerStub.cpp +++ b/media/libmediaplayerservice/TestPlayerStub.cpp @@ -112,8 +112,8 @@ status_t TestPlayerStub::parseUrl() // Load the dynamic library. // Create the test player. // Call setDataSource on the test player with the url in param. -status_t TestPlayerStub::setDataSource(const char *url) -{ +status_t TestPlayerStub::setDataSource( + const char *url, const KeyedVector<String8, String8> *headers) { if (!isTestUrl(url) || NULL != mHandle) { return INVALID_OPERATION; } @@ -162,7 +162,7 @@ status_t TestPlayerStub::setDataSource(const char *url) } mPlayer = (*mNewPlayer)(); - return mPlayer->setDataSource(mContentUrl); + return mPlayer->setDataSource(mContentUrl, headers); } // Internal cleanup. |