MediaStreamTrack

Exposes the JavaScript MediaStreamTrack to Kotlin

Constructors

Link copied to clipboard
constructor()

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) -> Unit?
Link copied to clipboard
open var onmute: (Event) -> Unit?
Link copied to clipboard
open var onoverconstrained: (Event) -> Unit?
Link copied to clipboard
open var onunmute: (Event) -> Unit?
Link copied to clipboard

Functions

Link copied to clipboard
fun addEventListener(type: String, callback: (Event) -> Unit?)
fun addEventListener(type: String, callback: EventListener?)
fun addEventListener(type: String, callback: (Event) -> Unit?, options: Boolean)
fun addEventListener(type: String, callback: (Event) -> Unit?, options: AddEventListenerOptions)
fun addEventListener(type: String, callback: EventListener?, options: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?)
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: Boolean)
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: EventListenerOptions)
fun removeEventListener(type: String, callback: EventListener?, options: Boolean)
Link copied to clipboard
fun stop()