SourceBuffer

SourceBuffer

package js-html

extends EventTarget

Available on js

The SourceBuffer interface represents a chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object. This can be made up of one or several media segments.

Documentation SourceBuffer by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

appendWindowEnd:Float

Controls the timestamp for the end of the append window.

appendWindowStart:Float

Controls the timestamp for the start of the append window. This is a timestamp range that can be used to filter what media data is appended to the SourceBuffer. Coded media frames with timestamps wthin this range will be appended, whereas those outside the range will be filtered out.

read only buffered:TimeRanges

Returns the time ranges that are currently buffered in the SourceBuffer.

mode:SourceBufferAppendMode

Controls how the order of media segments in the SourceBuffer is handled, in terms of whether they can be appended in any order, or they have to be kept in a strict sequence.

timestampOffset:Float

Controls the offset applied to timestamps inside media segments that are subsequently appended to the SourceBuffer.

read only updating:Bool

Indicates whether the SourceBuffer is currently being updated — i.e. whether an SourceBuffer.appendBuffer(), SourceBuffer.appendStream(), or SourceBuffer.remove() operation is currently in progress.

Methods

abort ():Void

Throws:

null DOMError

appendBuffer (data:ArrayBufferView):Void

appendBuffer (data:ArrayBuffer):Void

Throws:

null DOMError

remove (start:Float, end:Float):Void

Throws:

null DOMError

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/SourceBuffer.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部