mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-25 14:37:53 +08:00
修复talk模式对讲
This commit is contained in:
parent
a9dc6057b2
commit
f00ae2b43d
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user