MediaDevices

JS
1.1
abstract class MediaDevices : EventTarget

Exposes the JavaScript MediaDevices to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript MediaDevices to Kotlin

MediaDevices()

Properties

JS
1.1

ondevicechange

open var ondevicechange: ((Event) -> dynamic)?

Functions

JS
1.1

enumerateDevices

fun enumerateDevices(): Promise<Array<MediaDeviceInfo>>
JS
1.1

getSupportedConstraints

fun getSupportedConstraints(): MediaTrackSupportedConstraints
JS
1.1

getUserMedia

fun getUserMedia(
    constraints: MediaStreamConstraints = definedExternally
): Promise<MediaStream>