JMF Registry could not add item (Vista)

Posted by Ranch on Stack Overflow See other posts from Stack Overflow or by Ranch
Published on 2009-11-11T18:13:11Z Indexed on 2010/06/13 12:12 UTC
Read the original article Hit count: 665

Filed under:
|
|

Hello,

I'm using JMF to capture video stream (webcam) on my Java project.

The camera I'm using is recognized by JMF (JFMStudio) and I manage to get the video stream.

However, on JMF Registry Editor - there's a list of available capture devices, when I click "Add" on one of the items (including the one I need) I get a "Could not add item" error. Therefore this camera is not set in the registry of it (god know where) and later on it is not recognized by my project:

RGBFormat fmt = new RGBFormat(); // could be YUV - doesn't matter Vector v = CaptureDeviceManager.getDeviceList(fmt);

v is empty (while I know the video source is recognized by Java , since I manage to get video on JMF Studio).

Now, this happens only on Vista (where else) and not on XP.

I have a suspiction that somehow Vista security blocks Java from writing the registry file, but of course, I might be wrong.

One more comments: this is vfw:Microsoft WDM Image Capture(Win32):0 device.

Any idea ?

© Stack Overflow or respective owner

Related posts about java

Related posts about Vista