vani-meeting-client 0.6.6 → 0.6.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.
@@ -71,7 +71,7 @@ var MeetingHandler = /** @class */ (function () {
71
71
  }
72
72
  log.setLevel("trace");
73
73
  (_a = this.communicationHandler) === null || _a === void 0 ? void 0 : _a.setMeetingStartRequest(this.meetingStartRequest);
74
- if (!((_b = this.meetingStartRequest) === null || _b === void 0 ? void 0 : _b.isMobileApp)) return [3 /*break*/, 2];
74
+ if (!(((_b = this.meetingStartRequest) === null || _b === void 0 ? void 0 : _b.isMobileApp) && !this.reactNativeWebrtcPlugin)) return [3 /*break*/, 2];
75
75
  _d = this;
76
76
  return [4 /*yield*/, new DynamicLibHelper().getReactNativeWebrtcPlugin(this.meetingStartRequest)];
77
77
  case 1:
@@ -79,11 +79,16 @@ var MeetingHandler = /** @class */ (function () {
79
79
  this.reactNativeWebrtcPlugin.registerGlobals();
80
80
  _f.label = 2;
81
81
  case 2:
82
+ if (!!this.videoCallHandler) return [3 /*break*/, 4];
82
83
  _e = this;
83
84
  return [4 /*yield*/, new DynamicLibHelper().getVideoCallClassHandler((_c = this.meetingStartRequest) === null || _c === void 0 ? void 0 : _c.meetingType, this.meetingStartRequest, this.communicationHandler)];
84
85
  case 3:
85
86
  _e.videoCallHandler = _f.sent();
86
- this.websocketCallHandler = new WebsocketHandler(this.meetingStartRequest, this.communicationHandler);
87
+ _f.label = 4;
88
+ case 4:
89
+ if (!this.websocketCallHandler) {
90
+ this.websocketCallHandler = new WebsocketHandler(this.meetingStartRequest, this.communicationHandler);
91
+ }
87
92
  // this.handleGA();
88
93
  this.emitMessageToSource(VaniEvent.OnInitDone, {});
89
94
  return [2 /*return*/];
@@ -311,10 +316,9 @@ var MeetingHandler = /** @class */ (function () {
311
316
  return [];
312
317
  };
313
318
  MeetingHandler.prototype.isWebScoketConnected = function () {
314
- var _a, _b;
315
- console.log("Room Id", (_a = this.meetingStartRequest) === null || _a === void 0 ? void 0 : _a.roomId);
319
+ var _a;
316
320
  if (this.websocketCallHandler) {
317
- return (_b = this.websocketCallHandler) === null || _b === void 0 ? void 0 : _b.isWebScoketConnected();
321
+ return (_a = this.websocketCallHandler) === null || _a === void 0 ? void 0 : _a.isWebScoketConnected();
318
322
  }
319
323
  return false;
320
324
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "0.6.6",
3
+ "version": "0.6.9",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",