Skip to content

Commit 17357af

Browse files
add comment re authtoken check
1 parent 6776014 commit 17357af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/ai_live_video.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ func startTricklePublish(ctx context.Context, url *url.URL, params aiRequestPara
8282
ctx, cancel := context.WithCancel(ctx)
8383
priceInfo := sess.OrchestratorInfo.PriceInfo
8484
var paymentProcessor *LivePaymentProcessor
85+
// Only start payment processor if we have valid price info and auth token
86+
// BYOC does not require AuthToken for payment, so this will skip the live payment processor for BYOC streaming
8587
if priceInfo != nil && priceInfo.PricePerUnit != 0 && sess.OrchestratorInfo.AuthToken != nil {
8688
paymentSender := livePaymentSender{}
8789
sendPaymentFunc := func(inPixels int64) error {

0 commit comments

Comments
 (0)