MediaDevices

abstract external class MediaDevices : EventTarget

Exposes the JavaScript MediaDevices 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 dispatchEvent(event: Event): Boolean
Link copied to clipboard
Link copied to clipboard
fun getUserMedia(constraints: MediaStreamConstraints = definedExternally): Promise<MediaStream>
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
fun removeEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)

Properties

Link copied to clipboard
open var ondevicechange: (Event) -> dynamic?