Skip to content

Commit

Permalink
DASH: Add config description to full.conf.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Jun 19, 2024
1 parent 15a9427 commit ef433a0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions trunk/conf/full.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1758,6 +1758,21 @@ vhost dash.srs.com {
# Overwrite by env SRS_VHOST_DASH_DASH_MPD_FILE for all vhosts.
# Default: [app]/[stream].mpd
dash_mpd_file [app]/[stream].mpd;
# The dash windows size in seconds.
# Overwrite by env SRS_VHOST_DASH_DASH_WINDOW_SIZE for all vhosts.
# Default: 5
dash_window_size 5;
# whether cleanup the old expired dash files.
# Overwrite by env SRS_VHOST_DASH_DASH_CLEANUP for all vhosts.
# default: on
dash_cleanup on;
# If there is no incoming packets, dispose DASH in this timeout in seconds,
# which removes all DASH files including m3u8 and ts files.
# @remark 0 to disable dispose for publisher.
# @remark apply for publisher timeout only, while "etc/init.d/srs stop" always dispose DASH.
# Overwrite by env SRS_VHOST_DASH_DASH_DISPOSE for all vhosts.
# default: 120
dash_dispose 120;
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/src/app/srs_app_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6863,7 +6863,7 @@ srs_utime_t SrsConfig::get_dash_dispose(std::string vhost)
{
SRS_OVERWRITE_BY_ENV_SECONDS("srs.vhost.dash.dash_dispose"); // SRS_VHOST_DASH_DASH_DISPOSE

static srs_utime_t DEFAULT = 0;
static srs_utime_t DEFAULT = 120;

SrsConfDirective* conf = get_dash(vhost);
if (!conf) {
Expand Down

0 comments on commit ef433a0

Please sign in to comment.