vani-meeting-client 1.2.0 → 1.2.2
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.
|
@@ -429,6 +429,7 @@ var CommunicationHandler = /** @class */ (function () {
|
|
|
429
429
|
this.emitMessageToSource(VaniEvent.OnNotReachable, {});
|
|
430
430
|
}
|
|
431
431
|
this.isReachable = false;
|
|
432
|
+
console.log("checkIfInternetReachable");
|
|
432
433
|
fetch(this.meetingStartRequest.urlToCheckInternetPresent, {
|
|
433
434
|
method: 'GET',
|
|
434
435
|
mode: 'no-cors',
|
|
@@ -452,6 +453,7 @@ var CommunicationHandler = /** @class */ (function () {
|
|
|
452
453
|
};
|
|
453
454
|
CommunicationHandler.prototype.onApiResponded = function (count) {
|
|
454
455
|
var _a, _b, _c;
|
|
456
|
+
console.log("onApiResponded", count);
|
|
455
457
|
if (this.isReachable === false) {
|
|
456
458
|
this.isReachable = true;
|
|
457
459
|
this.internetReachbilityTimeout = undefined;
|
|
@@ -91,6 +91,7 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
91
91
|
return _this;
|
|
92
92
|
}
|
|
93
93
|
SFUHandler.prototype.reconnectedWithoutPing = function () {
|
|
94
|
+
console.log("reconnectedWithoutPing");
|
|
94
95
|
this.onReconnect();
|
|
95
96
|
};
|
|
96
97
|
SFUHandler.prototype.onReconnect = function () {
|
|
@@ -123,12 +124,14 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
123
124
|
iceParameters = data.message.iceParameters;
|
|
124
125
|
(_a = this.communicationHandler) === null || _a === void 0 ? void 0 : _a.downloadParticipantsData();
|
|
125
126
|
if (!(this.consumerTransport && this.consumerTransport.id === transportId)) return [3 /*break*/, 2];
|
|
127
|
+
console.log("Restat Ice consumer");
|
|
126
128
|
return [4 /*yield*/, this.consumerTransport.restartIce({ iceParameters: iceParameters })];
|
|
127
129
|
case 1:
|
|
128
130
|
_b.sent();
|
|
129
131
|
return [3 /*break*/, 4];
|
|
130
132
|
case 2:
|
|
131
133
|
if (!(this.sendTransport && this.sendTransport.id === transportId)) return [3 /*break*/, 4];
|
|
134
|
+
console.log("Restat Ice sender");
|
|
132
135
|
return [4 /*yield*/, this.sendTransport.restartIce({ iceParameters: iceParameters })];
|
|
133
136
|
case 3:
|
|
134
137
|
_b.sent();
|
|
@@ -262,6 +265,11 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
262
265
|
if (webcamProducer) {
|
|
263
266
|
console.log("On webcamProducer");
|
|
264
267
|
this.producers.push(webcamProducer);
|
|
268
|
+
if (webcamProducer) {
|
|
269
|
+
webcamProducer.observer.on("trackended", function () {
|
|
270
|
+
console.log("On Track Endded producer event");
|
|
271
|
+
});
|
|
272
|
+
}
|
|
265
273
|
this.onParticipantUpdated();
|
|
266
274
|
// this.sendMessageReadyToConsume();
|
|
267
275
|
}
|
|
@@ -447,6 +455,7 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
447
455
|
}); });
|
|
448
456
|
this.sendTransport.on('connectionstatechange', function (newState) {
|
|
449
457
|
var _a;
|
|
458
|
+
console.log("connectionstatechange sendTransport ", newState);
|
|
450
459
|
if (newState === "disconnected" || newState === "failed") {
|
|
451
460
|
(_a = _this.communicationHandler) === null || _a === void 0 ? void 0 : _a.onIceCandidateDisconnected();
|
|
452
461
|
}
|
|
@@ -461,6 +470,7 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
461
470
|
this.consumerTransport = this.device.createRecvTransport(transport);
|
|
462
471
|
this.consumerTransport.on("connectionstatechange", function (newState) {
|
|
463
472
|
var _a;
|
|
473
|
+
console.log("connectionstatechange consumerTransport ", newState);
|
|
464
474
|
if (newState === "disconnected" || newState === "failed") {
|
|
465
475
|
(_a = _this.communicationHandler) === null || _a === void 0 ? void 0 : _a.onIceCandidateDisconnected();
|
|
466
476
|
}
|
|
@@ -617,6 +627,9 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
617
627
|
consumerObj = data.message.consumer;
|
|
618
628
|
this.consumerTransport.consume(consumerObj).then(function (consumer) {
|
|
619
629
|
var _a, _b, _c;
|
|
630
|
+
consumer.observer.on("trackended", function () {
|
|
631
|
+
console.log("Consumer track Endded observer");
|
|
632
|
+
});
|
|
620
633
|
_this.consumers.push(consumer);
|
|
621
634
|
var mediaTrack = consumer.track;
|
|
622
635
|
var data = consumer.appData.producerData;
|