vani-meeting-client 2.2.1-beta0 → 2.2.1-beta2
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.
package/lib/MeetingHandler.js
CHANGED
|
@@ -158,11 +158,19 @@ var MeetingHandler = /** @class */ (function () {
|
|
|
158
158
|
return [4 /*yield*/, new DynamicLibHelper().getVideoCallClassHandler((_c = this.meetingStartRequest) === null || _c === void 0 ? void 0 : _c.meetingType, this.meetingStartRequest, this.communicationHandler)];
|
|
159
159
|
case 3:
|
|
160
160
|
_e.videoCallHandler = _f.sent();
|
|
161
|
-
|
|
161
|
+
return [3 /*break*/, 5];
|
|
162
162
|
case 4:
|
|
163
|
+
if (this.meetingStartRequest) {
|
|
164
|
+
this.videoCallHandler.setMeetingRequest(this.meetingStartRequest);
|
|
165
|
+
}
|
|
166
|
+
_f.label = 5;
|
|
167
|
+
case 5:
|
|
163
168
|
if (!this.websocketCallHandler) {
|
|
164
169
|
this.websocketCallHandler = new WebsocketHandler(this.meetingStartRequest, this.communicationHandler);
|
|
165
170
|
}
|
|
171
|
+
else if (this.meetingStartRequest) {
|
|
172
|
+
this.websocketCallHandler.setMeetingRequest(this.meetingStartRequest);
|
|
173
|
+
}
|
|
166
174
|
// this.handleGA();
|
|
167
175
|
this.emitMessageToSource(VaniEvent.OnInitDone, {});
|
|
168
176
|
return [2 /*return*/, true];
|
|
@@ -468,6 +476,7 @@ var MeetingHandler = /** @class */ (function () {
|
|
|
468
476
|
MeetingHandler.prototype.checkSocket = function () {
|
|
469
477
|
return __awaiter(this, void 0, void 0, function () {
|
|
470
478
|
return __generator(this, function (_a) {
|
|
479
|
+
debugger;
|
|
471
480
|
if (!this.meetingStartRequest) {
|
|
472
481
|
log.error("meetingStartRequestObject not found");
|
|
473
482
|
return [2 /*return*/, false];
|
package/lib/base/Base.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare abstract class Base {
|
|
|
4
4
|
protected meetingStartRequest?: MeetingStartRequest;
|
|
5
5
|
protected communicationHandler?: CommunicationHandler;
|
|
6
6
|
constructor(_meetingStartRequest: MeetingStartRequest, _communicationHandler: CommunicationHandler);
|
|
7
|
+
setMeetingRequest: (_meetingStartRequest: MeetingStartRequest) => void;
|
|
7
8
|
protected onObjectCreated(): void;
|
|
8
9
|
cleanup(): void;
|
|
9
10
|
}
|
package/lib/base/Base.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
var Base = /** @class */ (function () {
|
|
2
2
|
function Base(_meetingStartRequest, _communicationHandler) {
|
|
3
|
+
var _this = this;
|
|
4
|
+
this.setMeetingRequest = function (_meetingStartRequest) {
|
|
5
|
+
_this.meetingStartRequest = _meetingStartRequest;
|
|
6
|
+
};
|
|
3
7
|
this.meetingStartRequest = _meetingStartRequest;
|
|
4
8
|
this.communicationHandler = _communicationHandler;
|
|
5
9
|
this.onObjectCreated();
|
|
@@ -259,6 +259,12 @@ var WebsocketHandler = /** @class */ (function (_super) {
|
|
|
259
259
|
if (!url_1 && ((_a = this.meetingStartRequest) === null || _a === void 0 ? void 0 : _a.wssUrl) && this.meetingStartRequest.wssUrl !== null) {
|
|
260
260
|
url_1 = this.meetingStartRequest.wssUrl;
|
|
261
261
|
}
|
|
262
|
+
if (!url_1 && this.websocketConnectionUrl) {
|
|
263
|
+
url_1 = this.websocketConnectionUrl;
|
|
264
|
+
}
|
|
265
|
+
if (!url_1) {
|
|
266
|
+
return [2 /*return*/];
|
|
267
|
+
}
|
|
262
268
|
if (url_1 !== this.websocketConnectionUrl) {
|
|
263
269
|
if (this.wss) {
|
|
264
270
|
this.wss.close();
|