Stream a Kit App#
To port forward the streaming service to your localhost, run:
$ kubectl --cluster <AKS-CLUSTER-NAME> --namespace omni-streaming port-forward svc/streaming 8080:80 Forwarding from 127.0.0.1:8080 -> 8080 Forwarding from [::1]:8080 -> 8080
In a new terminal, port forward the applications service to your localhost on a different port:
$ kubectl --cluster <AKS-CLUSTER-NAME> --namespace omni-streaming port-forward svc/applications 8081:80 Forwarding from 127.0.0.1:8080 -> 8080 Forwarding from [::1]:8080 -> 8080
You can confirm that both of these are available by navigating to
http://localhost:8080/docsandhttp://localhost:8081/docsin your browser.Warning
Do not close these terminals. Leave them running and forwarding to your localhost while setting up and viewing your stream.
Scaffold a web client using Create OV WebRTC App with the OKAS stream source:
Scaffold OV WebRTC application#npx @nvidia/create-ov-web-rtc-app --name my-okas-client --sample okas-sample
In the generated project, configure the stream server to point to your port-forwarded endpoints:
streamServer:http://localhost:8080appServer:http://localhost:8081
Set
appId,appVersion, andappProfileto match your deployed application. Refer to the generatedREADME.mdfor configuration details.Run
npm install, thennpm run dev.Navigate to
http://localhost:5173in your browser to view the stream.