修复talk模式对讲

This commit is contained in:
lin
2026-02-21 23:46:18 +08:00
parent a9dc6057b2
commit f00ae2b43d

View File

@@ -509,7 +509,9 @@ public class ZLMRESTfulUtils {
}
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) {
return;
}
@@ -523,7 +525,9 @@ public class ZLMRESTfulUtils {
callback.run(zlmResult);
}
}
}));
});
}
String response = sendPost(mediaServer, "startSendRtpPassive",param, requestCallback);
if (response == null) {
return ZLMResult.getFailForMediaServer();
}else {