How to cancel joining a session?

Michael
Mon, 16 Mar 2026 22:37:41 +0000
Video SDK

Video SDK Type and Version

Android 2.2.5, but applicable to newer.

Description
After calling sdk.joinSession(sessionContext)how can I cancel the join?

An example use case is where a timeout is implemented if the session takes a long time to join. We’d like to know that the sdk won’t connect to a session later on.

An alternative situation, a user initiates joining a call, but then navigates back and as the view is destructed the cleanup would have called sdk.leaveSession(false). Would that cancel an in-progress joinSession or would we end up with an orphaned session?

Thanks,
Michael

9 posts - 3 participants