mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-23 09:22:21 +08:00
增加 RtcpContextForSend/RtcpContextForRecv作为RtcpContext子类
This commit is contained in:
@@ -179,7 +179,7 @@ void RtspPusher::sendAnnounce() {
|
||||
}
|
||||
_rtcp_context.clear();
|
||||
for (auto &track : _track_vec) {
|
||||
_rtcp_context.emplace_back(std::make_shared<RtcpContext>(false));
|
||||
_rtcp_context.emplace_back(std::make_shared<RtcpContextForSend>());
|
||||
}
|
||||
_on_res_func = std::bind(&RtspPusher::handleResAnnounce, this, placeholders::_1);
|
||||
sendRtspRequest("ANNOUNCE", _url, {}, src->getSdp());
|
||||
|
||||
Reference in New Issue
Block a user