vani-meeting-server 1.4.5 → 1.4.7

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.
@@ -57,7 +57,6 @@ class SFUEachRoomHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
57
57
  this.onGetRTPCapabilities(participant);
58
58
  }
59
59
  else {
60
- console.log(payload);
61
60
  const sfuEachRoomUser = this.getEachRoomUserFromParticipant(participant);
62
61
  if (sfuEachRoomUser) {
63
62
  this.getEachRoomUserFromParticipant(participant)?.onNewMessage(payload);
@@ -12,13 +12,19 @@ exports.mediaCodecs = [
12
12
  {
13
13
  kind: 'audio',
14
14
  mimeType: 'audio/opus',
15
+ preferredPayloadType: 111,
15
16
  clockRate: 48000,
16
- channels: 2
17
+ channels: 2,
18
+ parameters: {
19
+ minptime: 10,
20
+ useinbandfec: 1,
21
+ },
17
22
  },
18
23
  {
19
24
  kind: 'video',
20
25
  mimeType: 'video/VP8',
21
26
  clockRate: 90000,
27
+ preferredPayloadType: 96,
22
28
  parameters: {
23
29
  'x-google-start-bitrate': 1000
24
30
  }
@@ -187,6 +187,11 @@ class EachSocketConnectionHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
187
187
  else if (paylod.type === WebSocketBasicEvents.OnAudioVideoPauseResume) {
188
188
  this.onAudioVideoPauseResume(paylod.data);
189
189
  }
190
+ else if (paylod.type === WebSocketBasicEvents.UpdateParticipant) {
191
+ this.selfParticipant = paylod.data;
192
+ RedisHandler_1.RedisHandler.getInstance().addUpdateParticipantForRoom(this.selfParticipant.roomId, this.selfParticipant);
193
+ this.redisBroadcastMessageToTopic(this.selfParticipant.roomId, this.preapreClientMessageBody(false, this.selfParticipant, this.preapreWebSocketMessageBody(WebSocketBasicEvents.OnParticipantUpdated, this.selfParticipant)));
194
+ }
190
195
  else if (paylod.type === SFUMessageType.SFUMessage) {
191
196
  const roomSFUHandler = SFUHandler_1.SFUHandler.getInstance().getRoomSFUHandler(this.selfParticipant?.roomId);
192
197
  if (roomSFUHandler) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-server",
3
- "version": "1.4.5",
3
+ "version": "1.4.7",
4
4
  "description": "Vani Meeting Server SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",