MediaSource

JS
1.1
open class MediaSource : EventTarget, MediaProvider

Constructors

JS
1.1

<init>

MediaSource()

Properties

JS
1.1

activeSourceBuffers

open val activeSourceBuffers: SourceBufferList
JS
1.1

duration

var duration: Double
JS
1.1

onsourceclose

var onsourceclose: ((Event) -> dynamic)?
JS
1.1

onsourceended

var onsourceended: ((Event) -> dynamic)?
JS
1.1

onsourceopen

var onsourceopen: ((Event) -> dynamic)?
JS
1.1

readyState

open val readyState: ReadyState
JS
1.1

sourceBuffers

open val sourceBuffers: SourceBufferList

Functions

JS
1.1

addSourceBuffer

fun addSourceBuffer(type: String): SourceBuffer
JS
1.1

clearLiveSeekableRange

fun clearLiveSeekableRange()
JS
1.1

endOfStream

fun endOfStream(error: EndOfStreamError = definedExternally)
JS
1.1

removeSourceBuffer

fun removeSourceBuffer(sourceBuffer: SourceBuffer)
JS
1.1

setLiveSeekableRange

fun setLiveSeekableRange(start: Double, end: Double)

Companion Object Functions

JS
1.1

isTypeSupported

fun isTypeSupported(type: String): Boolean