I am having trouble with the JMF and getting the CaptureDeviceManager.getDeviceList() to list any capture devices.
I am running on Ubuntu 3.11.0-20-generic x86_64 GNU/Linux. I am running this in Netbeans 7.4 where I have added /usr/lib/JMF-2.1.1e/lib/jmf.jar to the project library.
I always get "No Devices Found". I read that I should copy jmf.properties from /usr/lib/JMF-2.1.1e/lib/ to my SRC directory so I tried that also and it made no difference.
Any ideas ?
public static void main(String[] args) {
Vector devices = devices = CaptureDeviceManager.getDeviceList(null);
if (devices.size() == 0) {
System.out.println("No devices found");
System.exit(0);
}
}
Product Version: NetBeans IDE 7.4 (Build 201310111528) Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 3 Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Linux version 3.11.0-20-generic running on amd64; UTF-8; en_GB (nb)