vani-meeting-client 2.0.6 → 2.0.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.
@@ -44,6 +44,7 @@ export declare class MeetingHandler {
44
44
  getAllTracks(): Track[];
45
45
  getTracksByParticipantId(participantId: string): Track[];
46
46
  isWebScoketConnected(): boolean;
47
+ isStartMeetingCalled: () => void;
47
48
  sendMessage(message: MessagePayload): TaskResponse;
48
49
  getOldMessages(): Promise<void>;
49
50
  onOldMessages(data: any): Promise<void>;
@@ -78,6 +78,10 @@ var MeetingHandler = /** @class */ (function () {
78
78
  }
79
79
  });
80
80
  }); };
81
+ this.isStartMeetingCalled = function () {
82
+ var _a;
83
+ (_a = _this.communicationHandler) === null || _a === void 0 ? void 0 : _a.isStartAndSetupWithServerCalled;
84
+ };
81
85
  this.restartTransport = function () { return __awaiter(_this, void 0, void 0, function () {
82
86
  var _a;
83
87
  return __generator(this, function (_b) {
@@ -168,11 +168,11 @@ var UserMediaHandler = /** @class */ (function (_super) {
168
168
  var _this = this;
169
169
  return __generator(this, function (_a) {
170
170
  if (!this.meetingStartRequest) {
171
- log.warn("meetingStartRequest not found");
171
+ log.log("meetingStartRequest not found");
172
172
  return [2 /*return*/];
173
173
  }
174
174
  if (this.isScreenShareFetchInProgress) {
175
- log.warn("Already fetching stream. So request ignored");
175
+ log.log("Already fetching stream. So request ignored");
176
176
  return [2 /*return*/];
177
177
  }
178
178
  if (!screensharePayload) {
@@ -209,7 +209,7 @@ var UserMediaHandler = /** @class */ (function (_super) {
209
209
  }
210
210
  this.userMediaPayload = userMediaPayload;
211
211
  if (this.isVideoAudioFetchInProgress) {
212
- log.warn("Already fetching stream. So request ignored");
212
+ log.log("Already fetching stream. So request ignored");
213
213
  return [2 /*return*/];
214
214
  }
215
215
  if (!isVideoRequired) return [3 /*break*/, 2];
@@ -324,7 +324,7 @@ var UserMediaHandler = /** @class */ (function (_super) {
324
324
  };
325
325
  UserMediaHandler.prototype.onStreamError = function (error, isAudioRequired, isVideoRequired) {
326
326
  var _a;
327
- log.warn(error.message);
327
+ log.log(error.message);
328
328
  (_a = this.communicationHandler) === null || _a === void 0 ? void 0 : _a.emitMessageToSource(VaniEvent.OnPermissionError, error);
329
329
  if (isAudioRequired && this.muteUmutePromiseResolver) {
330
330
  this.muteUmutePromiseResolver({ message: "Permission Declined", error: 'PermissionDenied', isSuccess: false });
@@ -192,7 +192,7 @@ var WebsocketHandler = /** @class */ (function (_super) {
192
192
  var _this = this;
193
193
  return __generator(this, function (_a) {
194
194
  if (!this.meetingStartRequest) {
195
- log.warn("meetingStartRequest not found on startSocketConnection");
195
+ log.log("meetingStartRequest not found on startSocketConnection");
196
196
  return [2 /*return*/];
197
197
  }
198
198
  if (this.meetingStartRequest.dynamicWebSocketFetchBaseUrl) {
@@ -218,7 +218,7 @@ var WebsocketHandler = /** @class */ (function (_super) {
218
218
  })
219
219
  .catch(function (error) {
220
220
  _this.connect(false);
221
- log.warn(error);
221
+ // log.warn(error)
222
222
  _this.connect(false);
223
223
  });
224
224
  }
@@ -280,7 +280,7 @@ var WebsocketHandler = /** @class */ (function (_super) {
280
280
  this.wss.onclose = function (event) {
281
281
  _this.isWebSocketConnectionInProgress = false;
282
282
  _this.meetingStartRequest && _this.meetingStartRequest.logLevel === LogLevel.Debug && ("WebSocket is closed now.");
283
- log.warn(event);
283
+ // log.warn(event)
284
284
  _this.onWebSocketClosed(event);
285
285
  };
286
286
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",