MediaSource
Constructors
<init>
Exposes the JavaScript MediaSource to Kotlin
MediaSource()
Properties
activeSourceBuffers
open val activeSourceBuffers: SourceBufferList
duration
var duration: Double
onsourceclose
var onsourceclose: ((Event) -> dynamic)?
onsourceended
var onsourceended: ((Event) -> dynamic)?
onsourceopen
var onsourceopen: ((Event) -> dynamic)?
readyState
open val readyState: ReadyState
sourceBuffers
open val sourceBuffers: SourceBufferList
Functions
addSourceBuffer
fun addSourceBuffer(type: String): SourceBuffer
clearLiveSeekableRange
fun clearLiveSeekableRange()
endOfStream
fun endOfStream(error: EndOfStreamError = definedExternally)
removeSourceBuffer
fun removeSourceBuffer(sourceBuffer: SourceBuffer)
setLiveSeekableRange
fun setLiveSeekableRange(start: Double, end: Double)
Companion Object Functions
isTypeSupported
fun isTypeSupported(type: String): Boolean