package js.html
extends EventTarget
Available on jsThe
MediaSourceinterface represents a source of media data for anHTMLMediaElementobject. AMediaSourceobject can be attached to aHTMLMediaElementto be played in the user agent.Documentation MediaSource by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
new ()Throws:
null |
DOMError |
|---|
read only activeSourceBuffers:SourceBufferListReturns a SourceBufferList object containing a subset of the SourceBuffer objects contained within SourceBuffers — the list of objects providing the selected video track, enabled audio tracks, and shown/hidden text tracks.
duration:FloatGets and sets the duration of the current media being presented.
read only readyState:MediaSourceReadyStateReturns an enum representing the state of the current MediaSource, whether it is not currently attached to a media element (closed), attached and ready to receive SourceBuffer objects (open), or attached but the stream has been ended via MediaSource.endOfStream() (ended.)
read only sourceBuffers:SourceBufferListReturns a SourceBufferList object containing the list of SourceBuffer objects associated with this MediaSource.
addSourceBuffer (type:String):SourceBufferThrows:
null |
DOMError |
|---|
endOfStream (?error:MediaSourceEndOfStreamError):VoidThrows:
null |
DOMError |
|---|
removeSourceBuffer (sourceBuffer:SourceBuffer):VoidThrows:
null |
DOMError |
|---|
static isTypeSupported (type:String):Bool
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/MediaSource.html