# Google Chrome blocks the webcam

**URL:** <https://discourse.processing.org/t/google-chrome-blocks-the-webcam/4691>\
**Category:** Coding Questions\
**Created:** [October 20, 2018, 6:32pm UTC](https://discourse.processing.org/t/google-chrome-blocks-the-webcam/4691 "2018-10-20T18:32:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![willianxz](https://avatars.discourse-cdn.com/v4/letter/w/a8b319/32.png) [@willianxz](https://discourse.processing.org/u/willianxz)\
**Post date:** [October 20, 2018, 6:32pm UTC](https://discourse.processing.org/t/google-chrome-blocks-the-webcam/4691/1 "2018-10-20T18:32:58Z")

</div>

Hello my friends, I put my algorithm to take photos in my new website, but the same running in Gooogle Chrome d a Dom Exception error, by what I researched google does not allow the webcam to run if the site does not have ssl, it will be What is it? and if it is has to work around this problem ??

I know it works normally in other browsers, but I’d like it to run in google chrome as well.

I’ve tried putting directly pro google chrome allow access to webcam, however can not do this.

Here is the link from my website:  
[http://programandoagora.com/TirarFotoComButtonESalvar/](http://programandoagora.com/TirarFotoComButtonESalvar/)

Here follows the image of the error that gives in the Dom:

 ![Capturar](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/dd631520f9f218aa0cf051814a98f9911bb37601.png)

---

<div class="post-metadata">

**Author:** ![TheWizardBear](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/thewizardbear/32/3552_2.png) [@TheWizardBear](https://discourse.processing.org/u/TheWizardBear)\
**Post date:** [October 22, 2018, 3:25pm UTC](https://discourse.processing.org/t/google-chrome-blocks-the-webcam/4691/2 "2018-10-22T15:25:39Z")

</div>

Maybe getting a HTTPS coonnection on your website will stop it from blocking the camera?

---

<div class="post-metadata">

**Author:** ![tony](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tony/32/949_2.png) [@tony](https://discourse.processing.org/u/tony)\
**Post date:** [October 22, 2018, 5:31pm UTC](https://discourse.processing.org/t/google-chrome-blocks-the-webcam/4691/3 "2018-10-22T17:31:18Z")

</div>

For testing purposes, I believe you can also access it on localhost

> <https://stackoverflow.com/questions/16835421/how-to-allow-chrome-to-access-my-camera-on-localhost>
