MediaStream

JS
1.1
open class MediaStream : EventTarget, MediaProvider
(source)

Exposes the JavaScript MediaStream to Kotlin

Constructors

JS
1.1

<init>

MediaStream(stream: MediaStream)
MediaStream(tracks: Array<MediaStreamTrack>)

Exposes the JavaScript MediaStream to Kotlin

MediaStream()

Properties

JS
1.1

active

open val active: Boolean
JS
1.1

id

open val id: String
JS
1.1

onaddtrack

var onaddtrack: ((MediaStreamTrackEvent) -> dynamic)?
JS
1.1

onremovetrack

var onremovetrack: ((MediaStreamTrackEvent) -> dynamic)?

Functions

JS
1.1

addTrack

fun addTrack(track: MediaStreamTrack)
JS
1.1

clone

fun clone(): MediaStream
JS
1.1

getAudioTracks

fun getAudioTracks(): Array<MediaStreamTrack>
JS
1.1

getTrackById

fun getTrackById(trackId: String): MediaStreamTrack?
JS
1.1

getTracks

fun getTracks(): Array<MediaStreamTrack>
JS
1.1

getVideoTracks

fun getVideoTracks(): Array<MediaStreamTrack>
JS
1.1

removeTrack

fun removeTrack(track: MediaStreamTrack)