Fix RTMP and SRT URL generation in placeholder

This commit is contained in:
Ingo Oppermann
2023-06-15 14:19:02 +02:00
parent 22fd241b89
commit 3cc8626ae1

View File

@@ -968,7 +968,7 @@ func (a *api) start() error {
}
u := &url.URL{
Scheme: "rtmp:",
Scheme: "rtmp",
Host: host + ":" + port,
Path: "/",
}
@@ -1011,7 +1011,7 @@ func (a *api) start() error {
}
u := srturl.URL{
Scheme: "srt:",
Scheme: "srt",
Host: host + ":" + port,
}
@@ -1024,6 +1024,8 @@ func (a *api) start() error {
options.Set("passphrase", cfg.SRT.Passphrase)
}
u.Options = options
streamid := srturl.StreamInfo{}
if section == "output" {
@@ -1052,6 +1054,8 @@ func (a *api) start() error {
streamid.Token = identity.GetServiceToken()
}
u.StreamId = streamid.String()
return u.String()
}, map[string]string{
"name": "",