添加首次设置zlm时重启zlm以保证心跳正常。

This commit is contained in:
648540858
2021-12-17 16:06:23 +08:00
parent cf8e40c152
commit 01519c2574
3 changed files with 20 additions and 5 deletions

View File

@@ -238,6 +238,10 @@ public class ZLMRESTfulUtils {
return sendPost(mediaServerItem, "stopSendRtp",param, null);
}
public JSONObject restartServer(MediaServerItem mediaServerItem) {
return sendPost(mediaServerItem, "restartServer",null, null);
}
public JSONObject addStreamProxy(MediaServerItem mediaServerItem, String app, String stream, String url, boolean enable_hls, boolean enable_mp4, String rtp_type) {
Map<String, Object> param = new HashMap<>();
param.put("vhost", "__defaultVhost__");