Q
Q
Quad_Tree2015-02-27 18:45:20
Java
Quad_Tree, 2015-02-27 18:45:20

Why can't I connect my webcam?

Trying to connect a 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();
        }

Gives an error message:
javax.media.NoPlayerException: Cannot find a Player for :vfw://0

PS Tried to use vfw:Microsoft WDM Image Capture (Win32):0 The error remained. What to do?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question