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

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: Use bool instead of enum for append mode + add midparse unit test 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..2caadd07149e631ed440429910e35948850809a4 100644
--- a/media/filters/chunk_demuxer.h
+++ b/media/filters/chunk_demuxer.h
@@ -124,6 +124,17 @@ 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|. If |is_sequence_mode| is true, caller
+ // is requesting "sequence" mode. Otherwise, caller is requesting "segments"
+ // mode. Returns true if the mode update was allowed. Returns false if
+ // the mode cannot be updated because we're in the middle of parsing a media
+ // segment.
+ // In "sequence" mode, appended media will be treated as adjacent in time.
+ // In "segments" mode, timestamps in appended media determine coded frame
+ // placement.
+ bool SetSequenceMode(const std::string& id, bool is_sequence_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