1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #299, increase dash segment size for avsync issue. 3.0.89

This commit is contained in:
winlin 2019-12-29 18:21:45 +08:00
parent d11a7b2e00
commit 8a28a11648
7 changed files with 101 additions and 67 deletions

View file

@ -5810,7 +5810,7 @@ bool SrsConfig::get_dash_enabled(string vhost)
srs_utime_t SrsConfig::get_dash_fragment(string vhost)
{
static int DEFAULT = 3 * SRS_UTIME_SECONDS;
static int DEFAULT = 30 * SRS_UTIME_SECONDS;
SrsConfDirective* conf = get_dash(vhost);
if (!conf) {
@ -5827,7 +5827,7 @@ srs_utime_t SrsConfig::get_dash_fragment(string vhost)
srs_utime_t SrsConfig::get_dash_update_period(string vhost)
{
static srs_utime_t DEFAULT = 30 * SRS_UTIME_SECONDS;
static srs_utime_t DEFAULT = 150 * SRS_UTIME_SECONDS;
SrsConfDirective* conf = get_dash(vhost);
if (!conf) {
@ -5844,7 +5844,7 @@ srs_utime_t SrsConfig::get_dash_update_period(string vhost)
srs_utime_t SrsConfig::get_dash_timeshift(string vhost)
{
static srs_utime_t DEFAULT = 60 * SRS_UTIME_SECONDS;
static srs_utime_t DEFAULT = 300 * SRS_UTIME_SECONDS;
SrsConfDirective* conf = get_dash(vhost);
if (!conf) {