| | |
| | | import java.io.Writer; |
| | | import java.net.HttpURLConnection; |
| | | import java.net.URL; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import java.util.logging.Level; |
| | | import java.util.logging.Logger; |
| | | |
| | |
| | | |
| | | private static final Logger logger = Logger.getLogger(OMXPlayer.class.getName()); |
| | | |
| | | protected Map getQueryMap(HttpExchange t) { |
| | | HashMap map = new HashMap(); |
| | | String query = t.getRequestURI().getQuery(); |
| | | if(query != null && query.length() > 0) { |
| | | String qParts[] = query.split("&"); |
| | | for(String qPart : qParts) { |
| | | //logger.info("qPart: " + qPart); |
| | | String pParts[] = qPart.split("="); |
| | | map.put(pParts[0], pParts[1]); |
| | | } |
| | | } |
| | | return map; |
| | | } |
| | | |
| | | /** |
| | | * Einen Prozess zum Abspielen mit dem omxplayer starten |