From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- .../WebCore/Modules/mediasource/SourceBuffer.idl | 41 ++++++++++++++-------- 1 file changed, 26 insertions(+), 15 deletions(-) (limited to 'Source/WebCore/Modules/mediasource/SourceBuffer.idl') 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; +}; -- cgit v1.2.1