MediaDevices
Constructors
<init>
Exposes the JavaScript MediaDevices to Kotlin
MediaDevices()Properties
ondevicechange
open var ondevicechange: ((Event) -> dynamic)?Functions
enumerateDevices
fun enumerateDevices(): Promise<Array<MediaDeviceInfo>>getSupportedConstraints
fun getSupportedConstraints(): MediaTrackSupportedConstraintsgetUserMedia
fun getUserMedia(
constraints: MediaStreamConstraints = definedExternally
): Promise<MediaStream>