Stream a Kit App#

  1. 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
    
  2. 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
    
  3. You can confirm that both of these are available by navigating to http://localhost:8080/docs and http://localhost:8081/docs in your browser.

    Warning

    Do not close these terminals. Leave them running and forwarding to your localhost while setting up and viewing your stream.

  4. 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:8080

    • appServer: http://localhost:8081

    Set appId, appVersion, and appProfile to match your deployed application. Refer to the generated README.md for configuration details.

  5. Run npm install, then npm run dev.

  6. Navigate to http://localhost:5173 in your browser to view the stream.