I need to make 2 applets that will run on a server like TOMCAT, and when I access the client side web page [HTML page], I have 2 cameras attached to this client PC , and I want to show video from both cameras on 2 web pages on the client side at the same time .
I tried using JMF. Out put -
It does not work simultaneously for both cameras on most machines. It works to capture one camera at a time
It works on some machines, but you need to select cameras every time you open web pages. Select camera 1 for the first applet and camera 2 for the second applet.
Is there a way with / without JMF so that I can open 2 web pages on one client PC with two applets for the same work on the remote server and show video from each USBCAM on each page?
I used this when working with JMF.
private void StartStreaming() { String mediaFile = "vfw:Micrsoft WDM Image Capture (Win32):0"; try { MediaLocator mlr = new MediaLocator(mediaFile); _player = Manager.createRealizedPlayer(mlr); if (_player.getVisualComponent() != null) { setSize(480, 320); jpnVideoStream.add("South", _player.getVisualComponent()); } } catch (Exception e) { System.err.println("Got exception " + e); } _player.start(); }
This is what is present in both of my applets. But, as I said, most of the time it launches one CAM, and then gives the device to use and cannot capture the message.
Please suggest any solution.
Tattu source share