From b16b544a3982da609564491ac207e74c0e121c25 Mon Sep 17 00:00:00 2001
From: undisclosed
Date: Sat, 31 Dec 2022 16:09:31 +0000
Subject: [PATCH] VLC Basiskommandos play, pause, stop eingebaut

---
 src/de/uhilger/calypso/handler/PlayHandler.java |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/de/uhilger/calypso/handler/PlayHandler.java b/src/de/uhilger/calypso/handler/PlayHandler.java
index 0c2b527..86b99b4 100644
--- a/src/de/uhilger/calypso/handler/PlayHandler.java
+++ b/src/de/uhilger/calypso/handler/PlayHandler.java
@@ -55,6 +55,16 @@
     super(cmd);
   }
 
+  
+  @Override
+  protected StringBuilder buildParams(HttpExchange t) {
+    StringBuilder params = super.buildParams(t);
+    params.append(App.getPlayer().buildParams(t, map));
+    return params;
+  }
+  
+  
+  /*
   protected StringBuilder buildParams(HttpExchange t) {
     StringBuilder params = super.buildParams(t);
     params.append("-o ");
@@ -69,7 +79,8 @@
     }
     return params;
   }
-
+  */
+  
   @Override
   protected String process(HttpExchange t, String params) {
     if (cmd.equalsIgnoreCase(OMXPlayer.F_PLAY)) {
@@ -85,8 +96,9 @@
         logger.log(Level.SEVERE, null, ex);
       }
     }
-    String antwort = App.getPlayer().abspielen(
-            getParam(map, "titel"), params, getParam(map, "r"), "1");
+    Player player = App.getPlayer();
+    String antwort = player.abspielen(
+            player.getParam(map, "titel"), params, player.getParam(map, "r"), "1");
     logger.log(Level.FINE, antwort);
     return antwort;
   }

--
Gitblit v1.9.3