vani-meeting-client 1.0.5 → 1.0.7
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.
|
@@ -133,6 +133,8 @@ var CommunicationHandler = /** @class */ (function () {
|
|
|
133
133
|
CommunicationHandler.prototype.addParticipantIfNotExist = function (participant, shouldInfrom) {
|
|
134
134
|
var _a;
|
|
135
135
|
if (shouldInfrom === void 0) { shouldInfrom = false; }
|
|
136
|
+
console.log("addParticipantIfNotExist", this.allParticipants);
|
|
137
|
+
console.log("addParticipantIfNotExist new user", participant);
|
|
136
138
|
var oldParticipant = this.participantByUserId(participant.userId);
|
|
137
139
|
if (oldParticipant) {
|
|
138
140
|
console.log("Old participant", oldParticipant);
|
|
@@ -368,21 +368,6 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
368
368
|
var _this = this;
|
|
369
369
|
if (data && data.message && data.message.transport) {
|
|
370
370
|
var transport = data.message.transport;
|
|
371
|
-
transport.iceServers = [
|
|
372
|
-
{
|
|
373
|
-
urls: ["stun:stun.l.google.com:19302"]
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
urls: ["stun:stunin.vaniassistant.com:3478"],
|
|
377
|
-
username: "sachin",
|
|
378
|
-
credential: "Hhands@12345"
|
|
379
|
-
}, {
|
|
380
|
-
urls: ["turn:turnin.vaniassistant.com:3478"],
|
|
381
|
-
username: "sachin",
|
|
382
|
-
credential: "Hhands@12345"
|
|
383
|
-
}
|
|
384
|
-
];
|
|
385
|
-
transport.iceTransportPolicy = "relay";
|
|
386
371
|
this.sendTransport = this.device.createSendTransport(transport);
|
|
387
372
|
this.sendTransport.on('produce', function (producerLocalParameters, callback, errback) {
|
|
388
373
|
var _a;
|
|
@@ -414,21 +399,6 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
414
399
|
var _this = this;
|
|
415
400
|
if (data && data.message && data.message.transport) {
|
|
416
401
|
var transport = data.message.transport;
|
|
417
|
-
transport.iceServers = [
|
|
418
|
-
{
|
|
419
|
-
urls: ["stun:stun.l.google.com:19302"]
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
urls: ["stun:stunin.vaniassistant.com:3478"],
|
|
423
|
-
username: "sachin",
|
|
424
|
-
credential: "Hhands@12345"
|
|
425
|
-
}, {
|
|
426
|
-
urls: ["turn:turnin.vaniassistant.com:3478"],
|
|
427
|
-
username: "sachin",
|
|
428
|
-
credential: "Hhands@12345"
|
|
429
|
-
}
|
|
430
|
-
];
|
|
431
|
-
transport.iceTransportPolicy = "relay";
|
|
432
402
|
this.consumerTransport = this.device.createRecvTransport(transport);
|
|
433
403
|
this.consumerTransport.on("connectionstatechange", function (newState) {
|
|
434
404
|
var _a;
|