ConnectyCube / connectycube-reactnative-samples

Chat and Video Chat code samples for React Native, ConnectyCube
https://connectycube.com
Apache License 2.0
125 stars 111 forks source link

No resume for video call session #128

Closed georgessaroufim closed 3 years ago

georgessaroufim commented 3 years ago

During a video call, if i disconnect from wifi network and then turn it on, session is ended and its not resumed. Is there any way where i can set a timeout for retry connection so i can handle session if there is any network problem?

I got this log when turning off network then turn it on:

Screen Shot 2020-10-13 at 12 32 21 PM

Thank you in advance.

ccvlad commented 3 years ago

Hi @georgessaroufim The WebRTC connection is able to resume within 30 seconds interval and it will close after. Is your session able to resume if disconnect takes not more than 30 seconds?

georgessaroufim commented 3 years ago

Video call didn't resumed. I turn off wifi network for 5 secs then turn it on. After i turn it on, video still stuck.

ccvlad commented 3 years ago

I see, have tested on our VideoChat Sample. Seems it is an issue in our SDK. I am planning to create a task to fix the problem in next release.

Thank you for the report. We will let you know about the SDK release with the fix.

georgessaroufim commented 3 years ago

Appreciate your support.

ccvlad commented 3 years ago

Hi, @georgessaroufim

I was trying to solve, but didn't manage.

In a browser on a PC, reconnection works fine, where WebRTC gives a real 30 seconds for reconnection.

In React Native app and web-app for browser (mobile Chrome) iceCandidates get status "failed" after manual off/on Wi-Fi connection. Seams WebRTC is losing its iceCandidates after re-establishing the connection point. But WebRTC stream manage to continue if plug-out/plug-in an internet cable on a Wi-Fi router in a 30 second interval.