summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/httplive/PlaylistFetcher.h
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2015-03-02 13:54:58 -0800
committerChong Zhang <chz@google.com>2015-03-10 16:43:02 -0700
commit964adb17885185808398507d2de88665fe193ee2 (patch)
treec6c2779494aed9afc79fb2009b0c7a058f57f5f6 /media/libstagefright/httplive/PlaylistFetcher.h
parentd4db9dcd7d29234893d580c329f23242197fe664 (diff)
downloadframeworks_av-964adb17885185808398507d2de88665fe193ee2.zip
frameworks_av-964adb17885185808398507d2de88665fe193ee2.tar.gz
frameworks_av-964adb17885185808398507d2de88665fe193ee2.tar.bz2
HLS: misc changes in LiveSession buffering logic
remove unnecessary time discontinuity move fetcher to separate looper so that download won't block LiveSession poll buffering at 1 sec interval in LiveSession, and switch bandwidth if necessary use fixed 100ms threshold for resumeUntil bug: 19567254 Change-Id: I911e5041364f0858b43f2312756e173db5870a1e
Diffstat (limited to 'media/libstagefright/httplive/PlaylistFetcher.h')
-rw-r--r--media/libstagefright/httplive/PlaylistFetcher.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/media/libstagefright/httplive/PlaylistFetcher.h b/media/libstagefright/httplive/PlaylistFetcher.h
index 4e15f85..2f11949 100644
--- a/media/libstagefright/httplive/PlaylistFetcher.h
+++ b/media/libstagefright/httplive/PlaylistFetcher.h
@@ -36,6 +36,7 @@ class String8;
struct PlaylistFetcher : public AHandler {
static const int64_t kMinBufferedDurationUs;
static const int32_t kDownloadBlockSize;
+ static const int64_t kFetcherResumeThreshold;
enum {
kWhatStarted,
@@ -43,7 +44,6 @@ struct PlaylistFetcher : public AHandler {
kWhatStopped,
kWhatError,
kWhatDurationUpdate,
- kWhatTemporarilyDoneFetching,
kWhatPrepared,
kWhatPreparationFailed,
kWhatStartedAt,
@@ -212,10 +212,6 @@ private:
void updateDuration();
- // Before resuming a fetcher in onResume, check the remaining duration is longer than that
- // returned by resumeThreshold.
- int64_t resumeThreshold(const sp<AMessage> &msg);
-
DISALLOW_EVIL_CONSTRUCTORS(PlaylistFetcher);
};