新增无人观看自动关闭流(无须hook返回)功能 (#2643)

auto_close参数适用于配置文件、addStreamProxy接口、on_publish hook
This commit is contained in:
夏楚
2023-07-08 21:36:34 +08:00
committed by GitHub
parent e52c1cc510
commit beae515bb2
5 changed files with 28 additions and 2 deletions

View File

@@ -190,6 +190,10 @@ extern const std::string kModifyStamp;
extern const std::string kEnableAudio;
//添加静音音频,在关闭音频时,此开关无效
extern const std::string kAddMuteAudio;
// 无人观看时,是否直接关闭(而不是通过on_none_reader hook返回close)
// 此配置置1时此流如果无人观看将不触发on_none_reader hook回调
// 而是将直接关闭流
extern const std::string kAutoClose;
//断连续推延时,单位毫秒,默认采用配置文件
extern const std::string kContinuePushMS;