Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webcam example don't work because of https #141

Open
jcubic opened this issue Mar 19, 2018 · 7 comments
Open

Webcam example don't work because of https #141

jcubic opened this issue Mar 19, 2018 · 7 comments

Comments

@jcubic
Copy link

jcubic commented Mar 19, 2018

In Google Chrome to use a webcam you now need to serve the website over https.

@kylebakerio
Copy link

Came here to report this (that webcome isn't working, didn't look in to reason). Chrome 64 here.

@felix2056
Copy link

I really don't see how this is related to the plugin. Normally browsers like chrome and firefox will never allow non-https sites to run webrtc after Chrome 47+ version. This is their secure origin policy.
Although you can do some hack for this with some changes in ngnix.cong file but am not sure you'd want to go that far.

@kylebakerio
Copy link

the point is the demo/example is broken, and needs to be updated.

Obviously this is how Chrome works. The example just hasn't been updated since before chrome had that requirement.

@felix2056
Copy link

@kylebakerio if that's the case then instead of waiting for the fix, you can install the free let's encrypt certificate on your server, it'll only take 5 minutes and lasts for 90 days.
Renewal is also free

@jcubic
Copy link
Author

jcubic commented Aug 19, 2020

Yes the issue is about demo that runs on http (see the title of the issue), it's not the code itself or your website that use the library.

@kylebakerio
Copy link

http://lab.ejci.net/favico.js/

"start webcam"

in console:

favico.min.js:7 Uncaught Error: Error setting webcam. Message: navigator.getUserMedia is not a function
    at w (favico.min.js:7)
    at Object.L [as webcam] (favico.min.js:7)
    at HTMLButtonElement.<anonymous> (example.js:127)
    at HTMLButtonElement.dispatch (jquery-1.10.1.min.js:5)
    at HTMLButtonElement.v.handle (jquery-1.10.1.min.js:5)

@kylebakerio
Copy link

Also, most of the demos are broken in general. Several work, but many don't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants