twilio / video-quickstart-android

Twilio Video Quickstart for Android
MIT License
212 stars 159 forks source link

How to reconnect same room after disconnected due to internet not availability ? #713

Closed bhavyahmehta closed 10 months ago

bhavyahmehta commented 2 years ago

Description

After video room connection successfully established, if network is not available then onReconnecting listener of Room.Listener gets called for some time. And after that onDisconnected gets called with twilioException code 53002.

My question is how to reconnect same room after network available?

Steps to Reproduce

  1. Start video room with some/none participants.
  2. Turn of internet connection then control goes to onReconnecting and after some time onDisconnected.
  3. after internet available if I try to re connect with same room then it is not working properly.

Code

// Code that help reproduce the issue

Expected Behavior

Same room should reconnect successfully after network failed.

Actual Behavior

Same room not reconnect successfully after network failed.

Reproduces how Often

100%

Logs

com.twilio.video.TwilioException: Signaling connection timed out

Versions

All relevant version information for issue.

Video Android SDK

com.twilio:video-android:7.0.1

Android API

12

Android Device

Pixel 4a

afalls-twilio commented 1 year ago

@bhavyahmehta thank you for the bug report. If this is still an issue, can you please capture the ADB logs and provide them? I suspect that the timeout period for attempting reconnections is shorter than the period of time it takes for the user to re-enable the network and the device to subsequently connect to it.

afalls-twilio commented 10 months ago

closing due to inactivity.