| | |
| | | import java.util.logging.Logger; |
| | | |
| | | /** |
| | | * |
| | | * Hauptklasse des av-director |
| | | * |
| | | * Aufruf mit |
| | | * java -jar av-director.jar port=9000 |
| | | * java -jar av-director.jar nfs-prefix="/media/mc" port=9000 |
| | | * java -Djava.util.logging.config.file=logging.properties -jar .. |
| | | * |
| | | * Der Parameter nfs-prefix bewirkt, dass beim Abspielen relative Pfade |
| | | * mit diesem Praefix verbunden werden und setzt voraus, dass auf der |
| | | * Maschine ein NFS-Mount ueber /etc/fstab eingerichtet ist. |
| | | * |
| | | * @author ulrich |
| | | */ |
| | | public class App { |
| | | |
| | | private static final Logger logger = Logger.getLogger(App.class.getName()); |
| | | |
| | | |
| | | public static final String PI_PLAYER = "pi_player"; |
| | | //public static final String FBI_PROC = "fbi_proc"; |
| | | |
| | |
| | | public static final String SP_RUECK_600 = "rueck600"; |
| | | |
| | | public static final String OPT_LOCAL_AUDIO = "-o%20local"; |
| | | public static final String OPT_HDMI_AUDIO = "-o hdmi"; |
| | | public static final String OPT_HDMI_AUDIO = "-o%20hdmi"; |
| | | |
| | | public static final String F_PLAY = "play"; |
| | | public static final String F_SEEK = "seek"; |
| | | public static final String F_PING = "ping"; |
| | | |
| | | public static final String BLANK = " "; |
| | | |
| | | private static HashMap initParams; |
| | | |
| | | private static Process playerproc; |
| | | |
| | | /** |
| | | * @param args the command line arguments |
| | |
| | | return param; |
| | | } |
| | | |
| | | public static Process getPlayerProcess() { |
| | | return playerproc; |
| | | } |
| | | |
| | | public static void setPlayerProcess(Process p) { |
| | | playerproc = p; |
| | | } |
| | | } |