Why can't you connect the webcam?

Trying to connect the camera:
Player camera;
 MediaLocator ml = new MediaLocator("vfw://0");

 try {
 camera = Manager.createRealizedPlayer(ml);
camera.setRate(100);
root.add(camera.getVisualComponent());
 } catch (IOException e) {
e.printStackTrace();
 } catch (NoPlayerException e) {
e.printStackTrace();
 } catch (CannotRealizeException e) {
e.printStackTrace();
 }


Error:
javax.media.NoPlayerException: Cannot find a Player for :vfw://0


P. S. I Tried to use vfw:Microsoft WDM Image Capture (Win32):0 Error remained. What to do?
September 19th 19 at 12:46
0 answer

Find more questions by tags WindowsJava