vani-meeting-client 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -311,9 +311,10 @@ var CommunicationHandler = /** @class */ (function () {
|
|
|
311
311
|
var participant = this.participantByUserId(data.message.user);
|
|
312
312
|
if (participant) {
|
|
313
313
|
participant.isAudioBlockedByAdmin = true;
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
314
|
+
if ((participant === null || participant === void 0 ? void 0 : participant.userId) === ((_a = this.meetingStartRequest) === null || _a === void 0 ? void 0 : _a.userId)) {
|
|
315
|
+
(_b = this.meetingHandler) === null || _b === void 0 ? void 0 : _b.muteUser((_c = this.meetingStartRequest) === null || _c === void 0 ? void 0 : _c.userId);
|
|
316
|
+
}
|
|
317
|
+
this.emitMessageToSource(VaniEvent.OnAudioBlocked, participant);
|
|
317
318
|
}
|
|
318
319
|
}
|
|
319
320
|
};
|
|
@@ -323,6 +324,7 @@ var CommunicationHandler = /** @class */ (function () {
|
|
|
323
324
|
var participant = this.participantByUserId(data.message.user);
|
|
324
325
|
if (participant) {
|
|
325
326
|
participant.isAudioBlockedByAdmin = false;
|
|
327
|
+
this.emitMessageToSource(VaniEvent.OnAudioUnblocked, participant);
|
|
326
328
|
}
|
|
327
329
|
}
|
|
328
330
|
};
|
|
@@ -333,9 +335,10 @@ var CommunicationHandler = /** @class */ (function () {
|
|
|
333
335
|
var participant = this.participantByUserId(data.message.user);
|
|
334
336
|
if (participant) {
|
|
335
337
|
participant.isVideoBlockedByAdmin = true;
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
338
|
+
if ((participant === null || participant === void 0 ? void 0 : participant.userId) === ((_a = this.meetingStartRequest) === null || _a === void 0 ? void 0 : _a.userId)) {
|
|
339
|
+
(_b = this.meetingHandler) === null || _b === void 0 ? void 0 : _b.pauseCamera((_c = this.meetingStartRequest) === null || _c === void 0 ? void 0 : _c.userId);
|
|
340
|
+
}
|
|
341
|
+
this.emitMessageToSource(VaniEvent.OnVideoBlocked, participant);
|
|
339
342
|
}
|
|
340
343
|
}
|
|
341
344
|
};
|
|
@@ -345,6 +348,7 @@ var CommunicationHandler = /** @class */ (function () {
|
|
|
345
348
|
var participant = this.participantByUserId(data.message.user);
|
|
346
349
|
if (participant) {
|
|
347
350
|
participant.isVideoBlockedByAdmin = false;
|
|
351
|
+
this.emitMessageToSource(VaniEvent.OnVideoUnblocked, participant);
|
|
348
352
|
}
|
|
349
353
|
}
|
|
350
354
|
};
|