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

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: Fix nits 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
« no previous file with comments | « content/renderer/media/websourcebuffer_impl.cc ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/chunk_demuxer.h
diff --git a/media/filters/chunk_demuxer.h b/media/filters/chunk_demuxer.h
index 5f37fc2ff0c783bfe4bd15a2a9fbf9d1a07b746e..857dcfd3e6c607c7aaf1bdbac356272d2e5f8e65 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 |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 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.
« no previous file with comments | « content/renderer/media/websourcebuffer_impl.cc ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698