Do not append the stream key to the ingress URL for rtmp (#1167)
This commit is contained in:
@@ -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)
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user