添加部分rtcp代码

This commit is contained in:
xiongziliang
2021-04-03 00:04:52 +08:00
parent a176cb83a8
commit e9c963dc82
2 changed files with 55 additions and 2 deletions

View File

@@ -10,6 +10,7 @@
#include "Poller/EventPoller.h"
#include "Network/Socket.h"
#include "Rtsp/RtspMediaSourceImp.h"
#include "Rtcp/RtcpContext.h"
using namespace toolkit;
using namespace mediakit;
@@ -139,6 +140,8 @@ private:
const RtcCodecPlan *plan;
const RtcMedia *media;
std::shared_ptr<RtpReceiverImp> receiver;
RtcpContext::Ptr rtcp_context_recv;
RtcpContext::Ptr rtcp_context_send;
};
void onSortedRtp(const RtpPayloadInfo &info,RtpPacket::Ptr rtp);
@@ -153,6 +156,7 @@ private:
mutable uint8_t _send_rtp_pt[2] = {0, 0};
RtspMediaSourceImp::Ptr _push_src;
unordered_map<uint8_t, RtpPayloadInfo> _rtp_receiver;
unordered_map<uint32_t, RtpPayloadInfo*> _ssrc_info;
Ticker _pli_ticker;
};