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/handler/VLCPlayer.java | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/de/uhilger/calypso/handler/VLCPlayer.java b/src/de/uhilger/calypso/handler/VLCPlayer.java index 849babb..a450b81 100644 --- a/src/de/uhilger/calypso/handler/VLCPlayer.java +++ b/src/de/uhilger/calypso/handler/VLCPlayer.java @@ -5,9 +5,11 @@ */ package de.uhilger.calypso.handler; +import com.sun.net.httpserver.HttpExchange; import de.uhilger.calypso.App; import de.uhilger.calypso.MeldeThread; import java.io.IOException; +import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; @@ -18,6 +20,11 @@ public class VLCPlayer extends BasePlayer implements Player { private static final Logger logger = Logger.getLogger(VLCPlayer.class.getName()); + + public static final String CMD_STOP = "s"; + public static final String DBUS_PREFIX = "dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.vlc /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player."; + public static final String CMD_PAUSE_RESUME = "PlayPause"; + public static final String CMD_SEEK = "Seek"; @Override public String abspielen(String urlStr, String parameter, String meldeUrlStr, String token) { @@ -79,9 +86,10 @@ return antwort; } - @Override + + /* public String kommando(String k) { - if(k.equalsIgnoreCase(OMXPlayer.CMD_STOP)) { + if(k.equalsIgnoreCase(VLCPlayer.CMD_STOP)) { Process p = App.getPlayerProcess(); p.destroy(); App.setPlayerProcess(null); @@ -89,6 +97,12 @@ String antwort = "Kommando '" + k + "' ausgefuehrt."; return antwort; } +*/ + + @Override + public StringBuilder buildParams(HttpExchange t, Map m) { + return new StringBuilder(); + } } -- Gitblit v1.9.3