You must add the correct permissions to your manifest. json Then he should inform the user when he installs your application.
"permissions": [ "audioCapture", "videoCapture" ]
You can use this or that option depending on what type of request you pass as the getUserMedia () parameter, that is {audio: true} or {video: true}, respectively.
source share