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

Unified Diff: media/filters/chunk_demuxer.h

Issue 134883002: Let WebSourceBufferImpl::setMode() update SourceState::sequence_mode_ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reference http://crbug.com/333437 in SourceState comment Created 6 years, 11 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
Index: media/filters/chunk_demuxer.h
diff --git a/media/filters/chunk_demuxer.h b/media/filters/chunk_demuxer.h
index 5f37fc2ff0c783bfe4bd15a2a9fbf9d1a07b746e..91b47b1c596d4a26b572149dc81f799c68f2c65d 100644
--- a/media/filters/chunk_demuxer.h
+++ b/media/filters/chunk_demuxer.h
@@ -33,6 +33,11 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
kReachedIdLimit, // Reached ID limit. We can't handle any more IDs.
};
+ enum AppendMode {
+ kSegments, // Timestamps in appended media determine coded frame placement.
+ kSequence // Appended media will be treated as adjacent in time.
+ };
+
// |open_cb| Run when Initialize() is called to signal that the demuxer
// is ready to receive media data via AppenData().
// |need_key_cb| Run when the demuxer determines that an encryption key is
@@ -124,6 +129,12 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
// middle of parsing a media segment.
bool SetTimestampOffset(const std::string& id, base::TimeDelta offset);
+ // Set the append mode to be applied to subsequent buffers appended to the
+ // source buffer associated with |id|. Returns true if the mode is set
+ // properly, false if the mode cannot be set because we're in the middle of
+ // parsing a media segment.
+ bool SetAppendMode(const std::string& id, AppendMode mode);
+
// Called to signal changes in the "end of stream"
// state. UnmarkEndOfStream() must not be called if a matching
// MarkEndOfStream() has not come before it.

Powered by Google App Engine
This is Rietveld 408576698