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

Unified Diff: third_party/WebKit/Source/modules/mediasource/MediaSource.h

Issue 2105593002: MSE: Experimental support for customizing live seekable range (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/modules/mediasource/MediaSource.h
diff --git a/third_party/WebKit/Source/modules/mediasource/MediaSource.h b/third_party/WebKit/Source/modules/mediasource/MediaSource.h
index d022f7dfe033c1a237da9af9165ce7be6c03814e..ac4da9d15c1bbd3491a3c11544a34a0924afc5e7 100644
--- a/third_party/WebKit/Source/modules/mediasource/MediaSource.h
+++ b/third_party/WebKit/Source/modules/mediasource/MediaSource.h
@@ -35,6 +35,7 @@
#include "core/dom/ActiveDOMObject.h"
#include "core/events/EventTarget.h"
#include "core/html/HTMLMediaSource.h"
+#include "core/html/TimeRanges.h"
#include "core/html/URLRegistry.h"
#include "modules/mediasource/SourceBuffer.h"
#include "modules/mediasource/SourceBufferList.h"
@@ -74,6 +75,9 @@ public:
const AtomicString& readyState() const { return m_readyState; }
void endOfStream(const AtomicString& error, ExceptionState&);
void endOfStream(ExceptionState&);
+ void setLiveSeekableRange(double start, double end, ExceptionState&);
+ void clearLiveSeekableRange(ExceptionState&);
+
static bool isTypeSupported(const String& type);
// HTMLMediaSource
@@ -134,6 +138,8 @@ private:
Member<SourceBufferList> m_sourceBuffers;
Member<SourceBufferList> m_activeSourceBuffers;
+ Member<TimeRanges> m_liveSeekableRange;
+
bool m_isAddedToRegistry;
};

Powered by Google App Engine
This is Rietveld 408576698