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 /include/media/MediaPlayerInterface.h | |
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 'include/media/MediaPlayerInterface.h')
-rw-r--r-- | include/media/MediaPlayerInterface.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/media/MediaPlayerInterface.h b/include/media/MediaPlayerInterface.h index 588c51a..a5a1bb8 100644 --- a/include/media/MediaPlayerInterface.h +++ b/include/media/MediaPlayerInterface.h @@ -21,8 +21,10 @@ #include <sys/types.h> #include <ui/ISurface.h> -#include <utils/RefBase.h> #include <utils/Errors.h> +#include <utils/KeyedVector.h> +#include <utils/String8.h> +#include <utils/RefBase.h> #include <media/mediaplayer.h> #include <media/AudioSystem.h> @@ -96,7 +98,11 @@ public: virtual ~MediaPlayerBase() {} virtual status_t initCheck() = 0; virtual bool hardwareOutput() = 0; - virtual status_t setDataSource(const char *url) = 0; + + virtual status_t setDataSource( + const char *url, + const KeyedVector<String8, String8> *headers = NULL) = 0; + virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0; virtual status_t setVideoSurface(const sp<ISurface>& surface) = 0; virtual status_t prepare() = 0; |