From ac496f2285d0f79b0124528edd636a732739829a Mon Sep 17 00:00:00 2001
From: undisclosed
Date: Sun, 01 Jan 2023 17:29:03 +0000
Subject: [PATCH] Seek fuer VLC eingebaut

---
 src/de/uhilger/calypso/Server.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/de/uhilger/calypso/Server.java b/src/de/uhilger/calypso/Server.java
index 612ab3e..cab92a6 100644
--- a/src/de/uhilger/calypso/Server.java
+++ b/src/de/uhilger/calypso/Server.java
@@ -31,6 +31,7 @@
 import de.uhilger.calypso.handler.StopServerHandler;
 import de.uhilger.calypso.handler.VLCKillHandler;
 import de.uhilger.calypso.handler.VLCPlayer;
+import de.uhilger.calypso.handler.VLCSeekHandler;
 import java.io.IOException;
 import java.util.logging.Logger;
 import java.net.InetSocketAddress;
@@ -80,11 +81,10 @@
       server.createContext(contextName + "/log", new LogHandler());
       server.createContext(contextName + "/playon", new PlayOnHandler(OMXPlayer.F_PLAY_ON));
     } else if (playerType.equals(App.VLC_PLAYER)) {
-      server.createContext(contextName + "/play", new PlayHandler(BasePlayer.F_PLAY));
-      //server.createContext(contextName + "/stop", new CmdHandler(VLCPlayer.CMD_STOP));
       server.createContext(contextName + "/pause", new DBusHandler(VLCPlayer.CMD_PAUSE_RESUME));
+      //server.createContext(contextName + "/seek", new DBusHandler(VLCPlayer.CMD_SEEK));
+      server.createContext(contextName + "/seek", new VLCSeekHandler(VLCPlayer.CMD_SEEK));
       server.createContext(contextName + "/stop", new VLCKillHandler());
-
     }
     server.createContext(contextName + "/ui", new FileHandler(App.getInitParameter(App.IP_WWW_DATA)));
     server.createContext(contextName + "/ping", new PingHandler(BasePlayer.F_PING));

--
Gitblit v1.9.3