feat:支持级联tcp主动

This commit is contained in:
wanghui
2023-07-21 16:20:39 +08:00
parent d48f89eee4
commit 7fd34cfda5
4 changed files with 59 additions and 2 deletions

View File

@@ -289,6 +289,10 @@ public class ZLMRESTfulUtils {
return sendPost(mediaServerItem, "startSendRtp",param, null);
}
public JSONObject startSendRtpPassive(MediaServerItem mediaServerItem, Map<String, Object> param) {
return sendPost(mediaServerItem, "startSendRtpPassive",param, null);
}
public JSONObject stopSendRtp(MediaServerItem mediaServerItem, Map<String, Object> param) {
return sendPost(mediaServerItem, "stopSendRtp",param, null);
}

View File

@@ -231,6 +231,13 @@ public class ZLMServerFactory {
return zlmresTfulUtils.startSendRtp(mediaServerItem, param);
}
/**
* 调用zlm RESTFUL API —— startSendRtpPassive
*/
public JSONObject startSendRtpStreamForPassive(MediaServerItem mediaServerItem, Map<String, Object>param) {
return zlmresTfulUtils.startSendRtpPassive(mediaServerItem, param);
}
/**
* 查询待转推的流是否就绪
*/