| | |
| | | * |
| | | * HTTP GET /mz/api/strg/abspieler/pause |
| | | * HTTP GET /mz/api/strg/abspieler/stop |
| | | * HTTP GET /mz/api/strg/abspieler/seek/[sekunden] |
| | | * |
| | | * Faustregel: Anzahl Elemente eines URL plus 1 ist die Anzahl der Elemente des |
| | | * Ergebnisses von String.split. |
| | |
| | | private static final Logger logger = Logger.getLogger(MediaSteuerung.class.getName()); |
| | | |
| | | public static final String PL_CMD_PLAY = "play"; |
| | | public static final String PL_CMD_SEEK = "seek"; |
| | | public static final String PL_DEFAULT_PARAMS = "?titel="; |
| | | public static final String PL_PARAM_RUECK = "&r="; |
| | | public static final String PL_API_STRG = "api/strg/"; |
| | |
| | | response = meldung("Ungueltiges Kommando: " + elems[5], AbstractHandler.RTC_NOT_FOUND); |
| | | } |
| | | break; |
| | | case 7: |
| | | if (elems[5].equalsIgnoreCase(PL_CMD_SEEK)) { |
| | | // /calypso/seek?pos=[sekunden] |
| | | response = kommandoSenden(fs, elems[4], "seek?pos=" + elems[6]); |
| | | } else { |
| | | response = meldung("Ungueltiges Kommando: " + elems[5], AbstractHandler.RTC_NOT_FOUND); |
| | | } |
| | | break; |
| | | case 8: |
| | | response = ersterTitel(fs, elems[4], elems[7]); |
| | | break; |