getUserMedia
inline suspend fun MediaDevices.getUserMedia(constraints: MediaStreamConstraints): 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.