| | |
| | | import java.io.OutputStream; |
| | | import java.io.OutputStreamWriter; |
| | | import java.io.Writer; |
| | | import java.net.HttpURLConnection; |
| | | import java.net.URL; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | |
| | | * |
| | | * @author ulrich |
| | | */ |
| | | public class OMXPlayer implements Player , ProzessLauscher { |
| | | public class OMXPlayer extends BasePlayer implements Player , ProzessLauscher { |
| | | |
| | | private static final Logger logger = Logger.getLogger(OMXPlayer.class.getName()); |
| | | |
| | | public static final String NAME = "omxplayer"; |
| | | |
| | | public static final String BLANK = " "; |
| | | public static final String CMD_TOGGLE_INFO = "z"; |
| | | public static final String CMD_DEC_SPEED = "1"; |
| | | public static final String CMD_DEC_VOL = "-"; |
| | | public static final String CMD_INC_SPEED = "2"; |
| | | public static final String CMD_INC_VOL = "+"; |
| | | public static final String CMD_INC_VOL = "="; // oder "+"; |
| | | public static final String CMD_NEXT_AUDIO = "k"; |
| | | public static final String CMD_NEXT_CHAPTER = "o"; |
| | | public static final String CMD_NEXT_SUB = "m"; |
| | |
| | | * |
| | | * @return die Antwort des Servers |
| | | */ |
| | | /* |
| | | @Override |
| | | public String tilgen() { |
| | | String antwort; // = null; |
| | |
| | | } |
| | | return antwort; |
| | | } |
| | | |
| | | */ |
| | | |
| | | /** |
| | | * Dem laufenden Abspielprozess ein Kommando uebermitteln |
| | |
| | | |
| | | /* ------ Implementierung ProzessLauscher ----------------- */ |
| | | |
| | | /* |
| | | @Override |
| | | public void prozessBeendet(String meldeUrlStr) { |
| | | try { |
| | |
| | | auf null gesetzt. |
| | | */ |
| | | //App.setPlayerProcess(null); |
| | | /* |
| | | } catch(IOException ex) { |
| | | logger.log(Level.INFO, ex.getMessage(), ex); |
| | | } |
| | | } |
| | | |
| | | */ |
| | | } |