Updated: March 11, 2025 |
This chapter explains how to use WebRTC. It includes troubleshooting instructions and the utility reference for webrtc-server-iosock.
The WebRTC server provides a unified multimedia interface to the QNX target, accessible through a browser on your local development host. The WebRTC server displays the virtual display outputs (i.e., WFD driver outputs) and handles the host-side inputs (i.e., keyboard, pointer, or touch). Since WebRTC is a peer-to-peer connection protocol, QNX cloud targets require a TURN server to facilitate connections to and from the host-side.
By default, the QNX cloud target automatically runs the webrtc-server-iosock WebRTC utility, so you can immediately access the WebRTC interface.
webrtc-server-iosock --external-ip=11.22.33.44The internal TURN server also consumes the target's resources. This may be undesirable for many reasons. For example, you don't want the TURN server network traffic to affect the performance of the QNX cloud target. You can view the status output using slog2info.
webrtc-server-iosock --turn_server=turn:<my-turn-server-address>:3478 --turn_user=<my-username>:<my-credentials>
For other webrtc-server-iosock options (e.g., --camera_name), go to the webrtc-server-iosock utility reference.
To access the server on the host side, use the URL https://<cloud_ip>:<port_number> on a host browser, where <cloud_ip> is the IP of the target and <port_number> is the port of the proxy server (default is 8443).
/usr/libexec/webrtc-operator-iosock
/usr/libexec/webrtc-operator-proxy-iosock
/usr/libexec/turnserver-iosock
webrtc-server-iosock --to_stdout
webrtc-server-iosock --verbose
webrtc-server-iosock --external-ip --turn_log_file="log.txt" --to_stdout --turn_verbose