From 71302c4a77a96aae658aa7f29c82ae47a0bea9af Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 3 Oct 2025 15:27:03 -0400 Subject: [PATCH] SRT: Default to request for VLC. #4515 --- trunk/conf/full.conf | 4 ++-- trunk/src/app/srs_app_config.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/conf/full.conf b/trunk/conf/full.conf index d69c20aa8..503c19199 100644 --- a/trunk/conf/full.conf +++ b/trunk/conf/full.conf @@ -693,8 +693,8 @@ srt_server { # This is used when SRT client connects without setting SRTO_STREAMID socket option. # The streamid format follows SRT standard: #!::r=app/stream,m=publish|request # Overwrite by env SRS_SRT_SERVER_DEFAULT_STREAMID - # default: #!::r=live/livestream,m=publish - default_streamid "#!::r=live/livestream,m=publish"; + # default: #!::r=live/livestream,m=request + default_streamid "#!::r=live/livestream,m=request"; # The peerlatency is set by the sender side and will notify the receiver side. # Overwrite by env SRS_SRT_SERVER_PEERLATENCY # default: 0 diff --git a/trunk/src/app/srs_app_config.cpp b/trunk/src/app/srs_app_config.cpp index 86b8500b0..8f6e8bb22 100644 --- a/trunk/src/app/srs_app_config.cpp +++ b/trunk/src/app/srs_app_config.cpp @@ -7621,7 +7621,7 @@ string SrsConfig::get_srt_default_streamid() { SRS_OVERWRITE_BY_ENV_STRING("srs.srt_server.default_streamid"); // SRS_SRT_SERVER_DEFAULT_STREAMID - static string DEFAULT = "#!::r=live/livestream,m=publish"; + static string DEFAULT = "#!::r=live/livestream,m=request"; SrsConfDirective *conf = root_->get("srt_server"); if (!conf) { return DEFAULT;