Do not append the stream key to the ingress URL for rtmp

This commit is contained in:
Benjamin Pracht
2022-11-14 18:19:57 -08:00
parent 9f4e7ee4bd
commit 1ad9c9b32c
+1 -6
View File
@@ -3,7 +3,6 @@ package service
import (
"context"
"errors"
"fmt"
"time"
"google.golang.org/protobuf/proto"
@@ -75,7 +74,7 @@ func (s *IngressService) CreateIngressWithUrlPrefix(ctx context.Context, urlPref
IngressId: utils.NewGuid(utils.IngressPrefix),
Name: req.Name,
StreamKey: sk,
Url: newRtmpUrl(urlPrefix, sk),
Url: urlPrefix,
InputType: req.InputType,
Audio: req.Audio,
Video: req.Video,
@@ -321,7 +320,3 @@ func (s *IngressService) entitiesWorker() {
}
}
}
func newRtmpUrl(baseUrl string, ingressId string) string {
return fmt.Sprintf("%s/%s", baseUrl, ingressId)
}