vani-meeting-client 0.9.2 → 0.9.4
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.
|
@@ -50,6 +50,7 @@ var CommunicationHandler = /** @class */ (function () {
|
|
|
50
50
|
this.allTracks = [];
|
|
51
51
|
this.isReachable = true;
|
|
52
52
|
this.meetingHandler = meetingHandler;
|
|
53
|
+
this.eventEmitter.setMaxListeners(100000);
|
|
53
54
|
}
|
|
54
55
|
CommunicationHandler.prototype.setMeetingStartRequest = function (_meetingStartRequest) {
|
|
55
56
|
this.meetingStartRequest = _meetingStartRequest;
|
|
@@ -227,10 +227,14 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
227
227
|
case 3:
|
|
228
228
|
webcamProducer = _d.sent();
|
|
229
229
|
if (webcamProducer) {
|
|
230
|
+
console.log("On webcamProducer");
|
|
230
231
|
this.producers.push(webcamProducer);
|
|
231
232
|
this.onParticipantUpdated();
|
|
232
233
|
// this.sendMessageReadyToConsume();
|
|
233
234
|
}
|
|
235
|
+
else {
|
|
236
|
+
console.log("On webcamProducer not created");
|
|
237
|
+
}
|
|
234
238
|
_d.label = 4;
|
|
235
239
|
case 4: return [2 /*return*/];
|
|
236
240
|
}
|
|
@@ -367,6 +371,7 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
367
371
|
this.sendTransport = this.device.createSendTransport(transport);
|
|
368
372
|
this.sendTransport.on('produce', function (producerLocalParameters, callback, errback) {
|
|
369
373
|
var _a;
|
|
374
|
+
console.log(" onSendTransport produce");
|
|
370
375
|
_this.transportCallBacks[producerLocalParameters.appData.trackId] = callback;
|
|
371
376
|
var messageJson = { to: "self", type: SFUMessageType.OnTransportProduceSyncRequest, message: { type: producerLocalParameters.appData.type, transportId: (_a = _this.sendTransport) === null || _a === void 0 ? void 0 : _a.id, kind: producerLocalParameters.kind, rtpParameters: producerLocalParameters.rtpParameters, appData: producerLocalParameters.appData } };
|
|
372
377
|
_this.sendSFUMessageToSocket(messageJson);
|