FileDocCategorySizeDatePackage
VFWAuto.javaAPI DocJMF 2.1.1e1358Mon May 12 12:20:34 BST 2003None

VFWAuto

public class VFWAuto extends Object

Fields Summary
Constructors Summary
public VFWAuto()

        Vector devices = (Vector) CaptureDeviceManager.getDeviceList(null).clone();
        Enumeration enum = devices.elements();

        while (enum.hasMoreElements()) {
            CaptureDeviceInfo cdi = (CaptureDeviceInfo) enum.nextElement();
            String name = cdi.getName();
            if (name.startsWith("vfw:"))
                CaptureDeviceManager.removeDevice(cdi);
        }
	
        int nDevices = 0;
        for (int i = 0; i < 10; i++) {
            String name = VFWCapture.capGetDriverDescriptionName(i);
            if (name != null && name.length() > 1) {
                System.err.println("Found device " + name);
                System.err.println("Querying device. Please wait...");
                com.sun.media.protocol.vfw.VFWSourceStream.autoDetect(i);
                nDevices++;
            }
        }
    
Methods Summary
public static voidmain(java.lang.String[] args)

        VFWAuto a = new VFWAuto();
        System.exit(0);