livekit / client-sdk-android

LiveKit SDK for Android
https://docs.livekit.io
Apache License 2.0
169 stars 68 forks source link

Adjustable Reconnecting times and retries. #284

Open wissa-b opened 11 months ago

wissa-b commented 11 months ago

Is your feature request related to a problem? Please describe.

When the room tries to reconnect, it has a fixed amount of retries and a fixed reconnect retries. That causes users to be kicked outside of the room if they are in a bad network place for more than a minute MAX_RECONNECT_TIMEOUT then the user will be disconnected.

Describe the solution you'd like We would like to have a configuration to adjust the reconnect attempts count, or the reconnect attempt delay. For example on iOS sdk these are properties in the ConnectOptions class

Describe alternatives you've considered For example a solution would have been able to override these values in the RTCEngine companion object class.

        private const val MAX_RECONNECT_RETRIES = 10
        private const val MAX_RECONNECT_TIMEOUT = 60 * 1000
        private const val MAX_ICE_CONNECT_TIMEOUT_MS = 20000
wzJun1 commented 11 months ago

same problem

kaushaldeepkiran commented 5 days ago

Please allow Reconnect Configuration options for Room.