0

i used jmf jar file to run my web cam. here my code.It doesnt show my web cam when run this code? can anyone give me a solution ? Thanks

CaptureDeviceInfo di = CaptureDeviceManager.getDevice("vfw:Microsoft WDM Image Capture (Win32):0";);
ml = di.getLocator();
Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
sujan duminda
  • 31
  • 1
  • 6

1 Answers1

0

My JMF application also can't find any device. I solved this problem by using following code:

MediaLocator ml = new MediaLocator("vfw://0");

where vfw://0 is the path to web camera, you can find it at JMStudio.

NamingException
  • 2,388
  • 1
  • 19
  • 41
makenti
  • 1
  • 1