mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
update gb28181 config wait_keyframe default on
This commit is contained in:
parent
01111a0d77
commit
23ce929048
3 changed files with 4 additions and 3 deletions
|
@ -319,7 +319,8 @@ stream_caster {
|
|||
rtp_port_min 58200;
|
||||
rtp_port_max 58300;
|
||||
# Whether wait for keyframe then forward to RTMP.
|
||||
wait_keyframe off;
|
||||
# default: on
|
||||
wait_keyframe on;
|
||||
# Max timeout in seconds for RTP stream, if timeout, RTCP bye and close stream.
|
||||
# default: 30
|
||||
rtp_idle_timeout 30;
|
||||
|
|
|
@ -36,7 +36,7 @@ stream_caster {
|
|||
# 是否等待关键帧之后,再转发,
|
||||
# off:不需等待,直接转发
|
||||
# on:等第一个关键帧后,再转发
|
||||
wait_keyframe off;
|
||||
wait_keyframe on;
|
||||
|
||||
# rtp包空闲等待时间,如果指定时间没有收到任何包
|
||||
# rtp监听连接自动停止,发送BYE命令
|
||||
|
|
|
@ -4543,7 +4543,7 @@ bool SrsConfig::get_stream_caster_gb28181_audio_enable(SrsConfDirective* conf)
|
|||
|
||||
bool SrsConfig::get_stream_caster_gb28181_wait_keyframe(SrsConfDirective* conf)
|
||||
{
|
||||
static bool DEFAULT = false;
|
||||
static bool DEFAULT = true;
|
||||
|
||||
if (!conf) {
|
||||
return DEFAULT;
|
||||
|
|
Loading…
Reference in a new issue