Use new streamid format for {srt} placeholder

This commit is contained in:
Ingo Oppermann
2022-11-22 21:25:54 +01:00
parent cae5f4c973
commit 18be75d013

View File

@@ -468,9 +468,9 @@ func (a *api) start() error {
host = "localhost" host = "localhost"
} }
template = "srt://" + host + ":" + port + "?mode=caller&transtype=live&streamid=#!:m={mode},r={name}" template = "srt://" + host + ":" + port + "?mode=caller&transtype=live&streamid={name},mode:{mode}"
if len(cfg.SRT.Token) != 0 { if len(cfg.SRT.Token) != 0 {
template += ",token=" + cfg.SRT.Token template += ",token:" + cfg.SRT.Token
} }
if len(cfg.SRT.Passphrase) != 0 { if len(cfg.SRT.Passphrase) != 0 {
template += "&passphrase=" + cfg.SRT.Passphrase template += "&passphrase=" + cfg.SRT.Passphrase