优化语音广播的TCP主动模式

This commit is contained in:
648540858
2022-05-18 18:14:46 +08:00
parent 6fa9dae824
commit 9c555b56b7
4 changed files with 127 additions and 10 deletions

View File

@@ -253,6 +253,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

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