mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-12 19:24:22 +08:00
c sdk 新增webrtc相关函数 (#4473)
另外调整函数位置,whip、whep请求设置Content-Type为application/sdp
This commit is contained in:
@@ -154,6 +154,7 @@ void WebRtcClient::doNegotiateWhepOrWhip() {
|
||||
|
||||
_negotiate = make_shared<HttpRequester>();
|
||||
_negotiate->setMethod("POST");
|
||||
_negotiate->addHeader("Content-Type", "application/sdp");
|
||||
_negotiate->setBody(std::move(offer_sdp));
|
||||
_negotiate->startRequester(_url._negotiate_url, [weak_self](const toolkit::SockException &ex, const Parser &response) {
|
||||
auto strong_self = weak_self.lock();
|
||||
|
||||
Reference in New Issue
Block a user