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 |
+ // 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; |