vani-meeting-server 2.9.5 → 2.9.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.
|
@@ -16,7 +16,13 @@ class WebrtcHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
|
|
|
16
16
|
RedisHandler_1.RedisHandler.getInstance().getParticipantByUserId(senderParticipant.roomId, payload.to)
|
|
17
17
|
]);
|
|
18
18
|
if (toParticipant) {
|
|
19
|
-
if (payload.type === EachSocketConnectionHandler_1.WebrtcMessageType.SendOffer
|
|
19
|
+
if (payload.type === EachSocketConnectionHandler_1.WebrtcMessageType.SendOffer
|
|
20
|
+
|| payload.type === EachSocketConnectionHandler_1.WebrtcMessageType.SendAnswer) {
|
|
21
|
+
const sendPayload = payload.data;
|
|
22
|
+
sendPayload.sender = senderParticipant;
|
|
23
|
+
this.redisBroadcastMessageToTopic(toParticipant.userId, this.preapreClientMessageBody(false, senderParticipant, this.preapreWebSocketMessageBody(payload.type, sendPayload)));
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
20
26
|
const sendPayload = payload.data;
|
|
21
27
|
sendPayload.sender = senderParticipant;
|
|
22
28
|
this.redisBroadcastMessageToTopic(toParticipant.userId, this.preapreClientMessageBody(false, senderParticipant, this.preapreWebSocketMessageBody(payload.type, sendPayload)));
|
|
@@ -10,6 +10,7 @@ export declare enum WebSocketBasicEvents {
|
|
|
10
10
|
Pong = "pong",
|
|
11
11
|
AudioVideoPauseResume = "audioVideoPauseResume",
|
|
12
12
|
OnStartMeetingCalled = "startMeetingCalled",
|
|
13
|
+
OnStartParticipantMeetingCalled = "OnStartParticipantMeetingCalled",
|
|
13
14
|
OnAudioVideoPauseResume = "audioVideoPauseResume",
|
|
14
15
|
OnAudioVideoStatusUpdated = "audioVideoStatusUpdated",
|
|
15
16
|
OnAudioUnblockRequest = "audioUnblock",
|
|
@@ -75,7 +76,9 @@ export declare enum SFUMessageType {
|
|
|
75
76
|
export declare enum WebrtcMessageType {
|
|
76
77
|
WebrtcMessage = "WebrtcMessage",
|
|
77
78
|
SendOffer = "SendOffer",
|
|
78
|
-
|
|
79
|
+
IceCandidate = "IceCandidate",
|
|
80
|
+
SendAnswer = "SendAnswer",
|
|
81
|
+
NegotiationNeeded = "NegotiationNeeded"
|
|
79
82
|
}
|
|
80
83
|
export declare enum MultiSystemEvents {
|
|
81
84
|
OnNewServerJoinedForRoom = "OnNewServerJoinedForRoom",
|
|
@@ -27,6 +27,7 @@ var WebSocketBasicEvents;
|
|
|
27
27
|
WebSocketBasicEvents["Pong"] = "pong";
|
|
28
28
|
WebSocketBasicEvents["AudioVideoPauseResume"] = "audioVideoPauseResume";
|
|
29
29
|
WebSocketBasicEvents["OnStartMeetingCalled"] = "startMeetingCalled";
|
|
30
|
+
WebSocketBasicEvents["OnStartParticipantMeetingCalled"] = "OnStartParticipantMeetingCalled";
|
|
30
31
|
WebSocketBasicEvents["OnAudioVideoPauseResume"] = "audioVideoPauseResume";
|
|
31
32
|
WebSocketBasicEvents["OnAudioVideoStatusUpdated"] = "audioVideoStatusUpdated";
|
|
32
33
|
WebSocketBasicEvents["OnAudioUnblockRequest"] = "audioUnblock";
|
|
@@ -98,7 +99,9 @@ var WebrtcMessageType;
|
|
|
98
99
|
(function (WebrtcMessageType) {
|
|
99
100
|
WebrtcMessageType["WebrtcMessage"] = "WebrtcMessage";
|
|
100
101
|
WebrtcMessageType["SendOffer"] = "SendOffer";
|
|
102
|
+
WebrtcMessageType["IceCandidate"] = "IceCandidate";
|
|
101
103
|
WebrtcMessageType["SendAnswer"] = "SendAnswer";
|
|
104
|
+
WebrtcMessageType["NegotiationNeeded"] = "NegotiationNeeded";
|
|
102
105
|
})(WebrtcMessageType || (exports.WebrtcMessageType = WebrtcMessageType = {}));
|
|
103
106
|
var MultiSystemEvents;
|
|
104
107
|
(function (MultiSystemEvents) {
|
|
@@ -297,7 +300,8 @@ class EachSocketConnectionHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
|
|
|
297
300
|
async onStartMeetingCalled(data) {
|
|
298
301
|
if (this.selfParticipant) {
|
|
299
302
|
this.selfParticipant.isStartMeetingCalled = true;
|
|
300
|
-
RedisHandler_1.RedisHandler.getInstance().addUpdateParticipantForRoom(this.selfParticipant.roomId, this.selfParticipant);
|
|
303
|
+
await RedisHandler_1.RedisHandler.getInstance().addUpdateParticipantForRoom(this.selfParticipant.roomId, this.selfParticipant);
|
|
304
|
+
this.redisBroadcastMessageToTopic(this.selfParticipant.roomId, this.preapreClientMessageBody(true, this.selfParticipant, this.preapreWebSocketMessageBody(WebSocketBasicEvents.OnStartParticipantMeetingCalled, { participant: this.selfParticipant })));
|
|
301
305
|
}
|
|
302
306
|
}
|
|
303
307
|
async onConfig(data) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vani-meeting-server",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.6",
|
|
4
4
|
"description": "Vani Meeting Server SDK",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dotenv": "^16.0.2",
|
|
32
32
|
"express": "^4.18.1",
|
|
33
33
|
"helmet": "^6.0.0",
|
|
34
|
-
"mediasoup": "3.19.
|
|
34
|
+
"mediasoup": "3.19.18",
|
|
35
35
|
"public-ip": "4.0.3",
|
|
36
36
|
"typescript": "^5.6.2",
|
|
37
37
|
"uuid": "^9.0.0",
|