Open elie-chaaban opened 10 months ago
How much time do you consider too much time and why? Keeping the 2nd user around for a while makes for a cleaner reconnection experience should the first user come back to the session.
It takes more than 40 seconds which is too much no?
okay makes sense but how can I show the user is disconnected? sessionDisconnected is fired even if stream is destroyed or session is destroyed
@rhainer let me know plz
I'm the same issue. Moreover, I receive "streamDestroy" that breaks the publisher of the second user.
Hi @ticovix @elie-chaaban, Related to: https://github.com/opentok/opentok-react-native/issues/686 Which version are you using? We have deployed a fix in 2.26.0 regarding socket disconnection.
I m u sing the latest
I want to have like an event to show the other user that the user is disconnected.
The freeze btw only happens if I kill the app directly
Actually, that's expected. We have a reconnection feature. If you don't leave the session properly by calling session.disconnect
method before leaving the session, the connection will be destroyed only after 30 seconds. This delay is in place in case the user reconnects to the session during that time.
Yeah I don't call this at all, how can I show the user that the other is disconnected and stop the video freeze. If I use session disconnected, this event is even called when I end the call after stream destoyed or session destroyed.
On whatsapp when I kill the app, the other has the call directly disconnected. I dont mind the 30 secs if I can catch this to show the user
@elie-chaaban are you using version 2.26.0+ ? I'm using 2.25.2 and my crashlytics logs shows a bunch of connection error related crashes..
@vona-ben does the 2.26.X versions fix this connection error?
otk_peer_connection_manager::collect_garbage()
I use the latest release
@vona-ben I'm not seeing session.disconnect
anywhere in the docs for react-native SDK https://www.tokbox.com/developer/sdks/react-native/reference/OTSession.html
The only reference I see to disconnecting is this
To disconnect the session, unmount the OTSession component
but just unmounting and disconnecting this way causes the other user to see a frozen frame for way too long. Is there a way to explicitly disconnect from the session with react-native? I see all the other SDKs in the docs have disconnect functions available.
Please post usage questions or broader discussions on StackOverflow.
For feature requests, please fill out the feature request template
For bug reports, please fill out the bug report issue template