javascript - Code to detect webcam does not work on Chrome when running on server -


i using javascript code below detect webcam:

navigator.getmedia = ( navigator.getusermedia      || navigator.webkitgetusermedia      || navigator.mozgetusermedia      || navigator.msgetusermedia); 

it works chrome when application running on computer. when running application on server, works fine firefox not chrome. getting error message "no camera available" if trying detect webcam on server side (the server has no webcan) , not on client side, computer. can problem?

it's because google chrome wants https connection enable webcam.

webcam works on google chrome on https connection or on localhost.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -