Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1008)

Unified Diff: media/base/demuxer.h

Issue 231283005: Add live mode detection in WebM MediaSource parser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/mock_filters.h » ('j') | media/filters/ffmpeg_demuxer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/demuxer.h
diff --git a/media/base/demuxer.h b/media/base/demuxer.h
index 581bc0075f6f5023da5970308a6b99614a718861..373faec23f4bbfaf8dbe840ba778c22b33567f8d 100644
--- a/media/base/demuxer.h
+++ b/media/base/demuxer.h
@@ -44,6 +44,12 @@ class MEDIA_EXPORT DemuxerHost {
class MEDIA_EXPORT Demuxer {
public:
+ enum Liveness {
+ LIVENESS_UNKNOWN,
+ LIVENESS_RECORDED,
+ LIVENESS_LIVE,
+ };
+
// A new potentially encrypted stream has been parsed.
// First parameter - The type of initialization data.
// Second parameter - The initialization data associated with the stream.
@@ -92,6 +98,9 @@ class MEDIA_EXPORT Demuxer {
// a null Time is returned.
virtual base::Time GetTimelineOffset() const = 0;
+ // Returns liveness of the stream, i.e. whether it recorded or live.
acolwell GONE FROM CHROMIUM 2014/04/25 23:30:52 nit: s/it/it is/
Sergey Ulanov 2014/04/26 01:51:03 Done.
+ virtual Liveness GetLiveness() const = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(Demuxer);
};
« no previous file with comments | « no previous file | media/base/mock_filters.h » ('j') | media/filters/ffmpeg_demuxer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698