AngryHacker
AngryHacker

Reputation: 61606

How to get Chrome to stop asking me whether its ok to use the camera?

I am doing some html/js/webrtc work with the webcam. Even though I am hosting files from the web server on my machine (thus 127.0.0.1), Chrome asks me whether its ok to use the camera every time I reload the page.

How can I get it to stop?

Upvotes: 0

Views: 757

Answers (2)

Sergio
Sergio

Reputation: 619

Just activate chrome://flags/#allow-insecure-localhost. This will work like https and fix a lot of development problems, including invalid ssl certificates.

Upvotes: 2

Philipp Hancke
Philipp Hancke

Reputation: 17295

use https. Chrome does not persist permissions on http and getUserMedia will stop working there soon (even though possibly not on localhost).

Alternatively, use command line flags like --use-fake-ui-for-media-stream to skip this.

Upvotes: 1

Related Questions