javascript - How to enable camera and microphone in packaged application for Chrome OS or Chrome extension? -


I'm testing the scenario where I call the hangouts web page in a separate window, but in the app the microphone and camera Do not have access - buttons are red and the message says "Hangouts can not use the selected microphone / camera."

I have permissions "Audio Capture" and "Video Capture" .

Edit:

The camera and microphone have access after allowing the media app - I can see that the hangouts settings include images and other on hangouts Participants are not transmitted Do I have to set some streaming media?

I already have this piece of code:

  Navigator.webkitgateUsermedia ({audio: true, video: true}, function (stream) {mediaStream = stream; }, Function (error) {console.error ("Error trying to get stream:" + error.message);});  

If you have a & lt; Webview & gt; - Embedded page, "audio capture" / requires "videoconcert" Permissions are not enough.

To use them, the page request permission will allow you to see an infobar in the normal Chrome browser, allowing the user to allow / deny.

& lt; Webview & gt; does not show those elements, instead of allowing / denying this application:

Request permission

has been removed when the guest page requires special permission to request the embeder.

The following example code will enter the guest code in the webkitGetUserMedia API; note that by using this example code, an app is replaced by an audio capture and / or < Code> Video Capture must specify explicit permissions:

  webview.addEventListener ('permissionrequest', function (e) {if (e.permission === 'media') { E.request.allow ();}});  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -