From 4bbb9f05ba12894477e611eb9b75113e3e3cce29 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Sat, 24 Apr 2021 10:53:26 +0000
Subject: [PATCH] Umbenannt zu Calypso

---
 src/de/uhilger/mediaz/api/MediaSteuerung.java |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/src/de/uhilger/mediaz/api/MediaSteuerung.java b/src/de/uhilger/mediaz/api/MediaSteuerung.java
index e40fbf1..6ff13c2 100644
--- a/src/de/uhilger/mediaz/api/MediaSteuerung.java
+++ b/src/de/uhilger/mediaz/api/MediaSteuerung.java
@@ -64,7 +64,7 @@
 
   private static final Logger logger = Logger.getLogger(MediaSteuerung.class.getName());
 
-  public static final String PL_CMD_PLAY = "avd/play";
+  public static final String PL_CMD_PLAY = "calypso/play";
   public static final String PL_DEFAULT_PARAMS = "?titel=";
   public static final String PL_PARAM_RUECK = "&r=";
   public static final String PL_API_STRG = "/api/strg/"; 
@@ -72,9 +72,9 @@
   public static final String PL_CMD_STOP = "stop";
   public static final String PL_CMD_PAUSE = "pause";
   public static final String PL_CMD_PLAYON = "playon";
-  public static final String PL_CMD_AVD_STOP = "avd/stop";
-  public static final String PL_CMD_AVD_PAUSE = "avd/pause";
-  public static final String PL_CMD_AVD_PLAYON = "avd/playon";
+  public static final String PL_CMD_CALYPSO_STOP = "calypso/stop";
+  public static final String PL_CMD_CALYPSO_PAUSE = "calypso/pause";
+  public static final String PL_CMD_CALYPSO_PLAYON = "calypso/playon";
   public static final String DEFAULT_HOST = "http://localhost:9090";
 
   private final Map spielt = new HashMap();
@@ -95,11 +95,11 @@
           response = naechsterTitel(fs, elems[4]);
         } else if(elems[5].equalsIgnoreCase(PL_CMD_STOP)) {
           spielt.remove(elems[4]);
-          response = kommandoSenden(fs, elems[4], PL_CMD_AVD_STOP);
+          response = kommandoSenden(fs, elems[4], PL_CMD_CALYPSO_STOP);
         } else if(elems[5].equalsIgnoreCase(PL_CMD_PAUSE)) {
-          response = kommandoSenden(fs, elems[4], PL_CMD_AVD_PAUSE);
+          response = kommandoSenden(fs, elems[4], PL_CMD_CALYPSO_PAUSE);
         } else if(elems[5].equalsIgnoreCase(PL_CMD_PLAYON)) {
-          response = kommandoSenden(fs, elems[4], PL_CMD_AVD_PLAYON);
+          response = kommandoSenden(fs, elems[4], PL_CMD_CALYPSO_PLAYON);
         } else {
           response = meldung("Ungueltiges Kommando: " + elems[5], AbstractHandler.RTC_NOT_FOUND);
         }
@@ -346,8 +346,4 @@
     setReturnCode(code);
     return text;
   }
-  
-  // rpi4-az:9090/avd/play?titel=/Filme/S/sound_city.m4v&th=60&ti=60&o=local
-  // aUrl http://rpi4-wz:9090/
-  // titelUrl /media/test/A/The-Alan-Parsons-Project/I-Robot/02-I-Wouldnt-Want-to-Be-Like-You.mp3
 }

--
Gitblit v1.9.3