| | |
| | | * Abspielgeraet. |
| | | * |
| | | * HTTP GET /mz/api/strg/abspieler/play/liste/[name] |
| | | * HTTP GET /mz/api/strg/abspieler/next |
| | | * HTTP GET /mz/api/strg/abspieler/ende |
| | | * |
| | | * HTTP POST /mz/api/strg/abspieler/play/titel mit dem Titel im Body |
| | | * HTTP POST /mz/api/strg/abspieler/play/stream mit dem Livestream im Body (nur Name gefuellt) |
| | | * |
| | | * HTTP POST /mz/api/strg/abspieler/weiter/titel mit dem Titel im Body |
| | | * DEPRECATED: HTTP POST /mz/api/strg/abspieler/weiter/titel mit dem Titel im Body |
| | | * |
| | | * HTTP GET /mz/api/strg/abspieler/pause |
| | | * HTTP GET /mz/api/strg/abspieler/stop |
| | |
| | | public static final String PL_CMD_VOLUP = "volup"; |
| | | public static final String PL_CMD_PAUSE = "pause"; |
| | | public static final String PL_CMD_PLAYON = "weiter"; |
| | | public static final String PL_CMD_NEXT = "next"; |
| | | public static final String PL_CMD_CALYPSO_STOP = "stop"; |
| | | public static final String PL_CMD_CALYPSO_VOL_INC = "vol-inc"; |
| | | public static final String PL_CMD_CALYPSO_VOL_DEC = "vol-dec"; |
| | |
| | | response = kommandoSenden(fs, elems[4], PL_CMD_CALYPSO_PAUSE); |
| | | //} else if(elems[5].equalsIgnoreCase(PL_CMD_PLAYON)) { |
| | | // response = kommandoSenden(fs, elems[4], PL_CMD_CALYPSO_PLAYON); |
| | | } else if(elems[5].equalsIgnoreCase(PL_CMD_NEXT)) { |
| | | response = kommandoSenden(fs, elems[4], PL_CMD_CALYPSO_STOP); |
| | | //response = naechsterTitel(fs, elems[4]); |
| | | } else { |
| | | response = meldung("Ungueltiges Kommando: " + elems[5], AbstractHandler.RTC_NOT_FOUND); |
| | | } |
| | |
| | | String path = e.getRequestURI().toString(); |
| | | String[] elems = path.split(Server.SLASH); |
| | | logger.info(elems[5]); |
| | | if(elems[5].equalsIgnoreCase(PL_CMD_PLAYON)) { |
| | | abspielerKmd = PL_CMD_CALYPSO_PLAYON; |
| | | } else if(elems[5].equalsIgnoreCase(PL_CMD_PLAY)){ |
| | | // PLAYON ist deprecated |
| | | //if(elems[5].equalsIgnoreCase(PL_CMD_PLAYON)) { |
| | | // abspielerKmd = PL_CMD_CALYPSO_PLAYON; |
| | | //} else if(elems[5].equalsIgnoreCase(PL_CMD_PLAY)){ |
| | | // abspielerKmd = PL_CMD_PLAY; |
| | | //} |
| | | if(elems[5].equalsIgnoreCase(PL_CMD_PLAY)){ |
| | | abspielerKmd = PL_CMD_PLAY; |
| | | } |
| | | try { |