Chrome 33 does not allow video capture, although it is allowed in the settings

I am trying to allow the http website to use my camera without a hint without any luck.

I changed the settings file (when Chrome is closed) and changed part of the profile as follows:

"profile": {
  "avatar_index": 0,
  "content_settings": {
     "clear_on_exit_migrated": true,
     "pattern_pairs": {
        "http://mywebsite.com:80,*": {
           "media-stream-camera": 1,
           "media-stream-mic": 1
        },
        ...

However, for some reason, he continues to show a hint.

Any idea? I am using Chrome version 33.

Thank!

+4
source share
2 answers

Chrome seems to overwrite the preferences file every time it starts. I could not get my changes pasted.

Solution 1. A packaged Chrome app.

- chrome app. videoCapture manifest.json. .

"permissions": [
    "videoCapture"
],

2. SSL.

, "http", https, .

3. .

- -, , . Chrome, . , , .

http://www.chromium.org/administrators/policy-list-3#VideoCaptureAllowedUrls

VideoCaptureAllowedUrls - URL- -. . , , , , .

/Applications/Google\ Chrome.app/Contents/Resources/com.google.Chrome.manifest/Contents/Resources/com.google.Chrome.manifest

"" , . , , Windows Linux ( OSX).

, . Chrome , --kiosk http://yoursite.com. .

Windows/Linux, SO- .

+2

4.

--use-fake-ui-for-media-stream

(OS X): /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome http://html5-demos.appspot.com/static/getusermedia/record-user-webm.html --use-fake-ui-for-media-stream

http://creativcoders.wordpress.com/2014/08/18/chrome-always-allow-access-to-webcam-and-microphone-over-http-webrtc/

0

Source: https://habr.com/ru/post/1528835/


All Articles