vani-meeting-client 1.2.0 → 1.2.1

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.
@@ -262,6 +262,11 @@ var SFUHandler = /** @class */ (function (_super) {
262
262
  if (webcamProducer) {
263
263
  console.log("On webcamProducer");
264
264
  this.producers.push(webcamProducer);
265
+ if (webcamProducer) {
266
+ webcamProducer.observer.on("trackended", function () {
267
+ console.log("On Track Endded producer event");
268
+ });
269
+ }
265
270
  this.onParticipantUpdated();
266
271
  // this.sendMessageReadyToConsume();
267
272
  }
@@ -447,6 +452,7 @@ var SFUHandler = /** @class */ (function (_super) {
447
452
  }); });
448
453
  this.sendTransport.on('connectionstatechange', function (newState) {
449
454
  var _a;
455
+ console.log("connectionstatechange sendTransport ", newState);
450
456
  if (newState === "disconnected" || newState === "failed") {
451
457
  (_a = _this.communicationHandler) === null || _a === void 0 ? void 0 : _a.onIceCandidateDisconnected();
452
458
  }
@@ -461,6 +467,7 @@ var SFUHandler = /** @class */ (function (_super) {
461
467
  this.consumerTransport = this.device.createRecvTransport(transport);
462
468
  this.consumerTransport.on("connectionstatechange", function (newState) {
463
469
  var _a;
470
+ console.log("connectionstatechange consumerTransport ", newState);
464
471
  if (newState === "disconnected" || newState === "failed") {
465
472
  (_a = _this.communicationHandler) === null || _a === void 0 ? void 0 : _a.onIceCandidateDisconnected();
466
473
  }
@@ -617,6 +624,9 @@ var SFUHandler = /** @class */ (function (_super) {
617
624
  consumerObj = data.message.consumer;
618
625
  this.consumerTransport.consume(consumerObj).then(function (consumer) {
619
626
  var _a, _b, _c;
627
+ consumer.observer.on("trackended", function () {
628
+ console.log("Consumer track Endded observer");
629
+ });
620
630
  _this.consumers.push(consumer);
621
631
  var mediaTrack = consumer.track;
622
632
  var data = consumer.appData.producerData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",