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

Unified Diff: public/platform/WebSourceBuffer.h

Issue 1013923002: Fix MSE GC, make it less aggressive, more spec-compliant (Blink CL) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Pass currentTime from blink level, instead of using GetMediaTimeCB Created 5 years, 6 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: public/platform/WebSourceBuffer.h
diff --git a/public/platform/WebSourceBuffer.h b/public/platform/WebSourceBuffer.h
index 689504b47cf9dd0789cf73c360b571c32fe829ab..2f9effa8ce11fd16256d28d0ab881eae22797c0e 100644
--- a/public/platform/WebSourceBuffer.h
+++ b/public/platform/WebSourceBuffer.h
@@ -53,6 +53,12 @@ public:
virtual bool setMode(AppendMode) = 0;
virtual WebTimeRanges buffered() = 0;
+ // Run coded frame eviction/garbage collection algorithm.
+ // |currentPlaybackTime| is HTMLMediaElement::currentTime. The algorithm
philipj_slow 2015/07/02 09:48:22 Playback position in HTMLMediaElement is unfortuna
servolk 2015/07/07 23:01:52 Actually we do want the position to reflect the pe
philipj_slow 2015/07/08 12:47:44 OK, so it sounds like the MSE spec actually says t
servolk 2015/07/08 19:03:47 Well, AFAIK MSE spec actually does not explicitly
philipj_slow 2015/07/09 09:49:23 One instance of "current playback position" is lin
servolk 2015/07/10 01:11:27 I believe HTMLMediaElement::currentTime is exactly
philipj_slow 2015/07/10 08:40:27 If there isn't an internal concept for it, then si
wolenetz 2015/08/12 22:42:03 Hmm. We need the current playback position, and if
+ // will try to preserve data around current playback position.
+ // Returns false if buffer is still full after eviction.
+ virtual bool evictCodedFrames(double currentPlaybackTime) = 0;
+
// Appends data and runs the segment parser loop algorithm.
// The algorithm may update |*timestampOffset| if |timestampOffset| is not null.
virtual void append(const unsigned char* data, unsigned length, double* timestampOffset) = 0;
« Source/modules/mediasource/SourceBuffer.cpp ('K') | « Source/modules/mediasource/SourceBuffer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698