Skip to content
Advertisement

Open Multiple Video Camera in a web Page

I have a web page that is trying to play multiple video stream from two web cam that is attached with the system. Three Cameras attached with my system , one in an in-build camera in the system, second is a usb camera and third is a droid cam client. I can’t play video from system cam and usb cam at a time, I mean droid cam always playing but only one of the other camera at a time.

for example:

  1. Droid cam and USB Cam = works
  2. Droid cam and System Camera( in built) = works
  3. Usb and System Camera = not working

My Code is

JavaScript

Error : could’t load ‘camera label’

two camera stream added in the window object one is always Droid Cam.

first of all I want know is this possible?

Advertisement

Answer

After digging into the issue i found the real problem and a solution. the real problem was asynchronous behavior of java script. so i rewrite the loop. This will help others who facing the similar issue.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement