SRT: Default to request for VLC. #4515
This commit is contained in:
parent
702a58df6a
commit
71302c4a77
|
|
@ -693,8 +693,8 @@ srt_server {
|
||||||
# This is used when SRT client connects without setting SRTO_STREAMID socket option.
|
# 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
|
# The streamid format follows SRT standard: #!::r=app/stream,m=publish|request
|
||||||
# Overwrite by env SRS_SRT_SERVER_DEFAULT_STREAMID
|
# Overwrite by env SRS_SRT_SERVER_DEFAULT_STREAMID
|
||||||
# default: #!::r=live/livestream,m=publish
|
# default: #!::r=live/livestream,m=request
|
||||||
default_streamid "#!::r=live/livestream,m=publish";
|
default_streamid "#!::r=live/livestream,m=request";
|
||||||
# The peerlatency is set by the sender side and will notify the receiver side.
|
# The peerlatency is set by the sender side and will notify the receiver side.
|
||||||
# Overwrite by env SRS_SRT_SERVER_PEERLATENCY
|
# Overwrite by env SRS_SRT_SERVER_PEERLATENCY
|
||||||
# default: 0
|
# default: 0
|
||||||
|
|
|
||||||
|
|
@ -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
|
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");
|
SrsConfDirective *conf = root_->get("srt_server");
|
||||||
if (!conf) {
|
if (!conf) {
|
||||||
return DEFAULT;
|
return DEFAULT;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user