I am working on a kit app and trying to stream it to a remote pc using the webrtc
client extension. The following are the environmental details.
The kit app version is 105.1
The extension version is omni.services.streamclient.webrtc-1.3.8
Host pc details are as follows.
Cpu: Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
Ram: 32GB
GPU: Nvidia Tesla T4
I have a turn server configured using coturn on the same machine as the kit app.
The turnserver.conf is set to below:
listening-port=3478
fingerprint
no-auth
realm=x.x.x.x
total-quota=1000000
no-stdout-log
no-loopback-peers
no-multicast-peers
cli-password=1234
log-file=C:\Coturn\coturn.log
listening-ip= x.x.x.x
relay-ip= x.x.x.x
Issue 1: The remote pc is initially connecting successfully with the stream. But then
after 40 seconds, the stream gets disconnected and I can see the following
messages on the browser console.
Error message 1:
TypeError: Failed to execute ‘getStats’ on ‘RTCPeerConnection’: parameter 1 is not of
type ‘MediaStreamTrack’.
at t.ClientStatsService.saveDeprecatedStats (kit-player.js:151:7769)
at kit-player.js:151:2911
saveDeprecatedStats @ kit-player.js:151
Error message 2:
kit-player.js:109 2024-06-18 18:46:51.438 WARN [streamclient] Ice candidate error,
host: 0.0.0.x:61010, stun server: stun:stun.l.google.com:19305, error: 701 STUN
binding request timed out.@@
The first error message is display continuously since the startup but the 2nd error
message only appears just before the disconnection.
I am using the following bat script to startup the kit with webrtc extension.
.\kit\kit.exe apps/my_name.my_app.kit^
–/app/window/dpiScaleOverride=1.0^
–/app/livestream/allowResize=true^
–enable omni.services.streamclient.webrtc^
–/exts/omni.services.streamclient.webrtc/ice_servers/1/urls/0=“turn:public_ip:3478?
transport=udp”^
–/exts/omni.services.streamclient.webrtc/ice_servers/1/urls/1=“turn:
public_ip:3478?transport=tcp”
Issue 2: When configuring a turnserver up on AWS instead of locally, the stream
does not even connect at all.
If you could help resolve this problems I would greatly appreciate it.