27 lines
950 B
C++
27 lines
950 B
C++
#ifndef SRCCTL_CC_RTCP_H
|
||
#define SRCCTL_CC_RTCP_H
|
||
|
||
#include <cstdint>
|
||
|
||
namespace CTL{
|
||
// 示例:发送者报告(SR)和接收者报告(RR)的结构体(简化版)
|
||
struct SenderReport {
|
||
uint32_t ssrc; // 同步源标识符
|
||
uint32_t ntp_timestamp; // 网络时间协议时间戳
|
||
uint32_t rtp_timestamp; // RTP时间戳
|
||
uint32_t packet_count; // 发送的RTP包数量
|
||
uint32_t octet_count; // 发送的RTP字节总量
|
||
};
|
||
|
||
struct ReceiverReport {
|
||
uint32_t ssrc; // 同步源标识符
|
||
float fraction_lost; // 丢包率
|
||
uint32_t cumulative_lost; // 累计丢包数
|
||
uint32_t highest_seq_num; // 已接收的最大序列号
|
||
uint32_t jitter; // 抖动
|
||
uint32_t lsr; // 最后一次SR报告的NTP中间32位
|
||
uint32_t dlsr; // 延迟自SR以来的时间
|
||
};
|
||
}
|
||
|
||
#endif |