You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* OS: iOS, Android, MacOS
* Unity version: Unity 2022.3, Unity 2023.1
* Graphics API:
* Browser: Safari, Chrome
The webserver is running on Linux (Debian 11)
Steps To Reproduce
Download the sample Render Streaming WebApp
Setup on Linux and start it with https (and private)
Open Bidirectional sample - peer 1 (Windows PC Chrome), peer 2 (iPhone Safari)
Enter the same connection id and make a connection
Wait 2-5 minutes and the connection freezes
Current Behavior
After 2-5 minutes upon making a connection between the two peers, the stream freezes.
Expected Behavior
The connection should stay after 5 minutes as long as it needs to stay alive.
Anything else?
Additional information about the issue:
We tried using stun and turn with the same result. Usually it keeps happening more often when using a turn, but we also experienced it with stun only. But this issue seems very random and hard to make a pattern when exactly is happening.
We noticed that it happens for us every time on iPhone (Safari) while on Wifi. And if we use mobile data, the stream does not freeze. But that's for our network. It's not always the case for different network.
From the client logs we see in peer.js that pc.oniceconnectionstatechange event fires with pc.iceConnectionState = "disconnected" right when the freeze occurs, but I'm not sure if this helps us in any way.
Also we have the sample as a starting point and modified it for our product, but the issue appears in both versions of the webapp (ours and the original sample).
Thank you!
The text was updated successfully, but these errors were encountered:
It turns out the websocket disconnects after timeout (the default is 300s) if it's not used. For our use case we fixed it by sending keep alive messages from the web client.
Package version
3.1.0-exp.7
Environment
Steps To Reproduce
Current Behavior
After 2-5 minutes upon making a connection between the two peers, the stream freezes.
Expected Behavior
The connection should stay after 5 minutes as long as it needs to stay alive.
Anything else?
Additional information about the issue:
peer.js
thatpc.oniceconnectionstatechange
event fires withpc.iceConnectionState = "disconnected"
right when the freeze occurs, but I'm not sure if this helps us in any way.Thank you!
The text was updated successfully, but these errors were encountered: