JMF Registry could not add item (Vista)
- by Ranch
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 ?