I’m using videoroom and the issue I’m having is that when I call .destroy when a user wants to leave it seems that the remote tracks get muted nearly instantly, but they don’t get removed until 5-10 seconds later. The problem I have with this is that if someone quickly rejoins before that removal happens, it’ll remove the track from the newly connected instance.
The publishers get a leaving event when any publisher leaves the room, which are triggered almost instantly, you can listen for that instead of video track muted events.
I think you misunderstood the issue. The issue is that if you join, then destroy, then init and join again, the destroy process removes the new tracks.
You will probably want to look at how you remove tracks. As the issue seems to lie there.
The destroy removes them, not me.