MediaStreamTrack

abstract external class MediaStreamTrack : EventTarget

Exposes the JavaScript MediaStreamTrack to Kotlin

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun addEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun addEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)
Link copied to clipboard
fun applyConstraints(constraints: MediaTrackConstraints = definedExternally): Promise<Unit>
Link copied to clipboard
Link copied to clipboard
fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun removeEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun removeEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)
Link copied to clipboard
fun stop()

Properties

Link copied to clipboard
open var enabled: Boolean
Link copied to clipboard
open val id: String
Link copied to clipboard
open val kind: String
Link copied to clipboard
open val label: String
Link copied to clipboard
open val muted: Boolean
Link copied to clipboard
open var onended: (Event) -> dynamic?
Link copied to clipboard
open var onmute: (Event) -> dynamic?
Link copied to clipboard
open var onoverconstrained: (Event) -> dynamic?
Link copied to clipboard
open var onunmute: (Event) -> dynamic?
Link copied to clipboard