diff options
Diffstat (limited to 'Source/WebCore/Modules/mediasource/MediaSource.idl')
-rw-r--r-- | Source/WebCore/Modules/mediasource/MediaSource.idl | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/Source/WebCore/Modules/mediasource/MediaSource.idl b/Source/WebCore/Modules/mediasource/MediaSource.idl index 3cb8ebd87..5a9fef118 100644 --- a/Source/WebCore/Modules/mediasource/MediaSource.idl +++ b/Source/WebCore/Modules/mediasource/MediaSource.idl @@ -28,15 +28,17 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +enum EndOfStreamError { + "network", + "decode" +}; + [ - Conditional=MEDIA_SOURCE, ActiveDOMObject, - EventTarget, - EnabledBySetting=MediaSource, - JSGenerateToJSObject, - JSGenerateToNativeObject, + Conditional=MEDIA_SOURCE, Constructor, ConstructorCallWith=ScriptExecutionContext, + EnabledBySetting=MediaSource, ] interface MediaSource : EventTarget { // All the source buffers created by this object. readonly attribute SourceBufferList sourceBuffers; @@ -44,14 +46,21 @@ // Subset of sourceBuffers that provide data for the selected/enabled tracks. readonly attribute SourceBufferList activeSourceBuffers; - [SetterRaisesException] attribute double duration; + [SetterMayThrowException] attribute unrestricted double duration; - [RaisesException] SourceBuffer addSourceBuffer(DOMString type); - [RaisesException] void removeSourceBuffer(SourceBuffer buffer); + [MayThrowException] SourceBuffer addSourceBuffer(DOMString type); + [MayThrowException] void removeSourceBuffer(SourceBuffer buffer); readonly attribute DOMString readyState; - [RaisesException] void endOfStream([Default=NullString] optional DOMString error); + [MayThrowException] void endOfStream(optional EndOfStreamError error); static boolean isTypeSupported (DOMString type); + + [MayThrowException] void setLiveSeekableRange(double start, double end); + [MayThrowException] void clearLiveSeekableRange(); + + attribute EventHandler onsourceopen; + attribute EventHandler onsourceended; + attribute EventHandler onsourceclose; }; |