I am having an issue where when I join a video call. Then I hangup up, then join again to the same session, the subscriber stream would append. So I would join and would see 2 of the same subscriber then if I leave and join again, I would see 3 and so on.
The way I handled hanging up is like so:
function hangup() {
publisher.destroy();
session && session.disconnect(publisher);
}
I am having an issue where when I join a video call. Then I hangup up, then join again to the same session, the subscriber stream would append. So I would join and would see 2 of the same subscriber then if I leave and join again, I would see 3 and so on.
The way I handled hanging up is like so:
Can anybody help me on this?