MediaStream
Constructors
<init>
MediaStream(stream: MediaStream)
MediaStream(tracks: Array<MediaStreamTrack>)
Exposes the JavaScript MediaStream to Kotlin
MediaStream()
Properties
active
open val active: Boolean
id
open val id: String
onaddtrack
var onaddtrack: ((MediaStreamTrackEvent) -> dynamic)?
onremovetrack
var onremovetrack: ((MediaStreamTrackEvent) -> dynamic)?
Functions
addTrack
fun addTrack(track: MediaStreamTrack)
clone
fun clone(): MediaStream
getAudioTracks
fun getAudioTracks(): Array<MediaStreamTrack>
getTrackById
fun getTrackById(trackId: String): MediaStreamTrack?
getTracks
fun getTracks(): Array<MediaStreamTrack>
getVideoTracks
fun getVideoTracks(): Array<MediaStreamTrack>
removeTrack
fun removeTrack(track: MediaStreamTrack)