# What Caused Our Video Feed to Freeze on Rejoin

**URL:** <https://community.pexip.com/t/what-caused-our-video-feed-to-freeze-on-rejoin/1074>\
**Category:** JavaScript SDK\
**Created:** [July 28, 2025, 3:47am UTC](https://community.pexip.com/t/what-caused-our-video-feed-to-freeze-on-rejoin/1074 "2025-07-28T03:47:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tisabib](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@tisabib](https://community.pexip.com/u/tisabib)\
**Post date:** [July 28, 2025, 3:47am UTC](https://community.pexip.com/t/what-caused-our-video-feed-to-freeze-on-rejoin/1074/1 "2025-07-28T03:47:26Z")

</div>

Hello

We recently integrated the Pexip JavaScript SDK to embed videoconferencing in our app. 🙂 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. 😇

We weren’t sure if the issue was with media permissions, stale connections / something else in the SDK. 🙂

After debugging; we found the problem was due to not properly disposing of the `participant` & `conference` objects when users left the call. 🤔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](https://docs.pexip.com/files/v35/Pexip_Infinity_Administrator_Guide_v35.a.pdf) helped a lot in understanding how to correctly manage conference sessions. 🤔

For newer developers exploring SDKs like this and wondering [what is javascript](https://www.igmguru.com/blog/what-is-javascript), it’s the scripting language that powers dynamic web experiences including video, chat & real-time interactivity like this. 😇

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

Thank you !!
