修复talk模式对讲
This commit is contained in:
@@ -509,7 +509,9 @@ public class ZLMRESTfulUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ZLMResult<?> startSendRtpPassive(MediaServer mediaServer, Map<String, Object> param, ResultCallback callback) {
|
public ZLMResult<?> startSendRtpPassive(MediaServer mediaServer, Map<String, Object> param, ResultCallback callback) {
|
||||||
String response = sendPost(mediaServer, "startSendRtpPassive",param, (responseStr -> {
|
RequestCallback requestCallback = null;
|
||||||
|
if (callback != null) {
|
||||||
|
requestCallback = (responseStr -> {
|
||||||
if (callback == null) {
|
if (callback == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -523,7 +525,9 @@ public class ZLMRESTfulUtils {
|
|||||||
callback.run(zlmResult);
|
callback.run(zlmResult);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}));
|
});
|
||||||
|
}
|
||||||
|
String response = sendPost(mediaServer, "startSendRtpPassive",param, requestCallback);
|
||||||
if (response == null) {
|
if (response == null) {
|
||||||
return ZLMResult.getFailForMediaServer();
|
return ZLMResult.getFailForMediaServer();
|
||||||
}else {
|
}else {
|
||||||
|
|||||||
Reference in New Issue
Block a user