Update interfaces/media-source.idl (#21504)
Source: https://github.com/tidoust/reffy-reports/blob/cbe0bd9/ed/idl/media-source.idl
Build: https://travis-ci.org/tidoust/reffy-reports/builds/643650371
diff --git a/interfaces/media-source.idl b/interfaces/media-source.idl
index 1d3c02d..f718db1 100644
--- a/interfaces/media-source.idl
+++ b/interfaces/media-source.idl
@@ -16,19 +16,19 @@
[Constructor]
interface MediaSource : EventTarget {
- readonly attribute SourceBufferList sourceBuffers;
- readonly attribute SourceBufferList activeSourceBuffers;
- readonly attribute ReadyState readyState;
- attribute unrestricted double duration;
- attribute EventHandler onsourceopen;
- attribute EventHandler onsourceended;
- attribute EventHandler onsourceclose;
- SourceBuffer addSourceBuffer(DOMString type);
- void removeSourceBuffer(SourceBuffer sourceBuffer);
- void endOfStream(optional EndOfStreamError error);
- void setLiveSeekableRange(double start, double end);
- void clearLiveSeekableRange();
- static boolean isTypeSupported(DOMString type);
+ readonly attribute SourceBufferList sourceBuffers;
+ readonly attribute SourceBufferList activeSourceBuffers;
+ readonly attribute ReadyState readyState;
+ attribute unrestricted double duration;
+ attribute EventHandler onsourceopen;
+ attribute EventHandler onsourceended;
+ attribute EventHandler onsourceclose;
+ SourceBuffer addSourceBuffer (DOMString type);
+ void removeSourceBuffer (SourceBuffer sourceBuffer);
+ void endOfStream (optional EndOfStreamError error);
+ void setLiveSeekableRange (double start, double end);
+ void clearLiveSeekableRange ();
+ static boolean isTypeSupported (DOMString type);
};
enum AppendMode {
@@ -37,45 +37,45 @@
};
interface SourceBuffer : EventTarget {
- attribute AppendMode mode;
- readonly attribute boolean updating;
- readonly attribute TimeRanges buffered;
- attribute double timestampOffset;
- readonly attribute AudioTrackList audioTracks;
- readonly attribute VideoTrackList videoTracks;
- readonly attribute TextTrackList textTracks;
- attribute double appendWindowStart;
- attribute unrestricted double appendWindowEnd;
- attribute EventHandler onupdatestart;
- attribute EventHandler onupdate;
- attribute EventHandler onupdateend;
- attribute EventHandler onerror;
- attribute EventHandler onabort;
- void appendBuffer(BufferSource data);
- void abort();
- void remove(double start, unrestricted double end);
+ attribute AppendMode mode;
+ readonly attribute boolean updating;
+ readonly attribute TimeRanges buffered;
+ attribute double timestampOffset;
+ readonly attribute AudioTrackList audioTracks;
+ readonly attribute VideoTrackList videoTracks;
+ readonly attribute TextTrackList textTracks;
+ attribute double appendWindowStart;
+ attribute unrestricted double appendWindowEnd;
+ attribute EventHandler onupdatestart;
+ attribute EventHandler onupdate;
+ attribute EventHandler onupdateend;
+ attribute EventHandler onerror;
+ attribute EventHandler onabort;
+ void appendBuffer (BufferSource data);
+ void abort ();
+ void remove (double start, unrestricted double end);
};
interface SourceBufferList : EventTarget {
- readonly attribute unsigned long length;
- attribute EventHandler onaddsourcebuffer;
- attribute EventHandler onremovesourcebuffer;
+ readonly attribute unsigned long length;
+ attribute EventHandler onaddsourcebuffer;
+ attribute EventHandler onremovesourcebuffer;
getter SourceBuffer (unsigned long index);
};
[Exposed=Window]
partial interface URL {
- static DOMString createObjectURL(MediaSource mediaSource);
+ static DOMString createObjectURL (MediaSource mediaSource);
};
partial interface AudioTrack {
- readonly attribute SourceBuffer? sourceBuffer;
+ readonly attribute SourceBuffer? sourceBuffer;
};
partial interface VideoTrack {
- readonly attribute SourceBuffer? sourceBuffer;
+ readonly attribute SourceBuffer? sourceBuffer;
};
partial interface TextTrack {
- readonly attribute SourceBuffer? sourceBuffer;
+ readonly attribute SourceBuffer? sourceBuffer;
};