|
@ -14,6 +14,7 @@ import java.net.ConnectException; |
|
|
import java.util.HashMap; |
|
|
import java.util.HashMap; |
|
|
import java.util.Map; |
|
|
import java.util.Map; |
|
|
import java.util.Objects; |
|
|
import java.util.Objects; |
|
|
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
|
|
|
|
|
@Component |
|
|
@Component |
|
|
public class ZLMRESTfulUtils { |
|
|
public class ZLMRESTfulUtils { |
|
@ -138,9 +139,15 @@ public class ZLMRESTfulUtils { |
|
|
|
|
|
|
|
|
public JSONObject getMediaList(MediaServerItem mediaServerItem, String app, String stream, String schema, RequestCallback callback){ |
|
|
public JSONObject getMediaList(MediaServerItem mediaServerItem, String app, String stream, String schema, RequestCallback callback){ |
|
|
Map<String, Object> param = new HashMap<>(); |
|
|
Map<String, Object> param = new HashMap<>(); |
|
|
if (app != null) param.put("app",app); |
|
|
if (app != null) { |
|
|
if (stream != null) param.put("stream",stream); |
|
|
param.put("app",app); |
|
|
if (schema != null) param.put("schema",schema); |
|
|
} |
|
|
|
|
|
if (stream != null) { |
|
|
|
|
|
param.put("stream",stream); |
|
|
|
|
|
} |
|
|
|
|
|
if (schema != null) { |
|
|
|
|
|
param.put("schema",schema); |
|
|
|
|
|
} |
|
|
param.put("vhost","__defaultVhost__"); |
|
|
param.put("vhost","__defaultVhost__"); |
|
|
return sendPost(mediaServerItem, "getMediaList",param, callback); |
|
|
return sendPost(mediaServerItem, "getMediaList",param, callback); |
|
|
} |
|
|
} |
|
|