mirror of
https://github.com/datarhei/core.git
synced 2025-09-26 20:11:29 +08:00
Use new streamid format for {srt} placeholder
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user