summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/httplive/PlaylistFetcher.h
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2014-02-27 12:33:24 -0800
committerLajos Molnar <lajos@google.com>2014-03-19 02:09:58 +0000
commit43ca783effd99bba0e6e2dd6fe177a8888578ef8 (patch)
tree943ef354f3544d932b978b977f4525af65d9fa5b /media/libstagefright/httplive/PlaylistFetcher.h
parentbd3e2e03f3ab686c52982a9e50cae853128172cf (diff)
downloadframeworks_av-43ca783effd99bba0e6e2dd6fe177a8888578ef8.zip
frameworks_av-43ca783effd99bba0e6e2dd6fe177a8888578ef8.tar.gz
frameworks_av-43ca783effd99bba0e6e2dd6fe177a8888578ef8.tar.bz2
httplive: block-by-block fetch, decrypt, and parse ts files.
Bug: 12060952 Change-Id: I695345081fe23961b9d0ef6db264885f914703ec
Diffstat (limited to 'media/libstagefright/httplive/PlaylistFetcher.h')
-rw-r--r--media/libstagefright/httplive/PlaylistFetcher.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libstagefright/httplive/PlaylistFetcher.h b/media/libstagefright/httplive/PlaylistFetcher.h
index 8404b8d..7e21523 100644
--- a/media/libstagefright/httplive/PlaylistFetcher.h
+++ b/media/libstagefright/httplive/PlaylistFetcher.h
@@ -87,8 +87,11 @@ private:
static const int64_t kMinBufferedDurationUs;
static const int64_t kMaxMonitorDelayUs;
+ static const int32_t kDownloadBlockSize;
static const int32_t kNumSkipFrames;
+ static bool bufferStartsWithTsSyncByte(const sp<ABuffer>& buffer);
+
// notifications to mSession
sp<AMessage> mNotify;
sp<AMessage> mStartTimeUsNotify;
@@ -169,6 +172,8 @@ private:
// Resume a fetcher to continue until the stopping point stored in msg.
status_t onResumeUntil(const sp<AMessage> &msg);
+ status_t extractAndQueueAccessUnitsFromTs(const sp<ABuffer> &buffer);
+
status_t extractAndQueueAccessUnits(
const sp<ABuffer> &buffer, const sp<AMessage> &itemMeta);