FileDocCategorySizeDatePackage
JMFPropertiesGen.javaAPI DocJMF 2.1.1e1434Mon May 12 12:20:44 BST 2003com.sun.media.util

JMFPropertiesGen

public class JMFPropertiesGen extends Object
A simple utility to create jmf.properties Usage: java JMFPropertiesGen [ for native+java plugins ] java JMFPropertiesGen java [ for only java plugins ]

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

	
	String [] nativeList = RegistryGen.nativePlugins;
	String [] defaultList = RegistryGen.defaultPlugins;
	String [] mergedList;
	boolean allJava = false;
	
	if (args.length > 0 && args[0].equalsIgnoreCase("java")) {
	    allJava = true;
	} 
	
	mergedList = RegistryGen.findAllPlugInList(allJava, defaultList, nativeList);
	RegistryGen.registerPlugIns(mergedList);

	// The following are code to register specific capture devices:
	if (!allJava) {
	    String fileSeparator = System.getProperty("file.separator");
	    if (fileSeparator.equals("/")) {
		Registry.set("secure.cacheDir", "/tmp");
	    } else {
		Registry.set("secure.cacheDir", "C:" + fileSeparator + "temp");
	    }
	    try {
		Registry.commit();
	    } catch (Exception e) {
	    }
	    // Register JavaSound capturer:
	    // CaptureDeviceInfo cdis[] = com.sun.media.protocol.javasound.DataSource.listCaptureDeviceInfo();
	    // RegistryGen.registerCaptureDevices(cdis);
	}
	System.exit(0);