[feat] add nack module

This commit is contained in:
dijunkun
2025-02-12 17:35:59 +08:00
parent 36704c7e4c
commit 1db57bfc76
8 changed files with 421 additions and 5 deletions

View File

@@ -20,7 +20,10 @@ RtpVideoReceiver::RtpVideoReceiver(std::shared_ptr<Clock> clock)
[this](int64_t bitrate_bps, std::vector<uint32_t> ssrcs) {
SendRemb(bitrate_bps, ssrcs);
}),
clock_(clock) {
clock_(clock),
rtcp_feedback_buffer_(this, this, this),
nack_(std::make_unique<NackRequester>(clock, &rtcp_feedback_buffer_,
&rtcp_feedback_buffer_)) {
SetPeriod(std::chrono::milliseconds(5));
// rtcp_thread_ = std::thread(&RtpVideoReceiver::RtcpThread, this);
}
@@ -37,7 +40,10 @@ RtpVideoReceiver::RtpVideoReceiver(std::shared_ptr<Clock> clock,
[this](int64_t bitrate_bps, std::vector<uint32_t> ssrcs) {
SendRemb(bitrate_bps, ssrcs);
}),
clock_(clock) {
clock_(clock),
rtcp_feedback_buffer_(this, this, this),
nack_(std::make_unique<NackRequester>(clock, &rtcp_feedback_buffer_,
&rtcp_feedback_buffer_)) {
SetPeriod(std::chrono::milliseconds(5));
// rtcp_thread_ = std::thread(&RtpVideoReceiver::RtcpThread, this);