新增平滑发送逻辑 (#3072)

This commit is contained in:
夏楚
2023-12-02 10:20:06 +08:00
committed by GitHub
parent 00e6ca3f79
commit 21c03f772f
7 changed files with 117 additions and 1 deletions

View File

@@ -161,6 +161,10 @@ public:
//断连续推延时,单位毫秒,默认采用配置文件
uint32_t continue_push_ms;
// 平滑发送定时器间隔单位毫秒置0则关闭开启后影响cpu性能同时增加内存
// 该配置开启后可以解决一些流发送不平滑导致zlmediakit转发也不平滑的问题
uint32_t paced_sender_ms;
//是否开启转换为hls(mpegts)
bool enable_hls;
//是否开启转换为hls(fmp4)
@@ -213,6 +217,7 @@ public:
GET_OPT_VALUE(add_mute_audio);
GET_OPT_VALUE(auto_close);
GET_OPT_VALUE(continue_push_ms);
GET_OPT_VALUE(paced_sender_ms);
GET_OPT_VALUE(enable_hls);
GET_OPT_VALUE(enable_hls_fmp4);