mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 20:47:08 +08:00
refine: update static_cast in webrtc api
This commit is contained in:
parent
cb92cd0b89
commit
5d33e4c9f9
@ -1595,7 +1595,7 @@ void installWebApi() {
|
|||||||
auto offer = allArgs.getArgs();
|
auto offer = allArgs.getArgs();
|
||||||
CHECK(!offer.empty(), "http body(webrtc offer sdp) is empty");
|
CHECK(!offer.empty(), "http body(webrtc offer sdp) is empty");
|
||||||
|
|
||||||
WebRtcPluginManager::Instance().getAnswerSdp(*(static_cast<Session *>(&sender)), type,
|
WebRtcPluginManager::Instance().getAnswerSdp(static_cast<Session&>(sender), type,
|
||||||
WebRtcArgsImp(allArgs, sender.getIdentifier()),
|
WebRtcArgsImp(allArgs, sender.getIdentifier()),
|
||||||
[invoker, val, offer, headerOut](const WebRtcInterface &exchanger) mutable {
|
[invoker, val, offer, headerOut](const WebRtcInterface &exchanger) mutable {
|
||||||
//设置返回类型
|
//设置返回类型
|
||||||
@ -1620,7 +1620,7 @@ void installWebApi() {
|
|||||||
auto offer = allArgs.getArgs();
|
auto offer = allArgs.getArgs();
|
||||||
CHECK(!offer.empty(), "http body(webrtc offer sdp) is empty");
|
CHECK(!offer.empty(), "http body(webrtc offer sdp) is empty");
|
||||||
|
|
||||||
WebRtcPluginManager::Instance().getAnswerSdp(*(static_cast<Session *>(&sender)), type,
|
WebRtcPluginManager::Instance().getAnswerSdp(static_cast<Session&>(sender), type,
|
||||||
WebRtcArgsImp(allArgs, sender.getIdentifier()),
|
WebRtcArgsImp(allArgs, sender.getIdentifier()),
|
||||||
[invoker, offer, headerOut](const WebRtcInterface &exchanger) mutable {
|
[invoker, offer, headerOut](const WebRtcInterface &exchanger) mutable {
|
||||||
// 设置跨域
|
// 设置跨域
|
||||||
|
Loading…
Reference in New Issue
Block a user