feat(streamserver): Allow hiding the stream key

This commit is contained in:
Dmitrii Okunev
2024-10-16 16:35:34 +01:00
parent e37a330a03
commit ce70093117
32 changed files with 2248 additions and 1888 deletions

View File

@@ -107,7 +107,7 @@ func (srv *GRPCServer) newInputByURL(
_ *recoder_grpc.InputConfig,
) (*recoder_grpc.NewInputReply, error) {
config := recoder.InputConfig{}
input, err := recoder.NewInputFromURL(ctx, path.Url, config)
input, err := recoder.NewInputFromURL(ctx, path.Url.Url, path.Url.AuthKey, config)
if err != nil {
return nil, fmt.Errorf("unable to initialize an input using URL '%s' and config %#+v", path.Url, config)
}
@@ -161,7 +161,7 @@ func (srv *GRPCServer) newOutputByURL(
_ *recoder_grpc.OutputConfig,
) (*recoder_grpc.NewOutputReply, error) {
config := recoder.OutputConfig{}
output, err := recoder.NewOutputFromURL(ctx, path.Url, config)
output, err := recoder.NewOutputFromURL(ctx, path.Url.Url, path.Url.AuthKey, config)
if err != nil {
return nil, fmt.Errorf("unable to initialize an output using URL '%s' and config %#+v", path.Url, config)
}