Do not append the stream key to the ingress URL for rtmp (#1167)

This commit is contained in:
Benjamin Pracht
2022-11-15 09:19:25 -08:00
committed by GitHub
parent a72cbea352
commit 2c2c6f9da2
+1 -6
View File
@@ -3,7 +3,6 @@ package service
import ( import (
"context" "context"
"errors" "errors"
"fmt"
"time" "time"
"google.golang.org/protobuf/proto" "google.golang.org/protobuf/proto"
@@ -75,7 +74,7 @@ func (s *IngressService) CreateIngressWithUrlPrefix(ctx context.Context, urlPref
IngressId: utils.NewGuid(utils.IngressPrefix), IngressId: utils.NewGuid(utils.IngressPrefix),
Name: req.Name, Name: req.Name,
StreamKey: sk, StreamKey: sk,
Url: newRtmpUrl(urlPrefix, sk), Url: urlPrefix,
InputType: req.InputType, InputType: req.InputType,
Audio: req.Audio, Audio: req.Audio,
Video: req.Video, 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)
}