From 37f9ab18251d7be3b154e2af30954fa95496f4d2 Mon Sep 17 00:00:00 2001 From: ulrich Date: Wed, 11 May 2022 07:48:08 +0000 Subject: [PATCH] Lautstaerkeregelung hinzugefuegt --- src/de/uhilger/calypso/Server.java | 3 +++ src/de/uhilger/calypso/handler/OMXPlayer.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/de/uhilger/calypso/Server.java b/src/de/uhilger/calypso/Server.java index a4dce04..6a11452 100644 --- a/src/de/uhilger/calypso/Server.java +++ b/src/de/uhilger/calypso/Server.java @@ -69,6 +69,9 @@ server.createContext(contextName + "/seek", new SeekHandler(OMXPlayer.F_SEEK)); server.createContext(contextName + "/stop", new CmdHandler(OMXPlayer.CMD_STOP)); server.createContext(contextName + "/pause", new CmdHandler(OMXPlayer.CMD_PAUSE_RESUME)); + server.createContext(contextName + "/vol-inc", new CmdHandler(OMXPlayer.CMD_INC_VOL)); + server.createContext(contextName + "/vol-dec", new CmdHandler(OMXPlayer.CMD_DEC_VOL)); + server.createContext(contextName + "/info", new CmdHandler(OMXPlayer.CMD_TOGGLE_INFO)); server.createContext(contextName + "/ping", new PingHandler(OMXPlayer.F_PING)); server.createContext(contextName + "/server/stop", new StopServerHandler()); server.createContext(contextName + "/log", new LogHandler()); diff --git a/src/de/uhilger/calypso/handler/OMXPlayer.java b/src/de/uhilger/calypso/handler/OMXPlayer.java index 2321e70..4248cb8 100644 --- a/src/de/uhilger/calypso/handler/OMXPlayer.java +++ b/src/de/uhilger/calypso/handler/OMXPlayer.java @@ -52,10 +52,11 @@ public static final String NAME = "omxplayer"; public static final String BLANK = " "; + public static final String CMD_TOGGLE_INFO = "z"; public static final String CMD_DEC_SPEED = "1"; public static final String CMD_DEC_VOL = "-"; public static final String CMD_INC_SPEED = "2"; - public static final String CMD_INC_VOL = "+"; + public static final String CMD_INC_VOL = "="; // oder "+"; public static final String CMD_NEXT_AUDIO = "k"; public static final String CMD_NEXT_CHAPTER = "o"; public static final String CMD_NEXT_SUB = "m"; -- Gitblit v1.9.3