vani-meeting-server 2.9.7 → 2.9.9
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.
|
@@ -54,13 +54,13 @@ class SFUEachRoomUserHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
|
|
|
54
54
|
await this.createWebrtcSendTransport(this.selfParticipant);
|
|
55
55
|
setTimeout(async () => {
|
|
56
56
|
await this.createWebrtcRecieveTransport(this.selfParticipant);
|
|
57
|
-
},
|
|
57
|
+
}, 200);
|
|
58
58
|
}
|
|
59
59
|
else if (payload.type === EachSocketConnectionHandler_1.SFUMessageType.OnCreateTransportsForcefully) {
|
|
60
60
|
await this.createWebrtcSendTransport(this.selfParticipant, true);
|
|
61
61
|
setTimeout(async () => {
|
|
62
62
|
await this.createWebrtcRecieveTransport(this.selfParticipant, true);
|
|
63
|
-
},
|
|
63
|
+
}, 200);
|
|
64
64
|
}
|
|
65
65
|
else if (payload.type === EachSocketConnectionHandler_1.SFUMessageType.OnTransportConnect) {
|
|
66
66
|
this.connectTransport(payload);
|
|
@@ -18,6 +18,7 @@ export declare enum WebSocketBasicEvents {
|
|
|
18
18
|
OnAudioBlockRequest = "audioBlock",
|
|
19
19
|
OnVideoBlockRequest = "videoBlock",
|
|
20
20
|
UpdateParticipant = "updateParticipant",
|
|
21
|
+
UpdateParticipantData = "UpdateParticipantData",
|
|
21
22
|
OnParticipantUpdated = "participantUpdated",
|
|
22
23
|
OnNewJoinee = "newJoinee",
|
|
23
24
|
OnRejoined = "rejoined",
|
|
@@ -35,6 +35,7 @@ var WebSocketBasicEvents;
|
|
|
35
35
|
WebSocketBasicEvents["OnAudioBlockRequest"] = "audioBlock";
|
|
36
36
|
WebSocketBasicEvents["OnVideoBlockRequest"] = "videoBlock";
|
|
37
37
|
WebSocketBasicEvents["UpdateParticipant"] = "updateParticipant";
|
|
38
|
+
WebSocketBasicEvents["UpdateParticipantData"] = "UpdateParticipantData";
|
|
38
39
|
WebSocketBasicEvents["OnParticipantUpdated"] = "participantUpdated";
|
|
39
40
|
WebSocketBasicEvents["OnNewJoinee"] = "newJoinee";
|
|
40
41
|
WebSocketBasicEvents["OnRejoined"] = "rejoined";
|
|
@@ -246,6 +247,14 @@ class EachSocketConnectionHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
|
|
|
246
247
|
RedisHandler_1.RedisHandler.getInstance().addUpdateParticipantForRoom(this.selfParticipant.roomId, this.selfParticipant);
|
|
247
248
|
this.redisBroadcastMessageToTopic(this.selfParticipant.roomId, this.preapreClientMessageBody(true, this.selfParticipant, this.preapreWebSocketMessageBody(WebSocketBasicEvents.OnParticipantUpdated, this.selfParticipant)));
|
|
248
249
|
}
|
|
250
|
+
else if (paylod.type === WebSocketBasicEvents.UpdateParticipantData) {
|
|
251
|
+
if (paylod.data && paylod.data.userData && this.selfParticipant) {
|
|
252
|
+
this.selfParticipant.userData = paylod.data.userData;
|
|
253
|
+
ServerHandler_1.ServerHandler.getInstance().serverStartRequest && ServerHandler_1.ServerHandler.getInstance().serverStartRequest.logLevel !== WebSocketServerStartRequest_1.LogLevel.None && console.log(" WebSocketBasicEvents.UpdateParticipant", this.selfParticipant);
|
|
254
|
+
RedisHandler_1.RedisHandler.getInstance().addUpdateParticipantForRoom(this.selfParticipant.roomId, this.selfParticipant);
|
|
255
|
+
this.redisBroadcastMessageToTopic(this.selfParticipant.roomId, this.preapreClientMessageBody(true, this.selfParticipant, this.preapreWebSocketMessageBody(WebSocketBasicEvents.OnParticipantUpdated, this.selfParticipant)));
|
|
256
|
+
}
|
|
257
|
+
}
|
|
249
258
|
else if (paylod.type === SFUMessageType.SFUMessage) {
|
|
250
259
|
const roomSFUHandler = SFUHandler_1.SFUHandler.getInstance().getRoomSFUHandler(this.selfParticipant?.roomId);
|
|
251
260
|
if (roomSFUHandler) {
|