| | |
| | | super(cmd); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | protected StringBuilder buildParams(HttpExchange t) { |
| | | StringBuilder params = super.buildParams(t); |
| | | params.append(App.getPlayer().buildParams(t, map)); |
| | | return params; |
| | | } |
| | | |
| | | |
| | | /* |
| | | protected StringBuilder buildParams(HttpExchange t) { |
| | | StringBuilder params = super.buildParams(t); |
| | | params.append("-o "); |
| | |
| | | } |
| | | return params; |
| | | } |
| | | |
| | | */ |
| | | |
| | | @Override |
| | | protected String process(HttpExchange t, String params) { |
| | | if (cmd.equalsIgnoreCase(OMXPlayer.F_PLAY)) { |
| | | if (cmd.equalsIgnoreCase(BasePlayer.F_PLAY)) { |
| | | try { |
| | | //FileUtils.deleteDirectory(new File(System.getProperty("omx.wd"), "omx-logs")); |
| | | FileSystem fs = FileSystems.getDefault(); |
| | |
| | | logger.log(Level.SEVERE, null, ex); |
| | | } |
| | | } |
| | | String antwort = App.getPlayer().abspielen( |
| | | getParam(map, "titel"), params, getParam(map, "r"), "1"); |
| | | Player player = App.getPlayer(); |
| | | String antwort = player.abspielen( |
| | | player.getParam(map, "titel"), params, player.getParam(map, "r"), "1"); |
| | | logger.log(Level.FINE, antwort); |
| | | return antwort; |
| | | } |