@voicenter-team/opensips-js 1.0.76 → 1.0.77
Sign up to get free protection for your applications and to get access to all the features.
package/dist/opensips-js.es.js
CHANGED
@@ -6423,6 +6423,7 @@ var Cd = pt.EventEmitter, tc = Lt, Ad = it, oe = tt, on = xs, sc = Ji, Fe = Et()
|
|
6423
6423
|
}, {
|
6424
6424
|
key: "connect",
|
6425
6425
|
value: function(a) {
|
6426
|
+
console.log("rtcOfferConstraints connect");
|
6426
6427
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = arguments.length > 2 ? arguments[2] : void 0;
|
6427
6428
|
K.debug("connect()");
|
6428
6429
|
var p = a, h = Fe.cloneObject(t.eventHandlers), d = Fe.cloneArray(t.extraHeaders), g = Fe.cloneObject(t.mediaConstraints, {
|
@@ -7360,7 +7361,9 @@ var Cd = pt.EventEmitter, tc = Lt, Ad = it, oe = tt, on = xs, sc = Ji, Fe = Et()
|
|
7360
7361
|
}, {
|
7361
7362
|
key: "_sendInitialRequest",
|
7362
7363
|
value: function(a, t, s) {
|
7363
|
-
var p = this
|
7364
|
+
var p = this;
|
7365
|
+
console.log("rtcOfferConstraints", t);
|
7366
|
+
var h = new Id(this._ua, this._request, {
|
7364
7367
|
onRequestTimeout: function() {
|
7365
7368
|
p.onRequestTimeout();
|
7366
7369
|
},
|
@@ -13537,7 +13540,7 @@ var Dm = class {
|
|
13537
13540
|
}
|
13538
13541
|
});
|
13539
13542
|
if (r.send(), (this._request.method === va.INVITE || this._request.method === va.UPDATE && this._request.body) && r.clientTransaction.state !== Ll.C.STATUS_TERMINATED) {
|
13540
|
-
this._dialog.uac_pending_reply = !0;
|
13543
|
+
console.log("this._request.body", this._request.body), this._dialog.uac_pending_reply = !0;
|
13541
13544
|
const n = () => {
|
13542
13545
|
(r.clientTransaction.state === Ll.C.STATUS_ACCEPTED || r.clientTransaction.state === Ll.C.STATUS_COMPLETED || r.clientTransaction.state === Ll.C.STATUS_TERMINATED) && (r.clientTransaction.removeListener("stateChanged", n), this._dialog.uac_pending_reply = !1);
|
13543
13546
|
};
|
@@ -14069,7 +14072,7 @@ var Gf = class Ja extends Xm {
|
|
14069
14072
|
};
|
14070
14073
|
}
|
14071
14074
|
connect(r, n = {}, o) {
|
14072
|
-
W.debug("connect()");
|
14075
|
+
console.log("rtcOfferConstraints connect"), W.debug("connect()");
|
14073
14076
|
const a = r, t = qe.cloneObject(n.eventHandlers), s = qe.cloneArray(n.extraHeaders), p = qe.cloneObject(n.mediaConstraints, {
|
14074
14077
|
audio: !0,
|
14075
14078
|
video: !0
|
@@ -17517,7 +17520,7 @@ function lf(c, r) {
|
|
17517
17520
|
}
|
17518
17521
|
function nv(c, r, n, o) {
|
17519
17522
|
const a = document.createElement("audio");
|
17520
|
-
a.id = r._id, a.className = "audioTag", a.srcObject = c
|
17523
|
+
a.id = r._id, a.className = "audioTag", a.srcObject = c, a.setSinkId(n), a.volume = o, a.play(), r.audioTag = a;
|
17521
17524
|
}
|
17522
17525
|
function rv(c) {
|
17523
17526
|
if (c && typeof c.log == "function" && typeof c.warn == "function" && typeof c.error == "function")
|
@@ -20835,7 +20838,7 @@ class bT extends Jg {
|
|
20835
20838
|
}
|
20836
20839
|
answerCall(r) {
|
20837
20840
|
const n = this.extendedCalls[r];
|
20838
|
-
this.cancelAllOutgoingUnanswered(), n.answer(this.sipOptions), this.updateCall(n), this.setActiveRoom(n.roomId), n.connection.addEventListener("
|
20841
|
+
this.cancelAllOutgoingUnanswered(), n.answer(this.sipOptions), this.updateCall(n), this.setActiveRoom(n.roomId), n.connection.addEventListener("track", (o) => {
|
20839
20842
|
this.triggerAddStream(o, n);
|
20840
20843
|
});
|
20841
20844
|
}
|
@@ -21374,7 +21377,9 @@ class bT extends Jg {
|
|
21374
21377
|
async triggerAddStream(r, n) {
|
21375
21378
|
this.setIsMuted(this.muteWhenJoin || this.isMuted), this.initialStreamValue || await this.setupStream();
|
21376
21379
|
const o = lf(this.initialStreamValue, this.microphoneInputLevel * 2), a = this.isMuted || this.muteWhenJoin;
|
21377
|
-
o.getTracks().forEach((
|
21380
|
+
o.getTracks().forEach((s) => s.enabled = !a), this.setActiveStream(o), await n.connection.getSenders()[0].replaceTrack(o.getTracks()[0]);
|
21381
|
+
const t = new MediaStream([r.track]);
|
21382
|
+
nv(t, n, this.selectedOutputDevice, this.speakerVolume), this.setupVUMeter(t, n._id), this.getCallQuality(n), this.updateCall(n);
|
21378
21383
|
}
|
21379
21384
|
initCall(r, n) {
|
21380
21385
|
if (this.checkInitialized(), r.length === 0)
|
@@ -21387,7 +21392,7 @@ class bT extends Jg {
|
|
21387
21392
|
this.callAddingInProgress = o.id, n && this.currentActiveRoomId !== void 0 && this.processRoomChange({
|
21388
21393
|
callId: o.id,
|
21389
21394
|
roomId: this.currentActiveRoomId
|
21390
|
-
}), o.connection.addEventListener("
|
21395
|
+
}), o.connection.addEventListener("track", (a) => {
|
21391
21396
|
this.triggerAddStream(a, o);
|
21392
21397
|
});
|
21393
21398
|
}
|