startSendRtp接口支持rtcp接收超时主动停止

This commit is contained in:
xiongziliang
2022-08-20 12:48:27 +08:00
parent b7ef766701
commit 9f0c15a4f0
7 changed files with 155 additions and 27 deletions

View File

@@ -111,6 +111,15 @@ public:
uint16_t dst_port;
// 发送目标主机地址可以是ip或域名
std::string dst_url;
//udp发送时是否开启rr rtcp接收超时判断
bool udp_rtcp_timeout = false;
//tcp被动发送服务器延时关闭事件单位毫秒
uint32_t tcp_passive_close_delay_ms = 5 * 1000;
//udp 发送时rr rtcp包接收超时时间单位毫秒
uint32_t rtcp_timeout_ms = 30 * 1000;
//udp 发送时发送sr rtcp包间隔单位毫秒
uint32_t rtcp_send_interval_ms = 5 * 1000;
};
// 开始发送ps-rtp