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

Unified Diff: Source/modules/mediasource/SourceBuffer.h

Issue 14876007: Add Blink side support for SourceBuffer.appendWindowStart & SourceBuffer.appendWindowEnd. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: throw DOMException for set appendwindow error Created 7 years, 5 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: Source/modules/mediasource/SourceBuffer.h
diff --git a/Source/modules/mediasource/SourceBuffer.h b/Source/modules/mediasource/SourceBuffer.h
index 8c30dea98623e81c39d23a551f14e91c50479223..00a61bb125910abf64a4ec0ab82e50c183b62e2e 100644
--- a/Source/modules/mediasource/SourceBuffer.h
+++ b/Source/modules/mediasource/SourceBuffer.h
@@ -61,6 +61,10 @@ public:
void appendBuffer(PassRefPtr<ArrayBuffer> data, ExceptionState&);
void appendBuffer(PassRefPtr<ArrayBufferView> data, ExceptionState&);
void abort(ExceptionState&);
+ double appendWindowStart() const;
+ void setAppendWindowStart(double, ExceptionState&);
+ double appendWindowEnd() const;
+ void setAppendWindowEnd(double, ExceptionState&);
void abortIfUpdating();
void removedFromMediaSource();
@@ -99,6 +103,8 @@ private:
bool m_updating;
double m_timestampOffset;
+ double m_appendWindowStart;
+ double m_appendWindowEnd;
Vector<unsigned char> m_pendingAppendData;
Timer<SourceBuffer> m_appendBufferTimer;

Powered by Google App Engine
This is Rietveld 408576698