增加 RtcpContextForSend/RtcpContextForRecv作为RtcpContext子类

This commit is contained in:
Johnny
2021-10-13 15:06:13 +08:00
parent 290b3f37a5
commit c98e85caec
7 changed files with 52 additions and 42 deletions

View File

@@ -23,11 +23,11 @@ RtpServer::~RtpServer() {
}
}
class RtcpHelper : public RtcpContext, public std::enable_shared_from_this<RtcpHelper> {
class RtcpHelper : public RtcpContextForRecv, public std::enable_shared_from_this<RtcpHelper> {
public:
using Ptr = std::shared_ptr<RtcpHelper>;
RtcpHelper(Socket::Ptr rtcp_sock, uint32_t sample_rate) : RtcpContext(true){
RtcpHelper(Socket::Ptr rtcp_sock, uint32_t sample_rate) {
_rtcp_sock = std::move(rtcp_sock);
_sample_rate = sample_rate;
}