What Caused Our Video Feed to Freeze on Rejoin

Hello

We recently integrated the Pexip JavaScript SDK to embed videoconferencing in our app. :slightly_smiling_face: Everything worked great until a user left a meeting and then rejoined. In many cases; the video feed would freeze or fail to start after rejoining; even though audio & UI elements still worked fine. :innocent:

We werenโ€™t sure if the issue was with media permissions, stale connections / something else in the SDK. :slightly_smiling_face:

After debugging; we found the problem was due to not properly disposing of the participant & conference objects when users left the call. :thinking:The old instance was interfering with the reinitialization. Calling conference.disconnect() followed by a complete cleanup before rejoining fixed it.

This Pexip SDK Lifecycle Guide helped a lot in understanding how to correctly manage conference sessions. :thinking:

For newer developers exploring SDKs like this and wondering what is javascript, itโ€™s the scripting language that powers dynamic web experiences including video, chat & real-time interactivity like this. :innocent:

If anyone has tips for better managing participant state on rejoin, I would love to hear them!

Thank you !!