basst314/ngx-webcam

Webcam is not accessed when we deployed in server

surenred opened this issue · 2 comments

I have few Queries?

  1. I developed an application using ngx-webcam it is working well in development stage but when I moved it to the server the webcam doesn't showed up. It Look for the webcam in the server and when I click capture image it capture's an image and show entire black.

  2. Is the build process in normal ng build -prod or we need to use any package for the build purpose like packagr or anything else.

  3. SSL is mandatory to access the webcam?

Hi @surenred,

Make sure the app is served on a secure location using https:// protocol (see Readme / Prerequisites).

Https is mandatory in order to allow browsers to access the userMedia / webcam APIs.

Cheers!

@basst314 Thank you. I tried with https it is working well and good.