diff options
author | Robert Shih <robertshih@google.com> | 2015-04-08 09:06:54 -0700 |
---|---|---|
committer | Robert Shih <robertshih@google.com> | 2015-04-16 19:01:15 -0700 |
commit | 0852843d304006e3ab333081fddda13b07193de8 (patch) | |
tree | f60be26aad988e89bc135a86f6e4ae8853c69a49 /media/libstagefright/httplive/PlaylistFetcher.h | |
parent | 3d66eb4128aebef31bb0fa44c4d53d6122294a26 (diff) | |
download | frameworks_av-0852843d304006e3ab333081fddda13b07193de8.zip frameworks_av-0852843d304006e3ab333081fddda13b07193de8.tar.gz frameworks_av-0852843d304006e3ab333081fddda13b07193de8.tar.bz2 |
stagefright: initial timed id3 support in hls
Change-Id: I00a8a786b3f4b74742c34770edd94e937abe20a8
Diffstat (limited to 'media/libstagefright/httplive/PlaylistFetcher.h')
-rw-r--r-- | media/libstagefright/httplive/PlaylistFetcher.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libstagefright/httplive/PlaylistFetcher.h b/media/libstagefright/httplive/PlaylistFetcher.h index f64d160..bb14a0d 100644 --- a/media/libstagefright/httplive/PlaylistFetcher.h +++ b/media/libstagefright/httplive/PlaylistFetcher.h @@ -49,6 +49,7 @@ struct PlaylistFetcher : public AHandler { kWhatPreparationFailed, kWhatStartedAt, kWhatStopReached, + kWhatMetadataDetected, }; PlaylistFetcher( @@ -66,6 +67,7 @@ struct PlaylistFetcher : public AHandler { const sp<AnotherPacketSource> &audioSource, const sp<AnotherPacketSource> &videoSource, const sp<AnotherPacketSource> &subtitleSource, + const sp<AnotherPacketSource> &metadataSource, int64_t startTimeUs = -1ll, // starting timestamps int64_t segmentStartTimeUs = -1ll, // starting position within playlist // startTimeUs!=segmentStartTimeUs only when playlist is live @@ -177,6 +179,8 @@ private: sp<DownloadState> mDownloadState; + bool mHasMetadata; + // Set first to true if decrypting the first segment of a playlist segment. When // first is true, reset the initialization vector based on the available // information in the manifest; otherwise, use the initialization vector as @@ -222,6 +226,7 @@ private: const sp<ABuffer> &accessUnit, const sp<AnotherPacketSource> &source, bool discard = false); + bool isStartTimeReached(int64_t timeUs); status_t extractAndQueueAccessUnitsFromTs(const sp<ABuffer> &buffer); status_t extractAndQueueAccessUnits( |