vani-meeting-client 1.1.8 → 1.1.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.
|
@@ -113,44 +113,26 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
113
113
|
});
|
|
114
114
|
};
|
|
115
115
|
SFUHandler.prototype.onRestartIceCandidateResponse = function (data) {
|
|
116
|
-
var _a
|
|
116
|
+
var _a;
|
|
117
117
|
return __awaiter(this, void 0, void 0, function () {
|
|
118
|
-
var transportId, iceParameters
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
switch (_f.label) {
|
|
118
|
+
var transportId, iceParameters;
|
|
119
|
+
return __generator(this, function (_b) {
|
|
120
|
+
switch (_b.label) {
|
|
122
121
|
case 0:
|
|
123
122
|
transportId = data.message.transportId;
|
|
124
123
|
iceParameters = data.message.iceParameters;
|
|
125
124
|
(_a = this.communicationHandler) === null || _a === void 0 ? void 0 : _a.downloadParticipantsData();
|
|
126
125
|
if (!(this.consumerTransport && this.consumerTransport.id === transportId)) return [3 /*break*/, 2];
|
|
127
|
-
console.log("restartIce", "communicationHandler");
|
|
128
126
|
return [4 /*yield*/, this.consumerTransport.restartIce({ iceParameters: iceParameters })];
|
|
129
127
|
case 1:
|
|
130
|
-
|
|
131
|
-
for (_i = 0, _e = this.consumers; _i < _e.length; _i++) {
|
|
132
|
-
consumer = _e[_i];
|
|
133
|
-
if (consumer) {
|
|
134
|
-
consumer.close();
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
this.consumers = [];
|
|
138
|
-
messageJson = { to: "self", type: SFUMessageType.GetAllProducers, message: {} };
|
|
139
|
-
this.sendSFUMessageToSocket(messageJson);
|
|
128
|
+
_b.sent();
|
|
140
129
|
return [3 /*break*/, 4];
|
|
141
130
|
case 2:
|
|
142
131
|
if (!(this.sendTransport && this.sendTransport.id === transportId)) return [3 /*break*/, 4];
|
|
143
132
|
return [4 /*yield*/, this.sendTransport.restartIce({ iceParameters: iceParameters })];
|
|
144
133
|
case 3:
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
(_c = this.communicationHandler) === null || _c === void 0 ? void 0 : _c.getAllSelfTracks().forEach(function (eachSelfTrack) {
|
|
148
|
-
_this.stopTrack(eachSelfTrack);
|
|
149
|
-
});
|
|
150
|
-
(_d = this.communicationHandler) === null || _d === void 0 ? void 0 : _d.getAllSelfTracks().forEach(function (eachSelfTrack) {
|
|
151
|
-
_this.sendTrack(eachSelfTrack);
|
|
152
|
-
});
|
|
153
|
-
_f.label = 4;
|
|
134
|
+
_b.sent();
|
|
135
|
+
_b.label = 4;
|
|
154
136
|
case 4: return [2 /*return*/];
|
|
155
137
|
}
|
|
156
138
|
});
|