# Camera Access from Google Chrome!

**URL:** <https://forum.inductiveautomation.com/t/camera-access-from-google-chrome/80596>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [October 17, 2023, 1:11pm UTC](https://forum.inductiveautomation.com/t/camera-access-from-google-chrome/80596 "2023-10-17T13:11:17Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Patil](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rahul_patil/32/53539_2.png) [@Rahul\_Patil](https://forum.inductiveautomation.com/u/Rahul_Patil)\
**Post date:** [October 17, 2023, 1:11pm UTC](https://forum.inductiveautomation.com/t/camera-access-from-google-chrome/80596/1 "2023-10-17T13:11:17Z")

</div>

I am very very new to Ignition 8.1, maybe it's a silly question.

I am able to access the Camera from the Perspective App, but when I open a Chrome browser, and click on the same button, to open the camera, it doesn't, but the tag values are getting updated in Chrome as well as Perspective.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [October 17, 2023, 1:27pm UTC](https://forum.inductiveautomation.com/t/camera-access-from-google-chrome/80596/2 "2023-10-17T13:27:32Z")

</div>

Web browsers aren't allowed to access the device that way, it would be considered malware at that point. You **must** use the Perspective App for that functionality.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 17, 2023, 2:11pm UTC](https://forum.inductiveautomation.com/t/camera-access-from-google-chrome/80596/3 "2023-10-17T14:11:52Z")

</div>

Not quite, they can, if the user allows it. But it cant be forced, the user has to allow it. And it has to be allowed through the browsers own controls, nothing we can change about it.

> **[Use your camera & microphone - Android - Google Chrome Help](https://support.google.com/chrome/answer/2693767?hl=en&co=GENIE.Platform%3DAndroid)**
>
> You can use your camera and microphone for sites in Chrome.  On your Android device, open the Chrome app 

> **[Use your camera & microphone - Computer - Google Chrome Help](https://support.google.com/chrome/answer/2693767?hl=en&co=GENIE.Platform%3DDesktop)**
>
> You can use your camera and microphone for sites in Chrome. 
> Important: As of 2021, Adobe has ended support for the Flash Player plugin. Flash content, including audio and video, will

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [October 17, 2023, 2:17pm UTC](https://forum.inductiveautomation.com/t/camera-access-from-google-chrome/80596/4 "2023-10-17T14:17:30Z")

</div>

You also are required to use https

> <https://stackoverflow.com/questions/52759992/how-to-access-camera-and-microphone-in-chrome-without-https/58449078#58449078>

Last part of his reply

---

<div class="post-metadata">

**Author:** ![Rahul\_Patil](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rahul_patil/32/53539_2.png) [@Rahul\_Patil](https://forum.inductiveautomation.com/u/Rahul_Patil)\
**Post date:** [October 17, 2023, 2:25pm UTC](https://forum.inductiveautomation.com/t/camera-access-from-google-chrome/80596/5 "2023-10-17T14:25:03Z")

</div>

I opened Setting \> site setting \> Camera (This is an enabled option)

and Setting \> site setting \> All sites \> [http://xx](http://xx):xx:xx:xxx:xxxx (my gateway)  
When i click on my gateway , i can see under Permission that Sound is enabled , But I cant see the Camera Option there ?

---

<div class="post-metadata">

**Author:** ![Rahul\_Patil](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rahul_patil/32/53539_2.png) [@Rahul\_Patil](https://forum.inductiveautomation.com/u/Rahul_Patil)\
**Post date:** [October 17, 2023, 2:25pm UTC](https://forum.inductiveautomation.com/t/camera-access-from-google-chrome/80596/6 "2023-10-17T14:25:58Z")

</div>

I opened Setting \> site setting \> Camera (This is an enabled option)

and Setting \> site setting \> All sites \> [http://xx](http://xx/):xx:xx:xxx:xxxx (my gateway)  
When i click on my gateway , i can see under Permission that Sound is enabled , But I cant see the Camera Option there ?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 18, 2023, 1:07pm UTC](https://forum.inductiveautomation.com/t/camera-access-from-google-chrome/80596/7 "2023-10-18T13:07:02Z")

</div>

> [@nminchin](#):
>
> You also are required to use https

> [@Rahul\_Patil](#):
>
> [http://xx](http://xx/):

maybe its that?

---

<div class="post-metadata">

**Author:** ![Rahul\_Patil](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rahul_patil/32/53539_2.png) [@Rahul\_Patil](https://forum.inductiveautomation.com/u/Rahul_Patil)\
**Post date:** [October 18, 2023, 1:51pm UTC](https://forum.inductiveautomation.com/t/camera-access-from-google-chrome/80596/8 "2023-10-18T13:51:16Z")

</div>

I tried , that as well , But it didn't work out.....

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 18, 2023, 2:01pm UTC](https://forum.inductiveautomation.com/t/camera-access-from-google-chrome/80596/9 "2023-10-18T14:01:53Z")

</div>

what exacty are you using to open the camera?

try to reset the settings for your gateway and see if the request popups up again

---

<div class="post-metadata">

**Author:** ![Rahul\_Patil](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rahul_patil/32/53539_2.png) [@Rahul\_Patil](https://forum.inductiveautomation.com/u/Rahul_Patil)\
**Post date:** [October 18, 2023, 2:30pm UTC](https://forum.inductiveautomation.com/t/camera-access-from-google-chrome/80596/10 "2023-10-18T14:30:10Z")

</div>

Everything works fine , when i use the Perspective App.

The problem arises , when i use google chrome , when i click on button , there's no option for scanning the barcode.

**Setting \> site setting \> All sites \> [http://xx](http://xx/):xx:xx:xxx:xxxx (my gateway)**

When I click on my gateway, i can see under Permission that Sound is enabled , But I cant see the Camera Option there ? I guess , if i am able to add the camera and enable it here , then my problem would be solved.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 18, 2023, 2:38pm UTC](https://forum.inductiveautomation.com/t/camera-access-from-google-chrome/80596/11 "2023-10-18T14:38:16Z")

</div>

How are you scanning the barcode?

This might not be a native tool in all browsers, just taking a photo =/= reading the text in said photo, it requires the browser to have features for reading text (or the app which has these features)

> [@Barcode / QR Code - doesn't open camera](https://forum.inductiveautomation.com/t/barcode-qr-code-doesnt-open-camera/65780):
>
> Hi All, I got my Bar Code scanner working but it only works on Perspective App from Playstore. All permissions of Google Chrome Browser is permitted including Camera, but still it doesn't open the camera, I also tried adding a script for logging status at gateway logger in the same button and it is perfectly working. Is anyone here got the same problem or experienced the same issue? Your input is very much appreciated. Thank you.

you might be able to install an extention for this though  
you could try adding this

> **[QR Code Reader](https://chromewebstore.google.com/detail/qr-code-reader/jhigigpkpbeofhknomiadocogenlpcde)**
>
> a multiple QR- and bar-code scanner that supports scanning from webcam and local images

but if you have to install something, you might aswell install the app xd

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 18, 2023, 2:53pm UTC](https://forum.inductiveautomation.com/t/camera-access-from-google-chrome/80596/12 "2023-10-18T14:53:37Z")

</div>

> [@Rahul\_Patil](#):
>
> Everything works fine , when i use the Perspective App.

The whole point of having a Perspective App is to do things that browsers don't allow. 🤷‍♂️

If you want a supported solution, use the App.
