| | |
| | | } |
| | | } |
| | | |
| | | public JSONObject isMediaOnline(MediaServerItem mediaServerItem, String app, String stream, String schema){ |
| | | Map<String, Object> param = new HashMap<>(); |
| | | if (app != null) { |
| | | param.put("app",app); |
| | | } |
| | | if (stream != null) { |
| | | param.put("stream",stream); |
| | | } |
| | | if (schema != null) { |
| | | param.put("schema",schema); |
| | | } |
| | | param.put("vhost","__defaultVhost__"); |
| | | return sendPost(mediaServerItem, "isMediaOnline", param, null); |
| | | } |
| | | |
| | | public JSONObject getMediaList(MediaServerItem mediaServerItem, String app, String stream, String schema, RequestCallback callback){ |
| | | Map<String, Object> param = new HashMap<>(); |
| | | if (app != null) { |