diff options
author | Apurupa Pattapu <apurupa@codeaurora.org> | 2015-07-07 12:27:10 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:24:30 -0600 |
commit | 0c4d3ced0a20b5cef6c51410754b40d4254f596b (patch) | |
tree | d6fd24c95573ca43af5c96325fb7bd61664b8836 /media/libmediaplayerservice/nuplayer/NuPlayer.h | |
parent | daef932059bbeaf1b88a8871f348be128fdf0bfe (diff) | |
download | frameworks_av-0c4d3ced0a20b5cef6c51410754b40d4254f596b.zip frameworks_av-0c4d3ced0a20b5cef6c51410754b40d4254f596b.tar.gz frameworks_av-0c4d3ced0a20b5cef6c51410754b40d4254f596b.tar.bz2 |
Stagefright: Extensions for HTTP progressive streaming.
- Extend NuPlayer setDataSource for streaming
- Create ExtendedCachedSource only for MediaPlayer streaming
usecases by passing a flag to DataSource to use extended cache
- Add extension for MediaHTTP
Change-Id: Ic87c3744bf905eb8742863951b809e38d0a60339
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/NuPlayer.h')
-rw-r--r-- | media/libmediaplayerservice/nuplayer/NuPlayer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.h b/media/libmediaplayerservice/nuplayer/NuPlayer.h index 7a2c73e..190908f 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayer.h +++ b/media/libmediaplayerservice/nuplayer/NuPlayer.h @@ -41,7 +41,7 @@ struct NuPlayer : public AHandler { void setDataSourceAsync(const sp<IStreamSource> &source); - void setDataSourceAsync( + virtual void setDataSourceAsync( const sp<IMediaHTTPService> &httpService, const char *url, const KeyedVector<String8, String8> *headers); @@ -90,6 +90,7 @@ protected: virtual void setDecodedPcmOffload(bool /*decodePcmOffload*/) {} virtual bool canOffloadDecodedPCMStream(const sp<MetaData> /*meta*/, bool /*hasVideo*/, bool /*isStreaming*/, audio_stream_type_t /*streamType*/) {return false;} + static bool IsHTTPLiveURL(const char *url); public: struct NuPlayerStreamListener; struct Source; @@ -236,7 +237,7 @@ protected: const sp<AMessage> &inputFormat, const sp<AMessage> &outputFormat = NULL); - void notifyListener(int msg, int ext1, int ext2, const Parcel *in = NULL); + virtual void notifyListener(int msg, int ext1, int ext2, const Parcel *in = NULL); void handleFlushComplete(bool audio, bool isDecoder); void finishFlushIfPossible(); |