From b6a8f02169ecea91936e81c297e8ce0f1b2f107b Mon Sep 17 00:00:00 2001
From: ulrich
Date: Tue, 23 Mar 2021 16:35:55 +0000
Subject: [PATCH] ...

---
 src/de/uhilger/avdirektor/App.java |   27 ++++++++++++++++++++++++---
 1 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/src/de/uhilger/avdirektor/App.java b/src/de/uhilger/avdirektor/App.java
index 9eaac2e..873fa47 100644
--- a/src/de/uhilger/avdirektor/App.java
+++ b/src/de/uhilger/avdirektor/App.java
@@ -6,14 +6,23 @@
 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";
   
@@ -42,11 +51,17 @@
   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
@@ -83,5 +98,11 @@
     return param;
   } 
   
+  public static Process getPlayerProcess() {
+    return playerproc;
+  }
   
+  public static void setPlayerProcess(Process p) {
+    playerproc = p;
+  }
 }

--
Gitblit v1.9.3