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


i doing html/js/webrtc work webcam. though hosting files web server on machine (thus 127.0.0.1), chrome asks me whether ok use camera every time reload page.

how can stop?

use https. chrome not persist permissions on http , getusermedia stop working there (even though possibly not on localhost).

alternatively, use command line flags --use-fake-ui-for-media-stream skip this.


Comments