1
votes

I want to access the camera feature in chrome browser using HTTP.

Before that am using getUserMedia() for access the camera feature in chrome but it shows an error message.It working fine in chrome 41.0 version

"getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details."

How can i access the camera feature in HTTP protocol in Google Chrome latest version

1
Um, the error says you can't... Check the link. SSL certs are free now though: letsencrypt.org - Alexander O'Mara
Actually from http://localhost you can circumvent this. - Kaiido
Thank you Kaiido.. After i converting into localhost it's working fine.. - Purushothaman

1 Answers

0
votes

If you want to access the device camera means you can use html input file like

<input type="file" name="image" accept="image/*" capture>.