// JMFPolicySection 
// Note: Use jdk1.2.2 or later
// Due to jdk bug 4189625, when using an applet, you will get
// "SecurityException: Access denied to ThreadGroup not owned by applet"
// This bug has been fixed in jdk1.2.2

grant { 
	//////////////////////////////////////////////////////
	// Needed to play file: protocol

	permission java.util.PropertyPermission "user.dir", "read";
	permission java.util.PropertyPermission "user.home", "read";
	permission java.util.PropertyPermission "java.home", "read";
	permission java.util.PropertyPermission "java.class.path", "read";
	permission java.util.PropertyPermission "user.name", "read"; // for RTP

	permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";
	permission java.lang.RuntimePermission "accessClassInPackage.sun.audio";
	permission java.lang.RuntimePermission "modifyThread";
	permission java.lang.RuntimePermission "modifyThreadGroup";
	permission java.lang.RuntimePermission "loadLibrary.*";

        permission java.io.FilePermission "<<ALL FILES>>", "read";

	// Note: If write permission for jmf.log is not there, you can still play
	// file:, but the jmf.log won't be written.
        permission java.io.FilePermission "${user.dir}${/}jmf.log", "write";
        permission java.io.FilePermission "${user.home}${/}.JMStudioCfg", "write";
	//////////////////////////////////////////////////////

        //////////////////////////////////////////////////////
        // For http, ftp protocol
	// You need 'accept' permission for rtp
	permission java.net.SocketPermission "*", "connect,accept";
	// JMFPolicyCacheDir 
        permission java.io.FilePermission "c:\\temp\\*", "write";
        permission java.io.FilePermission "c:\\temp\\*", "delete";
        /////////////////////////////////////////////////////


	permission java.awt.AWTPermission "showWindowWithoutWarningBanner";
	permission javax.sound.sampled.AudioPermission "record";
};
