| | |
| | | /* |
| | | * To change this license header, choose License Headers in Project Properties. |
| | | * To change this template file, choose Tools | Templates |
| | | * and open the template in the editor. |
| | | */ |
| | | package de.uhilger.calypso.handler; |
| | | |
| | | import com.sun.net.httpserver.HttpExchange; |
| | |
| | | private static final Logger logger = Logger.getLogger(VLCPlayer.class.getName()); |
| | | |
| | | public static final String CMD_STOP = "s"; |
| | | public static final String CMD_PAUSE_RESUME = "dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.vlc /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"; |
| | | 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"; |
| | | public static final String CMD_VOLUME = "Volume"; |
| | | |
| | | @Override |
| | | public String abspielen(String urlStr, String parameter, String meldeUrlStr, String token) { |
| | |
| | | if(o != null) { |
| | | tilgen(); |
| | | } |
| | | StringBuilder kommando = new StringBuilder("vlc --fullscreen "); |
| | | StringBuilder kommando = new StringBuilder("vlc --fullscreen -I rc "); |
| | | /* |
| | | if(parameter != null) { |
| | | kommando.append(parameter); |