mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[feat] update qos module
This commit is contained in:
@@ -72,7 +72,7 @@ void RtpVideoReceiver::InsertRtpPacket(RtpPacket& rtp_packet) {
|
||||
|
||||
rtcp_rr.Encode();
|
||||
|
||||
// SendRtcpRR(rtcp_rr);
|
||||
SendRtcpRR(rtcp_rr);
|
||||
}
|
||||
if (rtp_packet.PayloadType() == RtpPacket::PAYLOAD_TYPE::AV1) {
|
||||
ProcessAv1RtpPacket(rtp_packet);
|
||||
@@ -371,7 +371,7 @@ void RtpVideoReceiver::RtcpThread() {
|
||||
if (rtcp_stop_) break;
|
||||
send_rtcp_rr_triggered_ = false;
|
||||
} else {
|
||||
LOG_ERROR("Send video tcc");
|
||||
// LOG_ERROR("Send video tcc");
|
||||
auto now = std::chrono::steady_clock::now();
|
||||
auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||
now - last_send_rtcp_rr_ts_)
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#include "fec_decoder.h"
|
||||
#include "io_statistics.h"
|
||||
#include "receive_side_congestion_controller.h"
|
||||
#include "ringbuffer.h"
|
||||
#include "rtcp_receiver_report.h"
|
||||
#include "rtp_codec.h"
|
||||
@@ -83,6 +84,9 @@ class RtpVideoReceiver : public ThreadBase {
|
||||
std::atomic<bool> rtcp_stop_ = false;
|
||||
int rtcp_rr_interval_ms_ = 5000;
|
||||
int rtcp_tcc_interval_ms_ = 200;
|
||||
|
||||
private:
|
||||
ReceiveSideCongestionController congestion_controller_;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -15,7 +15,7 @@ class RtpPacketReceived : public RtpPacket {
|
||||
public:
|
||||
RtpPacketReceived();
|
||||
explicit RtpPacketReceived(
|
||||
int64_t arrival_time = std::numeric_limits<int64_t>::min());
|
||||
int64_t arrival_time = (std::numeric_limits<int64_t>::min)());
|
||||
RtpPacketReceived(const RtpPacketReceived& packet);
|
||||
RtpPacketReceived(RtpPacketReceived&& packet);
|
||||
|
||||
@@ -25,7 +25,7 @@ class RtpPacketReceived : public RtpPacket {
|
||||
~RtpPacketReceived();
|
||||
|
||||
private:
|
||||
int64_t arrival_time_ = std::numeric_limits<int64_t>::min();
|
||||
int64_t arrival_time_ = (std::numeric_limits<int64_t>::min)();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user