Kleine Umstellungen und Erlaeuterungen
|  |  |  | 
|---|
|  |  |  | 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)); | 
|---|
|  |  |  | 
|---|
|  |  |  | /* | 
|---|
|  |  |  | * 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; | 
|---|
|  |  |  | import java.io.IOException; | 
|---|
|  |  |  | import java.util.logging.Level; | 
|---|
|  |  |  | import java.util.logging.Logger; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @author ulli | 
|---|
|  |  |  | * Obwohl ein laufendes VLC-Programm mit Tastaturbefehlen gesteuert | 
|---|
|  |  |  | * werden kann, funktioniert es nicht, dem Prozess einen Tastaturbefehl | 
|---|
|  |  |  | * wie z.B. S fuer Stopp ueber process.getOutputStream zu 'schreiben'. | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * Im Augenblick gelingt nur die Steuerung ueber dbus. | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * Hier muss noch geprueft werden, ob das auch mit Windows und | 
|---|
|  |  |  | * Mac OS klappt. | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @author Ulrich Hilger | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public class DBusHandler extends CmdHandler { | 
|---|
|  |  |  |  | 
|---|