Media Devices
Exposes the JavaScript MediaDevices to Kotlin
Constructors
MediaDevices
Link copied to clipboard
Functions
add Event Listener
Link copied to clipboard
fun addEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
Content copied to clipboard
fun addEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
Content copied to clipboard
dispatch Event
Link copied to clipboard
enumerate Devices
Link copied to clipboard
get Supported Constraints
Link copied to clipboard
get User Media
Link copied to clipboard
fun getUserMedia(constraints: MediaStreamConstraints = definedExternally): Promise<MediaStream>
Content copied to clipboard
remove Event Listener
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
Content copied to clipboard
fun removeEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
Content copied to clipboard
Properties
ondevicechange
Link copied to clipboard