summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/mediasource/SourceBuffer.idl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/Modules/mediasource/SourceBuffer.idl')
-rw-r--r--Source/WebCore/Modules/mediasource/SourceBuffer.idl41
1 files changed, 26 insertions, 15 deletions
diff --git a/Source/WebCore/Modules/mediasource/SourceBuffer.idl b/Source/WebCore/Modules/mediasource/SourceBuffer.idl
index f13c6fcd3..9c847c72a 100644
--- a/Source/WebCore/Modules/mediasource/SourceBuffer.idl
+++ b/Source/WebCore/Modules/mediasource/SourceBuffer.idl
@@ -28,33 +28,44 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+[Conditional=MEDIA_SOURCE] enum AppendMode {
+ "segments",
+ "sequence"
+};
+
[
- Conditional=MEDIA_SOURCE,
- NoInterfaceObject,
ActiveDOMObject,
- EventTarget,
- JSGenerateToJSObject,
- JSGenerateToNativeObject,
+ Conditional=MEDIA_SOURCE,
+ ExportMacro=WEBCORE_EXPORT,
] interface SourceBuffer : EventTarget {
+ [SetterMayThrowException] attribute AppendMode mode;
readonly attribute boolean updating;
// Returns the time ranges buffered.
- [GetterRaisesException] readonly attribute TimeRanges buffered;
+ [GetterMayThrowException] readonly attribute TimeRanges buffered;
// Applies an offset to media segment timestamps.
- [SetterRaisesException] attribute double timestampOffset;
+ [SetterMayThrowException] attribute double timestampOffset;
- // Append segment data.
- [RaisesException] void appendBuffer(ArrayBuffer data);
- [RaisesException] void appendBuffer(ArrayBufferView data);
-
- // Abort the current segment append sequence.
- [RaisesException] void abort();
-
// Track support
[Conditional=VIDEO_TRACK] readonly attribute AudioTrackList audioTracks;
[Conditional=VIDEO_TRACK] readonly attribute VideoTrackList videoTracks;
[Conditional=VIDEO_TRACK] readonly attribute TextTrackList textTracks;
-};
+ [SetterMayThrowException] attribute double appendWindowStart;
+ [SetterMayThrowException] attribute unrestricted double appendWindowEnd;
+
+ // Append segment data.
+ [MayThrowException] void appendBuffer(BufferSource data);
+
+ // Abort the current segment append sequence.
+ [MayThrowException] void abort();
+ [MayThrowException] void remove(unrestricted double start, unrestricted double end);
+
+ attribute EventHandler onupdatestart;
+ attribute EventHandler onupdate;
+ attribute EventHandler onupdateend;
+ attribute EventHandler onerror;
+ attribute EventHandler onabort;
+};