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

Unified Diff: media/filters/source_buffer_stream.h

Issue 10879056: Support setting an explicit duration on MediaSource objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: response to CR Created 8 years, 4 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 | « media/filters/chunk_demuxer.cc ('k') | media/filters/source_buffer_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/source_buffer_stream.h
diff --git a/media/filters/source_buffer_stream.h b/media/filters/source_buffer_stream.h
index 78ba800bcd0c9b778bee3bed85fb95eec832ee96..b2e70b031a3ad260560bb88940188c5617a072d4 100644
--- a/media/filters/source_buffer_stream.h
+++ b/media/filters/source_buffer_stream.h
@@ -67,6 +67,10 @@ class MEDIA_EXPORT SourceBufferStream {
// buffered data and is waiting for more data to be appended.
bool IsSeekPending() const;
+ // Notifies the SourceBufferStream that the media duration has been changed to
+ // |duration| so it should drop any data past that point.
+ void OnSetDuration(base::TimeDelta duration);
+
// Fills |out_buffer| with a new buffer. Buffers are presented in order from
// the last call to Seek(), or starting with the first buffer appended if
// Seek() has not been called yet.
@@ -177,6 +181,9 @@ class MEDIA_EXPORT SourceBufferStream {
// for the previous |selected_range_|.
void SetSelectedRange(SourceBufferRange* range);
+ // Resets this stream back to an unseeked state.
+ void ResetSeekState();
+
// Returns true if |seek_timestamp| refers to the beginning of the first range
// in |ranges_|, false otherwise or if |ranges_| is empty.
bool ShouldSeekToStartOfBuffered(base::TimeDelta seek_timestamp) const;
« no previous file with comments | « media/filters/chunk_demuxer.cc ('k') | media/filters/source_buffer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698