vani-meeting-client 1.1.7 → 1.1.8

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.
@@ -113,22 +113,23 @@ var SFUHandler = /** @class */ (function (_super) {
113
113
  });
114
114
  };
115
115
  SFUHandler.prototype.onRestartIceCandidateResponse = function (data) {
116
- var _a, _b, _c;
116
+ var _a, _b, _c, _d;
117
117
  return __awaiter(this, void 0, void 0, function () {
118
- var transportId, iceParameters, _i, _d, consumer, messageJson;
118
+ var transportId, iceParameters, _i, _e, consumer, messageJson;
119
119
  var _this = this;
120
- return __generator(this, function (_e) {
121
- switch (_e.label) {
120
+ return __generator(this, function (_f) {
121
+ switch (_f.label) {
122
122
  case 0:
123
123
  transportId = data.message.transportId;
124
124
  iceParameters = data.message.iceParameters;
125
125
  (_a = this.communicationHandler) === null || _a === void 0 ? void 0 : _a.downloadParticipantsData();
126
126
  if (!(this.consumerTransport && this.consumerTransport.id === transportId)) return [3 /*break*/, 2];
127
+ console.log("restartIce", "communicationHandler");
127
128
  return [4 /*yield*/, this.consumerTransport.restartIce({ iceParameters: iceParameters })];
128
129
  case 1:
129
- _e.sent();
130
- for (_i = 0, _d = this.consumers; _i < _d.length; _i++) {
131
- consumer = _d[_i];
130
+ _f.sent();
131
+ for (_i = 0, _e = this.consumers; _i < _e.length; _i++) {
132
+ consumer = _e[_i];
132
133
  if (consumer) {
133
134
  consumer.close();
134
135
  }
@@ -141,14 +142,15 @@ var SFUHandler = /** @class */ (function (_super) {
141
142
  if (!(this.sendTransport && this.sendTransport.id === transportId)) return [3 /*break*/, 4];
142
143
  return [4 /*yield*/, this.sendTransport.restartIce({ iceParameters: iceParameters })];
143
144
  case 3:
144
- _e.sent();
145
- (_b = this.communicationHandler) === null || _b === void 0 ? void 0 : _b.getAllSelfTracks().forEach(function (eachSelfTrack) {
145
+ _f.sent();
146
+ console.log("restartIce", "sendTransport", (_b = this.communicationHandler) === null || _b === void 0 ? void 0 : _b.getAllSelfTracks().length);
147
+ (_c = this.communicationHandler) === null || _c === void 0 ? void 0 : _c.getAllSelfTracks().forEach(function (eachSelfTrack) {
146
148
  _this.stopTrack(eachSelfTrack);
147
149
  });
148
- (_c = this.communicationHandler) === null || _c === void 0 ? void 0 : _c.getAllSelfTracks().forEach(function (eachSelfTrack) {
150
+ (_d = this.communicationHandler) === null || _d === void 0 ? void 0 : _d.getAllSelfTracks().forEach(function (eachSelfTrack) {
149
151
  _this.sendTrack(eachSelfTrack);
150
152
  });
151
- _e.label = 4;
153
+ _f.label = 4;
152
154
  case 4: return [2 /*return*/];
153
155
  }
154
156
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",