v1.7.0/call cleanup, server side toggle

This commit is contained in:
2020-09-05 18:48:00 -04:00
parent 93c903cc45
commit 785071b4fe
3 changed files with 6 additions and 24 deletions
-10
View File
@@ -175,17 +175,7 @@ export default class CallManager {
}
return true;
}
async usersListHandle() {
var usersOnCall = {};
VoxeetSDK.conference.participants.forEach((v, k, m) => {
usersOnCall[k] = v;
});
this.listener({ usersOnCall });
}
async initialize() {
VoxeetSDK.conference.on('participantAdded', () => this.usersListHandle());
VoxeetSDK.conference.on('participantUpdated', () => this.usersListHandle());
VoxeetSDK.conference.on('joined', () => {
this.listener({ onCall: true, callActionPending: false, usingVideo: this.__useVideo });
});