mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-23 01:57:50 +08:00
修改不录像的设备的无人观看时长为130秒,以后就不需要改配置文件了。
This commit is contained in:
parent
272b65bb4e
commit
60ef4f50c8
@ -94,7 +94,7 @@ maxStreamWaitMS=15000
|
||||
#某个流无人观看时,触发hook.on_stream_none_reader事件的最大等待时间,单位毫秒
|
||||
#在配合hook.on_stream_none_reader事件时,可以做到无人观看自动停止拉流或停止接收推流
|
||||
streamNoneReaderDelayMS=20000
|
||||
noRecordStreamNoneReaderDelayMS=2000
|
||||
noRecordStreamNoneReaderDelayMS=130000
|
||||
#拉流代理时如果断流再重连成功是否删除前一次的媒体流数据,如果删除将重新开始,
|
||||
#如果不删除将会接着上一次的数据继续写(录制hls/mp4时会继续在前一个文件后面写)
|
||||
resetWhenRePlay=1
|
||||
|
||||
@ -80,7 +80,7 @@ const string kUnreadyFrameCache = GENERAL_FIELD "unready_frame_cache";
|
||||
static onceToken token([]() {
|
||||
mINI::Instance()[kFlowThreshold] = 1024;
|
||||
mINI::Instance()[kStreamNoneReaderDelayMS] = 20 * 1000;
|
||||
mINI::Instance()[kNoRecordStreamNoneReaderDelayMS] = 20 * 1000;
|
||||
mINI::Instance()[kNoRecordStreamNoneReaderDelayMS] = 130 * 1000;
|
||||
mINI::Instance()[kMaxStreamWaitTimeMS] = 15 * 1000;
|
||||
mINI::Instance()[kEnableVhost] = 0;
|
||||
mINI::Instance()[kResetWhenRePlay] = 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user