Skip to content

Commit 354fbe1

Browse files
update setupStream to return /process/stream urls
1 parent f7cc200 commit 354fbe1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

byoc/stream_gateway.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -493,19 +493,19 @@ func (bsg *BYOCGatewayServer) setupStream(ctx context.Context, r *http.Request,
493493
dataURL string
494494
)
495495

496-
updateURL := fmt.Sprintf("https://%s/ai/stream/%s/%s", bsg.node.GatewayHost, streamID, "update")
497-
statusURL := fmt.Sprintf("https://%s/ai/stream/%s/%s", bsg.node.GatewayHost, streamID, "status")
498-
stopURL := fmt.Sprintf("https://%s/ai/stream/%s/%s", bsg.node.GatewayHost, streamID, "stop")
496+
updateURL := fmt.Sprintf("https://%s/process/stream/%s/%s", bsg.node.GatewayHost, streamID, "update")
497+
statusURL := fmt.Sprintf("https://%s/process/stream/%s/%s", bsg.node.GatewayHost, streamID, "status")
498+
stopURL := fmt.Sprintf("https://%s/process/stream/%s/%s", bsg.node.GatewayHost, streamID, "stop")
499499

500500
if job.Job.Params.EnableVideoIngress {
501-
whipURL = fmt.Sprintf("https://%s/ai/stream/%s/%s", bsg.node.GatewayHost, streamID, "whip")
501+
whipURL = fmt.Sprintf("https://%s/process/stream/%s/%s", bsg.node.GatewayHost, streamID, "whip")
502502
rtmpURL = mediaMTXInputURL
503503
}
504504
if job.Job.Params.EnableVideoEgress {
505505
whepURL = generateWhepUrl(streamID, requestID)
506506
}
507507
if job.Job.Params.EnableDataOutput {
508-
dataURL = fmt.Sprintf("https://%s/ai/stream/%s/%s", bsg.node.GatewayHost, streamID, "data")
508+
dataURL = fmt.Sprintf("https://%s/process/stream/%s/%s", bsg.node.GatewayHost, streamID, "data")
509509
}
510510

511511
//if set this will overwrite settings above

0 commit comments

Comments
 (0)