Question
What should I do if a session is disconnected?
Applies To
- Auto-Reconnection
- Sessions
- Video API
Answer
Auto-reconnection is a feature that is inherent in our SDKs. Once a call is disconnected due to certain reasons (wifi switch to mobile data, network failure, etc.), the platform will try to reconnect the user within 30 secs and will try multiple times until it is not able to do so.
One caveat to this feature is that while the platform reconnection feature works most of the time, it may not work all of the time. The performance relies mostly on the underlying network conditions and can vary from network to network. Different network settings, configurations, and applications influence the varying results of this feature.
Sometimes reconnects may fail, and if this happens, as a best practice, the Client Application is recommended to handle the auto-reconnection in order to bridge the gap with these network scenarios and ensure to auto-reconnect its calls. The Client Application is recommended to listen to the SessionDisconnectEvent and perform a manual reconnection upon receiving this event.
Additional Information
The below documentation describes the different events handled during reconnections. This would help to better manage reconnections in the Client applications.
Articles in this section
- What is Single Peer Connection (SPC) and How do I enable it?
- How do I enable or disable Scalable Video for my video project or application?
- What are the Vonage Video API network connectivity requirements?
- OpenTok Pre-Call test, Network test, and getStats() API
- Is there any way to test my network configuration?
- Can I use Vonage Video API in a restricted network environment?
- Is it possible to deploy a TURN server inside the corporate network or DMZ?
- Does Vonage Video API provide server infrastructure?
- What are the IP ranges for Vonage Video API servers?
- What is the minimum bandwidth requirement to use the Vonage Video API?