I'm testing scenario where I call a hangouts web page in separate window but application doesn't have access to microphone and camera - buttons are red and message says that "Hangouts can't use the selected microphone/camera".
I have included in permissions "audioCapture"
and "videoCapture"
.
What has to be done to make it work?
Edit:
After allowing media app has access to camera and microphone - I can see that in settings of hangouts but picture and voice are not transmitted over the hangouts to other participants. Is there something I have to set for streaming media?
I already have this piece of code:
navigator.webkitGetUserMedia({ audio: true, video: true },
function (stream) {
mediaStream = stream;
},
function (error) {
console.error("Error trying to get the stream:: " + error.message);
});
If you need to provide audio/video for a
<webview>
-embedded page, requiring"audioCapture"
/"videoCapture"
permissions is not enough.To use those, the page requests permission to the browser. In normal Chrome you'll see an infobar allowing the user to allow/deny the request.
<webview>
does not show those elements, instead it raises an event and it's up to the app to allow/deny it: