vani-meeting-client 0.4.2 → 0.4.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.
@@ -205,14 +205,17 @@ var CommunicationHandler = /** @class */ (function () {
205
205
  if (shouldInfromIfNotExist === void 0) { shouldInfromIfNotExist = false; }
206
206
  var oldTrack = this.getTrackById(track.trackId);
207
207
  if (oldTrack) {
208
+ log.info("oldtrack found");
208
209
  track = Object.assign(oldTrack, track);
209
210
  }
210
211
  else {
212
+ log.info("new track found");
211
213
  track = Object.assign(new Track(participant, track.isLocalTrack, track.trackKind, track.track), track);
212
214
  this.allTracks.push(track);
213
215
  }
214
216
  track.participant = participant;
215
217
  if (shouldInfromIfNotExist) {
218
+ log.info("emitMessageToSource");
216
219
  this.emitMessageToSource(VaniEvent.OnTrack, track);
217
220
  }
218
221
  return track;
@@ -501,7 +501,11 @@ var SFUHandler = /** @class */ (function (_super) {
501
501
  log.info(data);
502
502
  var participant = (_a = _this.communicationHandler) === null || _a === void 0 ? void 0 : _a.addParticipantIfNotExist(data.participant, true);
503
503
  if (participant) {
504
+ log.info("participant consumed");
504
505
  var track = new Track(participant, false, data.trackKind, mediaTrack);
506
+ if (!_this.communicationHandler) {
507
+ console.log("communicationHandler not found");
508
+ }
505
509
  (_b = _this.communicationHandler) === null || _b === void 0 ? void 0 : _b.addUpdateRemoteTrack(track, participant, true);
506
510
  }
507
511
  var messageJson = { to: "self", type: SFUMessageType.ResumeConsumer, message: { id: consumer.id } };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "0.4.2",
3
+ "version": "0.4.5",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",