Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 7eeeb8d

Browse files
committed
Unsubscribe from the participant joined, left on leave
1 parent a2e2e41 commit 7eeeb8d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

script.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,20 @@ $("#conference-leave-btn").click(function() {
352352
.then(() => {
353353
conferenceAccessToken = null;
354354

355+
//unsubsribe from the participant joined/left events
356+
VoxeetSDK.notification.unsubscribe([{
357+
type: "Participant.Left",
358+
conferenceAlias: conference.alias
359+
},
360+
{
361+
type: "Participant.Joined",
362+
conferenceAlias: conference.alias
363+
},
364+
{
365+
type: "Conference.ActiveParticipants",
366+
conferenceAlias: conference.alias
367+
}]);
368+
355369
$('#chk-live-recording').attr('disabled', false);
356370

357371
$('#btn-set-output-audio-device').attr('disabled', true);

0 commit comments

Comments
 (0)