0

I am already setting device for camera in my after I am using it in my localhost camera accessed but after trying another to connect the camera from another to my local cannot use this device camera example, my server 172.1.1.10 I can access this camera device from my localhost but after using from another 172.1.1.11 to 172.1.1.10 device camera cannot accessed can someone help me?

0

1 Answer 1

0

Make sure your using secure protocol

if (navigator.mediaDevices.getUserMedia) {
      navigator.mediaDevices.getUserMedia({ video: true })
        .then(function (stream) {
          video.srcObject = stream;
        })
        .catch(function (err0r) {
          console.log("Something went wrong!");
        });
    }

or Download Plugin http://www.xarg.org/project/jquery-webcam-plugin/

2
  • yes thanks for answer my question but i am just using from lan iam not using hosting
    – seropo
    Commented Oct 4, 2019 at 10:31
  • I suggest first test your webcam properly working or not using online tester. here onlinemictest.com/webcam-test Commented Oct 4, 2019 at 12:11

Not the answer you're looking for? Browse other questions tagged or ask your own question.