vani-meeting-client 0.6.7 → 0.6.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.
@@ -316,10 +316,9 @@ var MeetingHandler = /** @class */ (function () {
316
316
  return [];
317
317
  };
318
318
  MeetingHandler.prototype.isWebScoketConnected = function () {
319
- var _a, _b;
320
- console.log("Room Id", (_a = this.meetingStartRequest) === null || _a === void 0 ? void 0 : _a.roomId);
319
+ var _a;
321
320
  if (this.websocketCallHandler) {
322
- 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();
323
322
  }
324
323
  return false;
325
324
  };
@@ -1,8 +1,9 @@
1
1
  import { MeetingStartRequest, MeetingType } from '..';
2
2
  import { CommunicationHandler } from '../inter-communication-handler/CommunicationHandler';
3
+ import { SFUHandler } from '../video-call-handler/SFUHandler';
3
4
  export declare class DynamicLibHelper {
4
5
  getReactNativeWebrtcPlugin(meetingStartRequest: MeetingStartRequest): Promise<any>;
5
- getVideoCallClassHandler(meetingType: MeetingType, meetingStartRequest: MeetingStartRequest, _communicationHandler: CommunicationHandler): Promise<import("../video-call-handler/SFUHandler").SFUHandler | import("../video-call-handler/WebrtcHandler").WebrtcHandler | undefined>;
6
+ getVideoCallClassHandler(meetingType: MeetingType, meetingStartRequest: MeetingStartRequest, _communicationHandler: CommunicationHandler): Promise<SFUHandler | import("../video-call-handler/WebrtcHandler").WebrtcHandler | undefined>;
6
7
  getMediaDevicesVariable(meetingStartRequest: MeetingStartRequest): any;
7
8
  getMediaStreamVariable(meetingStartRequest: MeetingStartRequest): any;
8
9
  }
@@ -36,6 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  };
37
37
  import { MeetingType } from '..';
38
38
  import * as log from 'loglevel';
39
+ import { SFUHandler } from '../video-call-handler/SFUHandler';
39
40
  var DynamicLibHelper = /** @class */ (function () {
40
41
  function DynamicLibHelper() {
41
42
  }
@@ -61,21 +62,18 @@ var DynamicLibHelper = /** @class */ (function () {
61
62
  return __generator(this, function (_a) {
62
63
  switch (_a.label) {
63
64
  case 0:
64
- if (!(meetingType === MeetingType.SFU)) return [3 /*break*/, 2];
65
- return [4 /*yield*/, import("../video-call-handler/SFUHandler")];
66
- case 1:
67
- baseVideoCallHandler = _a.sent();
68
- if (baseVideoCallHandler) {
69
- return [2 /*return*/, new baseVideoCallHandler.SFUHandler(meetingStartRequest, _communicationHandler)];
65
+ if (meetingType === MeetingType.SFU) {
66
+ baseVideoCallHandler = SFUHandler;
67
+ if (baseVideoCallHandler) {
68
+ return [2 /*return*/, new baseVideoCallHandler(meetingStartRequest, _communicationHandler)];
69
+ }
70
70
  }
71
- _a.label = 2;
72
- case 2:
73
- if (!(meetingType === MeetingType.WEBRTC)) return [3 /*break*/, 4];
71
+ if (!(meetingType === MeetingType.WEBRTC)) return [3 /*break*/, 2];
74
72
  baseVideoCallHandler = import("../video-call-handler/WebrtcHandler");
75
- if (!baseVideoCallHandler) return [3 /*break*/, 4];
73
+ if (!baseVideoCallHandler) return [3 /*break*/, 2];
76
74
  return [4 /*yield*/, baseVideoCallHandler];
77
- case 3: return [2 /*return*/, new (_a.sent()).WebrtcHandler(meetingStartRequest, _communicationHandler)];
78
- case 4: return [2 /*return*/, undefined];
75
+ case 1: return [2 /*return*/, new (_a.sent()).WebrtcHandler(meetingStartRequest, _communicationHandler)];
76
+ case 2: return [2 /*return*/, undefined];
79
77
  }
80
78
  });
81
79
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",