mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #307, refine RTC latency from 600ms to 200ms. 4.0.20
This commit is contained in:
parent
5144794044
commit
573449f1b0
7 changed files with 51 additions and 17 deletions
|
@ -421,6 +421,14 @@ vhost rtc.vhost.srs.com {
|
|||
# default: transcode
|
||||
aac transcode;
|
||||
}
|
||||
# whether enable min delay mode for vhost.
|
||||
# For RTC, we recommend to set to on.
|
||||
min_latency on;
|
||||
play {
|
||||
# set the MW(merged-write) latency in ms.
|
||||
# For RTC, we recommend lower value, such as 0.
|
||||
mw_latency 0;
|
||||
}
|
||||
}
|
||||
|
||||
#############################################################################################
|
||||
|
@ -444,7 +452,8 @@ vhost scope.vhost.srs.com {
|
|||
# 1. disable the publish.mr for vhost.
|
||||
# 2. use timeout for cond wait for consumer queue.
|
||||
# @see https://github.com/ossrs/srs/issues/257
|
||||
# default: off
|
||||
# default: off (for RTMP/HTTP-FLV)
|
||||
# default: on (for WebRTC)
|
||||
min_latency off;
|
||||
|
||||
# whether enable the TCP_NODELAY
|
||||
|
@ -645,7 +654,8 @@ vhost play.srs.com {
|
|||
# SRS always set mw on, so we just set the latency value.
|
||||
# the latency of stream >= mw_latency + mr_latency
|
||||
# the value recomment is [300, 1800]
|
||||
# default: 350
|
||||
# default: 350 (for RTMP/HTTP-FLV)
|
||||
# default: 0 (for WebRTC)
|
||||
mw_latency 350;
|
||||
|
||||
# the minimal packets send interval in ms,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue