| | |
| | | * |
| | | * HTTP GET /mz/api/strg/abspieler/pause |
| | | * HTTP GET /mz/api/strg/abspieler/stop |
| | | * FALSCH: HTTP GET /mz/api/strg/abspieler/weiter |
| | | * |
| | | * Faustregel: Anzahl Elemente eines URL plus 1 ist die Anzahl der Elemente des |
| | | * Ergebnisses von String.split. |
| | |
| | | public static final String PL_CMD_PLAY = "play"; |
| | | 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/"; |
| | | public static final String PL_API_STRG = "api/strg/"; |
| | | public static final String PL_CMD_ENDE = "ende"; |
| | | public static final String PL_CMD_STOP = "stop"; |
| | | public static final String PL_CMD_PAUSE = "pause"; |
| | |
| | | StringBuilder kmd = abspielKommando(s, abspieler, server, titelUrl, PL_CMD_PLAY); |
| | | kmd.append(PL_PARAM_RUECK); |
| | | kmd.append(server); |
| | | if(!server.endsWith(Server.SLASH)) { |
| | | kmd.append(Server.SLASH); |
| | | } |
| | | kmd.append(PL_API_STRG); |
| | | kmd.append(abspieler.getName()); |
| | | kmd.append("/ende"); |