diff --git a/server/WebApi.cpp b/server/WebApi.cpp index e99bcb76..18056a10 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -1595,7 +1595,7 @@ void installWebApi() { auto offer = allArgs.getArgs(); CHECK(!offer.empty(), "http body(webrtc offer sdp) is empty"); - WebRtcPluginManager::Instance().getAnswerSdp(*(static_cast(&sender)), type, + WebRtcPluginManager::Instance().getAnswerSdp(static_cast(sender), type, WebRtcArgsImp(allArgs, sender.getIdentifier()), [invoker, val, offer, headerOut](const WebRtcInterface &exchanger) mutable { //设置返回类型 @@ -1620,7 +1620,7 @@ void installWebApi() { auto offer = allArgs.getArgs(); CHECK(!offer.empty(), "http body(webrtc offer sdp) is empty"); - WebRtcPluginManager::Instance().getAnswerSdp(*(static_cast(&sender)), type, + WebRtcPluginManager::Instance().getAnswerSdp(static_cast(sender), type, WebRtcArgsImp(allArgs, sender.getIdentifier()), [invoker, offer, headerOut](const WebRtcInterface &exchanger) mutable { // 设置跨域