From 669ad47b6e59b02bfc8acce0cdf4c74515226da0 Mon Sep 17 00:00:00 2001
From: undisclosed
Date: Fri, 06 Jan 2023 17:37:53 +0000
Subject: [PATCH] Problem beim Abspielen vom mp3 mit Album Bildern behoben

---
 src/de/uhilger/calypso/handler/VLCSeekHandler.java |   29 +++++++++++++----------------
 1 files changed, 13 insertions(+), 16 deletions(-)

diff --git a/src/de/uhilger/calypso/handler/VLCSeekHandler.java b/src/de/uhilger/calypso/handler/VLCSeekHandler.java
index 2ca4c19..8da3a3a 100644
--- a/src/de/uhilger/calypso/handler/VLCSeekHandler.java
+++ b/src/de/uhilger/calypso/handler/VLCSeekHandler.java
@@ -1,7 +1,3 @@
-/*
- * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
- * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
- */
 package de.uhilger.calypso.handler;
 
 import com.sun.net.httpserver.HttpExchange;
@@ -11,21 +7,22 @@
 import java.util.logging.Logger;
 
 /**
- * dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.vlc /org/mpris/MediaPlayer2   org.mpris.MediaPlayer2.Player.Seek int64:-5000000
- * 
+ * dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.vlc /org/mpris/MediaPlayer2
+ * org.mpris.MediaPlayer2.Player.Seek int64:-5000000
+ *
  * @author Ulrich Hilger
  */
 public class VLCSeekHandler extends CmdHandler {
-  
+
   private static final Logger logger = Logger.getLogger(VLCSeekHandler.class.getName());
-  
+
   public VLCSeekHandler(String cmd) {
     super(cmd);
   }
-  
+
   @Override
   protected String process(HttpExchange t, String params) {
-      String antwort;// = null;
+    String antwort;// = null;
     try {
       StringBuilder kommando = new StringBuilder();
       kommando.append(VLCPlayer.DBUS_PREFIX);
@@ -39,23 +36,23 @@
     }
     return antwort;
   }
-  
+
   @Override
   protected StringBuilder buildParams(HttpExchange t) {
     Player player = App.getPlayer();
     StringBuilder params = super.buildParams(t);
-    
-    if(player instanceof VLCPlayer) {
+
+    if (player instanceof VLCPlayer) {
       String pos = player.getParam(map, "pos");
-      if(!pos.isEmpty()) {
+      if (!pos.isEmpty()) {
         params.append(" ");
         params.append("int64:");
         params.append(pos);
         params.append("000000"); // Mikrosekunden
       }
     }
-    
+
     logger.log(Level.FINER, "params: " + params.toString());
     return params;
-  } 
+  }
 }

--
Gitblit v1.9.3