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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | media/base/mock_filters.h » ('j') | media/filters/chunk_demuxer.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_DEMUXER_H_ 5 #ifndef MEDIA_BASE_DEMUXER_H_
6 #define MEDIA_BASE_DEMUXER_H_ 6 #define MEDIA_BASE_DEMUXER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0; 85 virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0;
86 86
87 // Returns the starting time for the media file. 87 // Returns the starting time for the media file.
88 virtual base::TimeDelta GetStartTime() const = 0; 88 virtual base::TimeDelta GetStartTime() const = 0;
89 89
90 // Returns Time represented by presentation timestamp 0. 90 // Returns Time represented by presentation timestamp 0.
91 // If the timstamps are not associated with a Time, then 91 // If the timstamps are not associated with a Time, then
92 // a null Time is returned. 92 // a null Time is returned.
93 virtual base::Time GetTimelineOffset() const = 0; 93 virtual base::Time GetTimelineOffset() const = 0;
94 94
95 // True when the stream is a live stream. Decoders may use this flag e.g. to
96 // minimize decoding delay for live streams.
97 virtual bool IsLiveMode() const = 0;
98
95 private: 99 private:
96 DISALLOW_COPY_AND_ASSIGN(Demuxer); 100 DISALLOW_COPY_AND_ASSIGN(Demuxer);
97 }; 101 };
98 102
99 } // namespace media 103 } // namespace media
100 104
101 #endif // MEDIA_BASE_DEMUXER_H_ 105 #endif // MEDIA_BASE_DEMUXER_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/mock_filters.h » ('j') | media/filters/chunk_demuxer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698