summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/HTTPLiveSource.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2013-02-06 10:44:39 -0800
committerAndreas Huber <andih@google.com>2013-02-06 10:44:39 -0800
commit0df36ec3303c2c6bf9b42c07945ac8bd234153f3 (patch)
tree558d8e8d18ce64e84114d3b3d53209c0b4e27693 /media/libmediaplayerservice/nuplayer/HTTPLiveSource.h
parentec0c597cabf169ca646bcea5faac1bd81ed4484d (diff)
downloadframeworks_av-0df36ec3303c2c6bf9b42c07945ac8bd234153f3.zip
frameworks_av-0df36ec3303c2c6bf9b42c07945ac8bd234153f3.tar.gz
frameworks_av-0df36ec3303c2c6bf9b42c07945ac8bd234153f3.tar.bz2
HLS now properly publishes its "seekable" flags after connection
has successfully completed and a sufficient amount of data fetched, and only then signals that preparation is completed. Change-Id: I7684a14238b826909f518f2af506966e522dfcfc
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/HTTPLiveSource.h')
-rw-r--r--media/libmediaplayerservice/nuplayer/HTTPLiveSource.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/nuplayer/HTTPLiveSource.h b/media/libmediaplayerservice/nuplayer/HTTPLiveSource.h
index 269f3c0..067d1da 100644
--- a/media/libmediaplayerservice/nuplayer/HTTPLiveSource.h
+++ b/media/libmediaplayerservice/nuplayer/HTTPLiveSource.h
@@ -49,12 +49,18 @@ protected:
virtual sp<MetaData> getFormatMeta(bool audio);
+ virtual void onMessageReceived(const sp<AMessage> &msg);
+
private:
enum Flags {
// Don't log any URLs.
kFlagIncognito = 1,
};
+ enum {
+ kWhatSessionNotify,
+ };
+
AString mURL;
KeyedVector<String8, String8> mExtraHeaders;
bool mUIDValid;
@@ -66,6 +72,8 @@ private:
sp<LiveSession> mLiveSession;
sp<ATSParser> mTSParser;
+ void onSessionNotify(const sp<AMessage> &msg);
+
DISALLOW_EVIL_CONSTRUCTORS(HTTPLiveSource);
};