App zur Steuerung des mpv Mediaplayers auf einem Raspberry Pi über HTTP
undisclosed
2022-12-31 5d827bdd3f3370acb5d47cb62c473d113f2d7301
src/de/uhilger/calypso/Server.java
@@ -80,11 +80,8 @@
      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 + "/stop", new VLCKillHandler());
    }
    server.createContext(contextName + "/ui", new FileHandler(App.getInitParameter(App.IP_WWW_DATA)));
    server.createContext(contextName + "/ping", new PingHandler(BasePlayer.F_PING));