vani-meeting-client 2.2.3-beta2 → 2.2.3-beta4

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.
@@ -61,7 +61,7 @@ var WebrtcHandler = /** @class */ (function (_super) {
61
61
  var _this = _super !== null && _super.apply(this, arguments) || this;
62
62
  _this.dynamicLibHelper = (new DynamicLibHelper());
63
63
  _this.sendWebrtcMessage = function (data) {
64
- _this.communicationHandler.sendWebSocketMessage(WebrtcMessageType.SendOffer, data);
64
+ _this.communicationHandler.sendWebSocketMessage(WebrtcMessageType.WebrtcMessage, data);
65
65
  };
66
66
  _this.isOfferInitParticipant = function (participant) {
67
67
  var selfParticpant = _this.communicationHandler.getSelfParticipant();
@@ -124,7 +124,7 @@ var WebrtcHandler = /** @class */ (function (_super) {
124
124
  peerConnectionObject.offer = offer;
125
125
  // send offer to peer
126
126
  console.log("offer", offer);
127
- messageJson = { to: participant.userId, type: WebrtcMessageType.SendOffer, message: { offer: offer } };
127
+ messageJson = { to: participant.userId, type: WebrtcMessageType.SendOffer, data: offer };
128
128
  this.sendWebrtcMessage(messageJson);
129
129
  _a.label = 2;
130
130
  case 2: return [2 /*return*/];
@@ -144,16 +144,16 @@ var WebrtcHandler = /** @class */ (function (_super) {
144
144
  throw new Error("Method not implemented.");
145
145
  };
146
146
  WebrtcHandler.prototype.stopTrack = function (track) {
147
- throw new Error("Method not implemented.");
147
+ // throw new Error("Method not implemented.");
148
148
  };
149
149
  WebrtcHandler.prototype.pauseTrack = function (track) {
150
- throw new Error("Method not implemented.");
150
+ // throw new Error("Method not implemented.");
151
151
  };
152
152
  WebrtcHandler.prototype.resumeTrack = function (track) {
153
- throw new Error("Method not implemented.");
153
+ // throw new Error("Method not implemented.");
154
154
  };
155
155
  WebrtcHandler.prototype.sendTrack = function (track) {
156
- throw new Error("Method not implemented.");
156
+ // throw new Error("Method not implemented.");
157
157
  };
158
158
  WebrtcHandler.prototype.createDataChannel = function () {
159
159
  return __awaiter(this, void 0, void 0, function () {
@@ -163,7 +163,7 @@ var WebrtcHandler = /** @class */ (function (_super) {
163
163
  });
164
164
  };
165
165
  WebrtcHandler.prototype.sendMessageViaDataChannel = function (messagePayload) {
166
- throw new Error('Method not implemented.');
166
+ // throw new Error('Method not implemented.');
167
167
  };
168
168
  return WebrtcHandler;
169
169
  }(BaseVideoCallHandler));
@@ -32,6 +32,7 @@ export declare enum WebSocketBasicEvents {
32
32
  }
33
33
  export declare enum WebrtcMessageType {
34
34
  SendOffer = "SendOffer",
35
+ WebrtcMessage = "WebrtcMessage",
35
36
  SendAnswer = "SendAnswer"
36
37
  }
37
38
  export declare enum SFUMessageType {
@@ -88,6 +88,7 @@ export var WebSocketBasicEvents;
88
88
  export var WebrtcMessageType;
89
89
  (function (WebrtcMessageType) {
90
90
  WebrtcMessageType["SendOffer"] = "SendOffer";
91
+ WebrtcMessageType["WebrtcMessage"] = "WebrtcMessage";
91
92
  WebrtcMessageType["SendAnswer"] = "SendAnswer";
92
93
  })(WebrtcMessageType || (WebrtcMessageType = {}));
93
94
  export var SFUMessageType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "2.2.3beta2",
3
+ "version": "2.2.3beta4",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",