I'm trying to get the user permission dialog to pop up for navigator.getUserMedia, which is called on an external page in an iframe. Currently the sample will show "Permission denied" without ever having presented a dialog to the user.
This is a universal Windows app written in javascript. The webcam has been added to the capabilities.
I've tried finding something similar to the geolocation function below. But I could not find anything for the webcam.
Windows.Devices.Geolocation.Geolocator.requestAccessAsync
The code is very simple. It is an x-ms-webview that links to a webRTC sample.
index.html
<html>
<head>
</head>
<body>
<x-ms-webview style="left: 0px; top: 0px; width: 100%; height: 100%; position: absolute;" src="https://webrtc.github.io/samples/src/content/getusermedia/gum/"></x-ms-webview>
</body>
</html>