vani-meeting-client-native 0.1.3 → 0.1.5

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.
@@ -97,7 +97,7 @@ var CommunicationHandler = /** @class */ (function () {
97
97
  .catch(function (error) {
98
98
  var _a;
99
99
  count = count + 1;
100
- _this.meetingStartRequest && _this.meetingStartRequest.logLevel === LogLevel.Debug && console.error('Error:', error);
100
+ _this.meetingStartRequest && _this.meetingStartRequest.logLevel === LogLevel.Debug && console.log('Error:', error);
101
101
  if (_this.meetingStartRequest) {
102
102
  if (_this.meetingStartRequest.shouldKeepTryToReconnect === false && count > 35) {
103
103
  _this.emitMessageToSource(VaniEvent.OnReconectionTimeout, {});
@@ -564,6 +564,7 @@ var CommunicationHandler = /** @class */ (function () {
564
564
  // if (count < 2 && this.websocketCallHandler?.isWebScoketConnected()) {
565
565
  // this.videoCallHandler?.reconnectedWithoutPing()
566
566
  // }
567
+ this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug && console.log("onApiResponded inside", count);
567
568
  if (this.meetingStartRequest && this.meetingStartRequest.isMobileApp) {
568
569
  if ((_a = this.websocketCallHandler) === null || _a === void 0 ? void 0 : _a.isWebScoketConnected()) {
569
570
  return;
@@ -667,12 +667,14 @@ var SFUHandler = /** @class */ (function (_super) {
667
667
  SFUHandler.prototype.produceTracks = function () {
668
668
  var _this = this;
669
669
  var _a, _b;
670
- this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug && log.info("produceTracks");
670
+ this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug && log.info("produceTracks", this.sendTransport, this.consumerTransport, this.isProduceTrackIntialWorkDone);
671
671
  if (!this.sendTransport || !this.consumerTransport || this.isProduceTrackIntialWorkDone) {
672
+ this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug && log.info("produceTracks", this.sendTransport, this.consumerTransport, this.isProduceTrackIntialWorkDone);
672
673
  return;
673
674
  }
674
675
  this.isProduceTrackIntialWorkDone = true;
675
676
  var selfTracks = (_a = this.communicationHandler) === null || _a === void 0 ? void 0 : _a.getAllSelfTracks();
677
+ this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug && log.info("produceTracks selfTracks", selfTracks);
676
678
  if (selfTracks && selfTracks.length > 0) {
677
679
  selfTracks.forEach(function (track) {
678
680
  _this.sendTrack(track);
@@ -277,11 +277,11 @@ var WebsocketHandler = /** @class */ (function (_super) {
277
277
  this.wss.onerror = function (event) {
278
278
  var _a;
279
279
  _this.meetingStartRequest && _this.meetingStartRequest.logLevel === LogLevel.Debug && console.log("wss error", event);
280
+ _this.isWebSocketConnectionInProgress = false;
280
281
  if (_this.meetingStartRequest && _this.meetingStartRequest.isMobileApp) {
281
282
  _this.communicationHandler.onIceCandidateDisconnected();
282
283
  }
283
284
  else {
284
- _this.isWebSocketConnectionInProgress = false;
285
285
  (_a = _this.communicationHandler) === null || _a === void 0 ? void 0 : _a.emitMessageToSource(VaniEvent.OnSocketError, event);
286
286
  if (_this.wss) {
287
287
  _this.wss.close();
@@ -320,6 +320,8 @@ var WebsocketHandler = /** @class */ (function (_super) {
320
320
  };
321
321
  WebsocketHandler.prototype.reconnectOnInternetFailur = function () {
322
322
  var _a;
323
+ this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug &&
324
+ log.info("reconnectOnInternetFailur on start", this.isWebScoketConnected(), this.isWebSocketConnectionInProgress);
323
325
  if (this.isWebScoketConnected() || this.isWebSocketConnectionInProgress) {
324
326
  return;
325
327
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client-native",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",