mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[feat] receive and parse congestion control feedback supported
This commit is contained in:
33
src/rtcp/rtcp_packet/rtcp_packet_info.h
Normal file
33
src/rtcp/rtcp_packet/rtcp_packet_info.h
Normal 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
|
||||
Reference in New Issue
Block a user