[feat] receive and parse congestion control feedback supported

This commit is contained in:
dijunkun
2025-01-13 17:12:28 +08:00
parent 63ed77e43a
commit ba268016e4
15 changed files with 1112 additions and 7 deletions

View File

@@ -0,0 +1,33 @@
/*
* @Author: DI JUNKUN
* @Date: 2025-01-13
* Copyright (c) 2025 by DI JUNKUN, All Rights Reserved.
*/
#ifndef _PACKET_INFO_H_
#define _PACKET_INFO_H_
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <optional>
#include <vector>
#include "congestion_control_feedback.h"
struct RtcpPacketInfo {
uint32_t packet_type_flags = 0; // RTCPPacketTypeFlags bit field.
uint32_t remote_ssrc = 0;
std::vector<uint16_t> nack_sequence_numbers;
// std::vector<ReportBlockData> report_block_datas;
std::optional<int64_t> rtt;
uint32_t receiver_estimated_max_bitrate_bps = 0;
std::optional<CongestionControlFeedback> congestion_control_feedback;
// std::optional<VideoBitrateAllocation> target_bitrate_allocation;
// std::optional<NetworkStateEstimate> network_state_estimate;
// std::unique_ptr<rtcp::LossNotification> loss_notification;
};
#endif