diff options
Diffstat (limited to 'media/libstagefright/include/LiveSource.h')
-rw-r--r-- | media/libstagefright/include/LiveSource.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/media/libstagefright/include/LiveSource.h b/media/libstagefright/include/LiveSource.h index 5e89581..55dd45e 100644 --- a/media/libstagefright/include/LiveSource.h +++ b/media/libstagefright/include/LiveSource.h @@ -40,6 +40,11 @@ struct LiveSource : public DataSource { return kWantsPrefetching; } + bool getDuration(int64_t *durationUs) const; + + bool isSeekable() const; + bool seekTo(int64_t seekTimeUs); + protected: virtual ~LiveSource(); @@ -53,6 +58,7 @@ private: AString mMasterURL; AString mURL; status_t mInitCheck; + int64_t mDurationUs; sp<M3UParser> mPlaylist; int32_t mFirstItemSequenceNumber; @@ -72,6 +78,7 @@ private: bool switchToNext(); bool loadPlaylist(bool fetchMaster); + void determineSeekability(); DISALLOW_EVIL_CONSTRUCTORS(LiveSource); }; |