vani-meeting-client 1.9.7 → 1.9.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.
|
@@ -109,6 +109,9 @@ var CommunicationHandler = /** @class */ (function () {
|
|
|
109
109
|
var messageJson;
|
|
110
110
|
var _a;
|
|
111
111
|
return __generator(this, function (_b) {
|
|
112
|
+
if (this.allSelfTracksForRestartSFU) {
|
|
113
|
+
return [2 /*return*/];
|
|
114
|
+
}
|
|
112
115
|
(_a = this.videoCallHandler) === null || _a === void 0 ? void 0 : _a.cleanup(false);
|
|
113
116
|
messageJson = { to: "self", type: SFUMessageType.ReloadSFU, message: SFUMessageType.ReloadSFU };
|
|
114
117
|
this.sendWebSocketMessage(SFUMessageType.SFUMessage, messageJson);
|
|
@@ -122,7 +125,9 @@ var CommunicationHandler = /** @class */ (function () {
|
|
|
122
125
|
this.emitMessageToSource(VaniEvent.OnSFUConnected, undefined);
|
|
123
126
|
if (this.allSelfTracksForRestartSFU) {
|
|
124
127
|
this.emitMessageToSource(VaniEvent.ResendTracks, this.allSelfTracksForRestartSFU);
|
|
125
|
-
this.allSelfTracksForRestartSFU
|
|
128
|
+
if (this.allSelfTracksForRestartSFU && this.allSelfTracksForRestartSFU.length === 0) {
|
|
129
|
+
this.allSelfTracksForRestartSFU = undefined;
|
|
130
|
+
}
|
|
126
131
|
}
|
|
127
132
|
return [2 /*return*/];
|
|
128
133
|
});
|
|
@@ -410,6 +415,7 @@ var CommunicationHandler = /** @class */ (function () {
|
|
|
410
415
|
(_a = this.videoCallHandler) === null || _a === void 0 ? void 0 : _a.sendTrack(track);
|
|
411
416
|
}
|
|
412
417
|
this.emitMessageToSource(VaniEvent.OnTrack, track);
|
|
418
|
+
this.allSelfTracksForRestartSFU = undefined;
|
|
413
419
|
};
|
|
414
420
|
CommunicationHandler.prototype.onOldMessages = function (data) {
|
|
415
421
|
var _this = this;
|