getUserMediaAsync

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

The getUserMedia() method of the MediaDevices interface prompts the user for permission to use a media input which produces a MediaStream with tracks containing the requested types of media.

MDN Reference