@d-id/client-sdk 1.1.68-staging.321 → 1.1.68-staging.323
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.
- package/dist/{index-DmShldpU.js → index-Ct9EAwCK.js} +14 -14
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +6 -6
- package/dist/{livekit-client.esm-RGXA_gNu.js → livekit-client.esm-DypJ_fOm.js} +97 -72
- package/dist/{livekit-manager-Zdv-HZDQ.js → livekit-manager-vJwMrmgQ.js} +2 -2
- package/package.json +2 -2
|
@@ -221,15 +221,15 @@ function pc() {
|
|
|
221
221
|
let i = 0, e = 0;
|
|
222
222
|
for (let n = 0; n < 28; n += 7) {
|
|
223
223
|
let s = this.buf[this.pos++];
|
|
224
|
-
if (i |= (s & 127) << n,
|
|
224
|
+
if (i |= (s & 127) << n, (s & 128) == 0)
|
|
225
225
|
return this.assertBounds(), [i, e];
|
|
226
226
|
}
|
|
227
227
|
let t = this.buf[this.pos++];
|
|
228
|
-
if (i |= (t & 15) << 28, e = (t & 112) >> 4,
|
|
228
|
+
if (i |= (t & 15) << 28, e = (t & 112) >> 4, (t & 128) == 0)
|
|
229
229
|
return this.assertBounds(), [i, e];
|
|
230
230
|
for (let n = 3; n <= 31; n += 7) {
|
|
231
231
|
let s = this.buf[this.pos++];
|
|
232
|
-
if (e |= (s & 127) << n,
|
|
232
|
+
if (e |= (s & 127) << n, (s & 128) == 0)
|
|
233
233
|
return this.assertBounds(), [i, e];
|
|
234
234
|
}
|
|
235
235
|
throw new Error("invalid varint");
|
|
@@ -240,7 +240,7 @@ function si(i, e, t) {
|
|
|
240
240
|
if (t.push(c), !a)
|
|
241
241
|
return;
|
|
242
242
|
}
|
|
243
|
-
const n = i >>> 28 & 15 | (e & 7) << 4, s =
|
|
243
|
+
const n = i >>> 28 & 15 | (e & 7) << 4, s = e >> 3 != 0;
|
|
244
244
|
if (t.push((s ? n | 128 : n) & 255), !!s) {
|
|
245
245
|
for (let r = 3; r < 31; r = r + 7) {
|
|
246
246
|
const o = e >>> r, a = !!(o >>> 7), c = (a ? o | 128 : o) & 255;
|
|
@@ -312,17 +312,17 @@ function Ds(i, e) {
|
|
|
312
312
|
}
|
|
313
313
|
function bc() {
|
|
314
314
|
let i = this.buf[this.pos++], e = i & 127;
|
|
315
|
-
if (
|
|
315
|
+
if ((i & 128) == 0)
|
|
316
316
|
return this.assertBounds(), e;
|
|
317
|
-
if (i = this.buf[this.pos++], e |= (i & 127) << 7,
|
|
317
|
+
if (i = this.buf[this.pos++], e |= (i & 127) << 7, (i & 128) == 0)
|
|
318
318
|
return this.assertBounds(), e;
|
|
319
|
-
if (i = this.buf[this.pos++], e |= (i & 127) << 14,
|
|
319
|
+
if (i = this.buf[this.pos++], e |= (i & 127) << 14, (i & 128) == 0)
|
|
320
320
|
return this.assertBounds(), e;
|
|
321
|
-
if (i = this.buf[this.pos++], e |= (i & 127) << 21,
|
|
321
|
+
if (i = this.buf[this.pos++], e |= (i & 127) << 21, (i & 128) == 0)
|
|
322
322
|
return this.assertBounds(), e;
|
|
323
323
|
i = this.buf[this.pos++], e |= (i & 15) << 28;
|
|
324
|
-
for (let t = 5; i & 128 && t < 10; t++) i = this.buf[this.pos++];
|
|
325
|
-
if (i & 128) throw new Error("invalid varint");
|
|
324
|
+
for (let t = 5; (i & 128) !== 0 && t < 10; t++) i = this.buf[this.pos++];
|
|
325
|
+
if ((i & 128) != 0) throw new Error("invalid varint");
|
|
326
326
|
return this.assertBounds(), e >>> 0;
|
|
327
327
|
}
|
|
328
328
|
function yc() {
|
|
@@ -639,8 +639,12 @@ class Tc {
|
|
|
639
639
|
for (; this.buf[this.pos++] & 128; )
|
|
640
640
|
;
|
|
641
641
|
break;
|
|
642
|
+
// eslint-disable-next-line
|
|
643
|
+
// @ts-ignore TS7029: Fallthrough case in switch
|
|
642
644
|
case ee.Bit64:
|
|
643
645
|
this.pos += 4;
|
|
646
|
+
// eslint-disable-next-line
|
|
647
|
+
// @ts-ignore TS7029: Fallthrough case in switch
|
|
644
648
|
case ee.Bit32:
|
|
645
649
|
this.pos += 4;
|
|
646
650
|
break;
|
|
@@ -828,14 +832,18 @@ const sa = {
|
|
|
828
832
|
for (let a = 0; a < i.length; a++) {
|
|
829
833
|
if (r = Ln[i.charCodeAt(a)], r === void 0)
|
|
830
834
|
switch (i[a]) {
|
|
835
|
+
// @ts-ignore TS7029: Fallthrough case in switch
|
|
831
836
|
case "=":
|
|
832
837
|
s = 0;
|
|
838
|
+
// reset state when padding found
|
|
839
|
+
// @ts-ignore TS7029: Fallthrough case in switch
|
|
833
840
|
case `
|
|
834
841
|
`:
|
|
835
842
|
case "\r":
|
|
836
843
|
case " ":
|
|
837
844
|
case " ":
|
|
838
845
|
continue;
|
|
846
|
+
// skip white-space, and padding
|
|
839
847
|
default:
|
|
840
848
|
throw Error("invalid base64 string.");
|
|
841
849
|
}
|
|
@@ -1185,6 +1193,8 @@ function Wt(i, e, t, n) {
|
|
|
1185
1193
|
if (e === null)
|
|
1186
1194
|
return n ? Ot(i, t) : En;
|
|
1187
1195
|
switch (i) {
|
|
1196
|
+
// float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity".
|
|
1197
|
+
// Either numbers or strings are accepted. Exponent notation is also accepted.
|
|
1188
1198
|
case S.DOUBLE:
|
|
1189
1199
|
case S.FLOAT:
|
|
1190
1200
|
if (e === "NaN") return Number.NaN;
|
|
@@ -1196,6 +1206,7 @@ function Wt(i, e, t, n) {
|
|
|
1196
1206
|
if (Number.isNaN(s) || !Number.isFinite(s))
|
|
1197
1207
|
break;
|
|
1198
1208
|
return i == S.FLOAT && Yr(s), s;
|
|
1209
|
+
// int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.
|
|
1199
1210
|
case S.INT32:
|
|
1200
1211
|
case S.FIXED32:
|
|
1201
1212
|
case S.SFIXED32:
|
|
@@ -1204,6 +1215,7 @@ function Wt(i, e, t, n) {
|
|
|
1204
1215
|
let r;
|
|
1205
1216
|
if (typeof e == "number" ? r = e : typeof e == "string" && e.length > 0 && e.trim().length === e.length && (r = Number(e)), r === void 0) break;
|
|
1206
1217
|
return i == S.UINT32 || i == S.FIXED32 ? Ei(r) : un(r), r;
|
|
1218
|
+
// int64, fixed64, uint64: JSON value will be a decimal string. Either numbers or strings are accepted.
|
|
1207
1219
|
case S.INT64:
|
|
1208
1220
|
case S.SFIXED64:
|
|
1209
1221
|
case S.SINT64:
|
|
@@ -1215,9 +1227,11 @@ function Wt(i, e, t, n) {
|
|
|
1215
1227
|
if (typeof e != "number" && typeof e != "string") break;
|
|
1216
1228
|
const a = J.uParse(e);
|
|
1217
1229
|
return t ? a.toString() : a;
|
|
1230
|
+
// bool:
|
|
1218
1231
|
case S.BOOL:
|
|
1219
1232
|
if (typeof e != "boolean") break;
|
|
1220
1233
|
return e;
|
|
1234
|
+
// string:
|
|
1221
1235
|
case S.STRING:
|
|
1222
1236
|
if (typeof e != "string")
|
|
1223
1237
|
break;
|
|
@@ -1227,6 +1241,8 @@ function Wt(i, e, t, n) {
|
|
|
1227
1241
|
throw new Error("invalid UTF8");
|
|
1228
1242
|
}
|
|
1229
1243
|
return e;
|
|
1244
|
+
// bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.
|
|
1245
|
+
// Either standard or URL-safe base64 encoding with/without paddings are accepted.
|
|
1230
1246
|
case S.BYTES:
|
|
1231
1247
|
if (e === "") return new Uint8Array(0);
|
|
1232
1248
|
if (typeof e != "string") break;
|
|
@@ -1315,25 +1331,34 @@ function ai(i, e, t) {
|
|
|
1315
1331
|
}
|
|
1316
1332
|
function fn(i, e) {
|
|
1317
1333
|
switch (i) {
|
|
1334
|
+
// int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.
|
|
1318
1335
|
case S.INT32:
|
|
1319
1336
|
case S.SFIXED32:
|
|
1320
1337
|
case S.SINT32:
|
|
1321
1338
|
case S.FIXED32:
|
|
1322
1339
|
case S.UINT32:
|
|
1323
1340
|
return Q(typeof e == "number"), e;
|
|
1341
|
+
// float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity".
|
|
1342
|
+
// Either numbers or strings are accepted. Exponent notation is also accepted.
|
|
1324
1343
|
case S.FLOAT:
|
|
1344
|
+
// assertFloat32(value);
|
|
1325
1345
|
case S.DOUBLE:
|
|
1326
1346
|
return Q(typeof e == "number"), Number.isNaN(e) ? "NaN" : e === Number.POSITIVE_INFINITY ? "Infinity" : e === Number.NEGATIVE_INFINITY ? "-Infinity" : e;
|
|
1347
|
+
// string:
|
|
1327
1348
|
case S.STRING:
|
|
1328
1349
|
return Q(typeof e == "string"), e;
|
|
1350
|
+
// bool:
|
|
1329
1351
|
case S.BOOL:
|
|
1330
1352
|
return Q(typeof e == "boolean"), e;
|
|
1353
|
+
// JSON value will be a decimal string. Either numbers or strings are accepted.
|
|
1331
1354
|
case S.UINT64:
|
|
1332
1355
|
case S.FIXED64:
|
|
1333
1356
|
case S.INT64:
|
|
1334
1357
|
case S.SFIXED64:
|
|
1335
1358
|
case S.SINT64:
|
|
1336
1359
|
return Q(typeof e == "bigint" || typeof e == "string" || typeof e == "number"), e.toString();
|
|
1360
|
+
// bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.
|
|
1361
|
+
// Either standard or URL-safe base64 encoding with/without paddings are accepted.
|
|
1337
1362
|
case S.BYTES:
|
|
1338
1363
|
return Q(e instanceof Uint8Array), sa.enc(e);
|
|
1339
1364
|
}
|
|
@@ -6033,7 +6058,7 @@ function rl(i) {
|
|
|
6033
6058
|
}
|
|
6034
6059
|
var gn = { exports: {} }, al = gn.exports, zs;
|
|
6035
6060
|
function ol() {
|
|
6036
|
-
return zs || (zs = 1, function(i) {
|
|
6061
|
+
return zs || (zs = 1, (function(i) {
|
|
6037
6062
|
(function(e, t) {
|
|
6038
6063
|
i.exports ? i.exports = t() : e.log = t();
|
|
6039
6064
|
})(al, function() {
|
|
@@ -6164,7 +6189,7 @@ function ol() {
|
|
|
6164
6189
|
return r;
|
|
6165
6190
|
}, o.default = o, o;
|
|
6166
6191
|
});
|
|
6167
|
-
}(gn)), gn.exports;
|
|
6192
|
+
})(gn)), gn.exports;
|
|
6168
6193
|
}
|
|
6169
6194
|
var cn = ol(), $t;
|
|
6170
6195
|
(function(i) {
|
|
@@ -6199,7 +6224,7 @@ function bm(i, e) {
|
|
|
6199
6224
|
}, n.setLevel(n.getLevel());
|
|
6200
6225
|
});
|
|
6201
6226
|
}
|
|
6202
|
-
const cl = cn.getLogger("lk-e2ee"), Lt = 7e3, dl = [0, 300,
|
|
6227
|
+
const cl = cn.getLogger("lk-e2ee"), Lt = 7e3, dl = [0, 300, 4 * 300, 9 * 300, 16 * 300, Lt, Lt, Lt, Lt, Lt];
|
|
6203
6228
|
class ll {
|
|
6204
6229
|
constructor(e) {
|
|
6205
6230
|
this._retryDelays = e !== void 0 ? [...e] : dl;
|
|
@@ -7332,7 +7357,7 @@ function Eo(i) {
|
|
|
7332
7357
|
}
|
|
7333
7358
|
var nr = /* @__PURE__ */ Object.freeze({ __proto__: null, shimAudioContext: Eo, shimCallbacksAPI: bo, shimConstraints: ko, shimCreateOfferLegacy: Co, shimGetUserMedia: yo, shimLocalStreamsAPI: go, shimRTCIceServerUrls: To, shimRemoteStreamsAPI: vo, shimTrackEventTransceiver: So }), oi = { exports: {} }, ir;
|
|
7334
7359
|
function gl() {
|
|
7335
|
-
return ir || (ir = 1, function(i) {
|
|
7360
|
+
return ir || (ir = 1, (function(i) {
|
|
7336
7361
|
const e = {};
|
|
7337
7362
|
e.generateIdentifier = function() {
|
|
7338
7363
|
return Math.random().toString(36).substring(2, 12);
|
|
@@ -7588,7 +7613,7 @@ a=ice-pwd:` + t.password + `\r
|
|
|
7588
7613
|
ssrc: c
|
|
7589
7614
|
});
|
|
7590
7615
|
let u = e.matchPrefix(t, "b=");
|
|
7591
|
-
return u.length && (u[0].indexOf("b=TIAS:") === 0 ? u = parseInt(u[0].substring(7), 10) : u[0].indexOf("b=AS:") === 0 ? u = parseInt(u[0].substring(5), 10) * 1e3 * 0.95 -
|
|
7616
|
+
return u.length && (u[0].indexOf("b=TIAS:") === 0 ? u = parseInt(u[0].substring(7), 10) : u[0].indexOf("b=AS:") === 0 ? u = parseInt(u[0].substring(5), 10) * 1e3 * 0.95 - 2e3 * 8 : u = void 0, n.forEach((h) => {
|
|
7592
7617
|
h.maxBitrate = u;
|
|
7593
7618
|
})), n;
|
|
7594
7619
|
}, e.parseRtcpParameters = function(t) {
|
|
@@ -7700,7 +7725,7 @@ t=0 0\r
|
|
|
7700
7725
|
return !1;
|
|
7701
7726
|
return !0;
|
|
7702
7727
|
}, i.exports = e;
|
|
7703
|
-
}(oi)), oi.exports;
|
|
7728
|
+
})(oi)), oi.exports;
|
|
7704
7729
|
}
|
|
7705
7730
|
var Po = gl(), Rt = /* @__PURE__ */ rl(Po), vl = /* @__PURE__ */ sc({ __proto__: null, default: Rt }, [Po]);
|
|
7706
7731
|
function vn(i) {
|
|
@@ -8317,7 +8342,7 @@ function gs(i) {
|
|
|
8317
8342
|
function wo(i) {
|
|
8318
8343
|
return m(this, arguments, void 0, function(e) {
|
|
8319
8344
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 200;
|
|
8320
|
-
return function* () {
|
|
8345
|
+
return (function* () {
|
|
8321
8346
|
const n = vs();
|
|
8322
8347
|
if (n) {
|
|
8323
8348
|
const s = n.createAnalyser();
|
|
@@ -8328,7 +8353,7 @@ function wo(i) {
|
|
|
8328
8353
|
return n.close(), !c;
|
|
8329
8354
|
}
|
|
8330
8355
|
return !1;
|
|
8331
|
-
}();
|
|
8356
|
+
})();
|
|
8332
8357
|
});
|
|
8333
8358
|
}
|
|
8334
8359
|
function vs() {
|
|
@@ -9132,9 +9157,9 @@ function Im(i) {
|
|
|
9132
9157
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
9133
9158
|
name: Lo
|
|
9134
9159
|
}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "encrypt";
|
|
9135
|
-
return function* () {
|
|
9160
|
+
return (function* () {
|
|
9136
9161
|
return crypto.subtle.importKey("raw", e, t, !1, n === "derive" ? ["deriveBits", "deriveKey"] : ["encrypt", "decrypt"]);
|
|
9137
|
-
}();
|
|
9162
|
+
})();
|
|
9138
9163
|
});
|
|
9139
9164
|
}
|
|
9140
9165
|
function hu(i) {
|
|
@@ -9694,7 +9719,7 @@ class se {
|
|
|
9694
9719
|
return m(this, arguments, void 0, function(t) {
|
|
9695
9720
|
var n = this;
|
|
9696
9721
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
9697
|
-
return function* () {
|
|
9722
|
+
return (function* () {
|
|
9698
9723
|
var r;
|
|
9699
9724
|
if (((r = se.userMediaPromiseMap) === null || r === void 0 ? void 0 : r.size) > 0) {
|
|
9700
9725
|
U.debug("awaiting getUserMedia promise");
|
|
@@ -9723,7 +9748,7 @@ class se {
|
|
|
9723
9748
|
});
|
|
9724
9749
|
}
|
|
9725
9750
|
return n._previousDevices = o, t && (o = o.filter((a) => a.kind === t)), o;
|
|
9726
|
-
}();
|
|
9751
|
+
})();
|
|
9727
9752
|
});
|
|
9728
9753
|
}
|
|
9729
9754
|
normalizeDeviceId(e, t, n) {
|
|
@@ -9897,9 +9922,9 @@ class ys {
|
|
|
9897
9922
|
return m(this, arguments, void 0, function(r, o, a, c) {
|
|
9898
9923
|
var d = this;
|
|
9899
9924
|
let l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
|
|
9900
|
-
return function* () {
|
|
9925
|
+
return (function* () {
|
|
9901
9926
|
return d.state = H.CONNECTING, d.options = a, yield d.connect(r, o, a, c, l);
|
|
9902
|
-
}();
|
|
9927
|
+
})();
|
|
9903
9928
|
});
|
|
9904
9929
|
}
|
|
9905
9930
|
reconnect(e, t, n, s) {
|
|
@@ -9919,7 +9944,7 @@ class ys {
|
|
|
9919
9944
|
return m(this, arguments, void 0, function(r, o, a, c) {
|
|
9920
9945
|
var d = this;
|
|
9921
9946
|
let l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
|
|
9922
|
-
return function* () {
|
|
9947
|
+
return (function* () {
|
|
9923
9948
|
const u = yield d.connectionLock.lock();
|
|
9924
9949
|
d.connectOptions = a, d.useV0SignalPath = l;
|
|
9925
9950
|
const h = zl(), p = l ? Pu(o, h, a) : _u(o, h, a), b = iu(r, p, l).toString(), g = ru(b).toString();
|
|
@@ -9996,7 +10021,7 @@ class ys {
|
|
|
9996
10021
|
u();
|
|
9997
10022
|
}
|
|
9998
10023
|
}));
|
|
9999
|
-
}();
|
|
10024
|
+
})();
|
|
10000
10025
|
});
|
|
10001
10026
|
}
|
|
10002
10027
|
startReadingLoop(e, t) {
|
|
@@ -10018,7 +10043,7 @@ class ys {
|
|
|
10018
10043
|
return m(this, arguments, void 0, function() {
|
|
10019
10044
|
var e = this;
|
|
10020
10045
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Close method called on signal client";
|
|
10021
|
-
return function* () {
|
|
10046
|
+
return (function* () {
|
|
10022
10047
|
if ([H.DISCONNECTING || H.DISCONNECTED].includes(e.state)) {
|
|
10023
10048
|
e.log.debug("ignoring signal close as it's already in disconnecting state");
|
|
10024
10049
|
return;
|
|
@@ -10040,7 +10065,7 @@ class ys {
|
|
|
10040
10065
|
} finally {
|
|
10041
10066
|
t && (e.state = H.DISCONNECTED), s();
|
|
10042
10067
|
}
|
|
10043
|
-
}();
|
|
10068
|
+
})();
|
|
10044
10069
|
});
|
|
10045
10070
|
}
|
|
10046
10071
|
// initial offer after joining
|
|
@@ -10091,7 +10116,7 @@ class ys {
|
|
|
10091
10116
|
return m(this, arguments, void 0, function(n, s) {
|
|
10092
10117
|
var r = this;
|
|
10093
10118
|
let o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
10094
|
-
return function* () {
|
|
10119
|
+
return (function* () {
|
|
10095
10120
|
const a = r.getNextRequestId();
|
|
10096
10121
|
return yield r.sendRequest({
|
|
10097
10122
|
case: "updateMetadata",
|
|
@@ -10102,7 +10127,7 @@ class ys {
|
|
|
10102
10127
|
attributes: o
|
|
10103
10128
|
})
|
|
10104
10129
|
}), a;
|
|
10105
|
-
}();
|
|
10130
|
+
})();
|
|
10106
10131
|
});
|
|
10107
10132
|
}
|
|
10108
10133
|
sendUpdateTrackSettings(e) {
|
|
@@ -10182,7 +10207,7 @@ class ys {
|
|
|
10182
10207
|
return m(this, arguments, void 0, function(t) {
|
|
10183
10208
|
var n = this;
|
|
10184
10209
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
10185
|
-
return function* () {
|
|
10210
|
+
return (function* () {
|
|
10186
10211
|
if (!s && !Cu(t) && n.state === H.RECONNECTING) {
|
|
10187
10212
|
n.queuedRequests.push(() => m(n, void 0, void 0, function* () {
|
|
10188
10213
|
yield this.sendRequest(t, !0);
|
|
@@ -10207,7 +10232,7 @@ class ys {
|
|
|
10207
10232
|
error: a
|
|
10208
10233
|
}));
|
|
10209
10234
|
}
|
|
10210
|
-
}();
|
|
10235
|
+
})();
|
|
10211
10236
|
});
|
|
10212
10237
|
}
|
|
10213
10238
|
handleSignalResponse(e) {
|
|
@@ -10954,7 +10979,7 @@ function ks() {
|
|
|
10954
10979
|
}
|
|
10955
10980
|
var Tr;
|
|
10956
10981
|
function wu() {
|
|
10957
|
-
return Tr || (Tr = 1, function(i) {
|
|
10982
|
+
return Tr || (Tr = 1, (function(i) {
|
|
10958
10983
|
var e = function(a) {
|
|
10959
10984
|
return String(Number(a)) === a ? Number(a) : a;
|
|
10960
10985
|
}, t = function(a, c, d, l) {
|
|
@@ -11018,7 +11043,7 @@ function wu() {
|
|
|
11018
11043
|
});
|
|
11019
11044
|
});
|
|
11020
11045
|
};
|
|
11021
|
-
}(vi)), vi;
|
|
11046
|
+
})(vi)), vi;
|
|
11022
11047
|
}
|
|
11023
11048
|
var yi, Sr;
|
|
11024
11049
|
function Iu() {
|
|
@@ -11675,7 +11700,7 @@ class Lu {
|
|
|
11675
11700
|
return m(this, arguments, void 0, function(n, s) {
|
|
11676
11701
|
var r = this;
|
|
11677
11702
|
let o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.peerConnectionTimeout;
|
|
11678
|
-
return function* () {
|
|
11703
|
+
return (function* () {
|
|
11679
11704
|
if (n.getConnectionState() !== "connected")
|
|
11680
11705
|
return new Promise((c, d) => m(r, void 0, void 0, function* () {
|
|
11681
11706
|
const l = () => {
|
|
@@ -11692,7 +11717,7 @@ class Lu {
|
|
|
11692
11717
|
}
|
|
11693
11718
|
re.clearTimeout(u), s == null || s.signal.removeEventListener("abort", l), c();
|
|
11694
11719
|
}));
|
|
11695
|
-
}();
|
|
11720
|
+
})();
|
|
11696
11721
|
});
|
|
11697
11722
|
}
|
|
11698
11723
|
}
|
|
@@ -12049,7 +12074,7 @@ class qo extends T {
|
|
|
12049
12074
|
return m(this, arguments, void 0, function() {
|
|
12050
12075
|
var e = this;
|
|
12051
12076
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Wu;
|
|
12052
|
-
return function* () {
|
|
12077
|
+
return (function* () {
|
|
12053
12078
|
var n;
|
|
12054
12079
|
if (e.kind === T.Kind.Audio)
|
|
12055
12080
|
throw new Error("cannot get dimensions for audio tracks");
|
|
@@ -12062,7 +12087,7 @@ class qo extends T {
|
|
|
12062
12087
|
yield ae(50);
|
|
12063
12088
|
}
|
|
12064
12089
|
throw new Ae("unable to get track dimensions after timeout");
|
|
12065
|
-
}();
|
|
12090
|
+
})();
|
|
12066
12091
|
});
|
|
12067
12092
|
}
|
|
12068
12093
|
setDeviceId(e) {
|
|
@@ -12077,7 +12102,7 @@ class qo extends T {
|
|
|
12077
12102
|
return m(this, arguments, void 0, function() {
|
|
12078
12103
|
var e = this;
|
|
12079
12104
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
12080
|
-
return function* () {
|
|
12105
|
+
return (function* () {
|
|
12081
12106
|
if (e.source === T.Source.ScreenShare)
|
|
12082
12107
|
return;
|
|
12083
12108
|
const {
|
|
@@ -12085,7 +12110,7 @@ class qo extends T {
|
|
|
12085
12110
|
groupId: s
|
|
12086
12111
|
} = e._mediaStreamTrack.getSettings(), r = e.kind === T.Kind.Audio ? "audioinput" : "videoinput";
|
|
12087
12112
|
return t ? se.getInstance().normalizeDeviceId(r, n, s) : n;
|
|
12088
|
-
}();
|
|
12113
|
+
})();
|
|
12089
12114
|
});
|
|
12090
12115
|
}
|
|
12091
12116
|
mute() {
|
|
@@ -12231,7 +12256,7 @@ class qo extends T {
|
|
|
12231
12256
|
return m(this, arguments, void 0, function(t) {
|
|
12232
12257
|
var n = this;
|
|
12233
12258
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
12234
|
-
return function* () {
|
|
12259
|
+
return (function* () {
|
|
12235
12260
|
var r;
|
|
12236
12261
|
const o = yield n.trackChangeLock.lock();
|
|
12237
12262
|
try {
|
|
@@ -12265,7 +12290,7 @@ class qo extends T {
|
|
|
12265
12290
|
} finally {
|
|
12266
12291
|
o();
|
|
12267
12292
|
}
|
|
12268
|
-
}();
|
|
12293
|
+
})();
|
|
12269
12294
|
});
|
|
12270
12295
|
}
|
|
12271
12296
|
getProcessor() {
|
|
@@ -12280,14 +12305,14 @@ class qo extends T {
|
|
|
12280
12305
|
return m(this, arguments, void 0, function() {
|
|
12281
12306
|
var e = this;
|
|
12282
12307
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
12283
|
-
return function* () {
|
|
12308
|
+
return (function* () {
|
|
12284
12309
|
const n = yield e.trackChangeLock.lock();
|
|
12285
12310
|
try {
|
|
12286
12311
|
yield e.internalStopProcessor(t);
|
|
12287
12312
|
} finally {
|
|
12288
12313
|
n();
|
|
12289
12314
|
}
|
|
12290
|
-
}();
|
|
12315
|
+
})();
|
|
12291
12316
|
});
|
|
12292
12317
|
}
|
|
12293
12318
|
/**
|
|
@@ -12299,10 +12324,10 @@ class qo extends T {
|
|
|
12299
12324
|
return m(this, arguments, void 0, function() {
|
|
12300
12325
|
var e = this;
|
|
12301
12326
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
12302
|
-
return function* () {
|
|
12327
|
+
return (function* () {
|
|
12303
12328
|
var n, s;
|
|
12304
12329
|
e.processor && (e.log.debug("stopping processor", e.logContext), (n = e.processor.processedTrack) === null || n === void 0 || n.stop(), yield e.processor.destroy(), e.processor = void 0, t || ((s = e.processorElement) === null || s === void 0 || s.remove(), e.processorElement = void 0), yield e._mediaStreamTrack.applyConstraints(e._constraints), yield e.setMediaStreamTrack(e._mediaStreamTrack, !0), e.emit(_.TrackProcessorUpdate));
|
|
12305
|
-
}();
|
|
12330
|
+
})();
|
|
12306
12331
|
});
|
|
12307
12332
|
}
|
|
12308
12333
|
/** @internal */
|
|
@@ -12900,7 +12925,7 @@ class rn extends qo {
|
|
|
12900
12925
|
return m(this, arguments, void 0, function(n) {
|
|
12901
12926
|
var s = this;
|
|
12902
12927
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
12903
|
-
return function* () {
|
|
12928
|
+
return (function* () {
|
|
12904
12929
|
var o, a, c, d, l, u;
|
|
12905
12930
|
if (yield t.setProcessor.call(s, n, r), !((l = s.processor) === null || l === void 0) && l.processedTrack)
|
|
12906
12931
|
try {
|
|
@@ -12917,7 +12942,7 @@ class rn extends qo {
|
|
|
12917
12942
|
if (a) throw a.error;
|
|
12918
12943
|
}
|
|
12919
12944
|
}
|
|
12920
|
-
}();
|
|
12945
|
+
})();
|
|
12921
12946
|
});
|
|
12922
12947
|
}
|
|
12923
12948
|
setDegradationPreference(e) {
|
|
@@ -13163,7 +13188,7 @@ class oh extends Ve.EventEmitter {
|
|
|
13163
13188
|
let {
|
|
13164
13189
|
channel: o
|
|
13165
13190
|
} = s;
|
|
13166
|
-
return function* () {
|
|
13191
|
+
return (function* () {
|
|
13167
13192
|
if (o) {
|
|
13168
13193
|
if (o.label === Ar)
|
|
13169
13194
|
r.reliableDCSub = o;
|
|
@@ -13173,7 +13198,7 @@ class oh extends Ve.EventEmitter {
|
|
|
13173
13198
|
return;
|
|
13174
13199
|
r.log.debug("on data channel ".concat(o.id, ", ").concat(o.label), r.logContext), o.onmessage = r.handleDataMessage;
|
|
13175
13200
|
}
|
|
13176
|
-
}();
|
|
13201
|
+
})();
|
|
13177
13202
|
}), this.handleDataMessage = (n) => m(this, void 0, void 0, function* () {
|
|
13178
13203
|
var s, r, o, a, c;
|
|
13179
13204
|
const d = yield this.dataProcessLock.lock();
|
|
@@ -13303,7 +13328,7 @@ class oh extends Ve.EventEmitter {
|
|
|
13303
13328
|
return m(this, arguments, void 0, function(r, o, a, c) {
|
|
13304
13329
|
var d = this;
|
|
13305
13330
|
let l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
|
|
13306
|
-
return function* () {
|
|
13331
|
+
return (function* () {
|
|
13307
13332
|
d.url = r, d.token = o, d.signalOpts = a, d.maxJoinAttempts = a.maxRetries;
|
|
13308
13333
|
try {
|
|
13309
13334
|
d.joinAttempts += 1, d.setupSignalClientCallbacks();
|
|
@@ -13321,7 +13346,7 @@ class oh extends Ve.EventEmitter {
|
|
|
13321
13346
|
}
|
|
13322
13347
|
throw u;
|
|
13323
13348
|
}
|
|
13324
|
-
}();
|
|
13349
|
+
})();
|
|
13325
13350
|
});
|
|
13326
13351
|
}
|
|
13327
13352
|
close() {
|
|
@@ -13812,7 +13837,7 @@ class oh extends Ve.EventEmitter {
|
|
|
13812
13837
|
return m(this, arguments, void 0, function(t) {
|
|
13813
13838
|
var n = this;
|
|
13814
13839
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.subscriberPrimary;
|
|
13815
|
-
return function* () {
|
|
13840
|
+
return (function* () {
|
|
13816
13841
|
var r;
|
|
13817
13842
|
if (!n.pcManager)
|
|
13818
13843
|
throw new Z("PC manager is closed");
|
|
@@ -13833,7 +13858,7 @@ class oh extends Ve.EventEmitter {
|
|
|
13833
13858
|
yield ae(50);
|
|
13834
13859
|
}
|
|
13835
13860
|
throw L.internal("could not establish ".concat(a, " connection, state: ").concat(o.getICEConnectionState()));
|
|
13836
|
-
}();
|
|
13861
|
+
})();
|
|
13837
13862
|
});
|
|
13838
13863
|
}
|
|
13839
13864
|
ensurePublisherConnected(e) {
|
|
@@ -14068,7 +14093,7 @@ class dh extends Ho {
|
|
|
14068
14093
|
return m(this, arguments, void 0, function() {
|
|
14069
14094
|
var e = this;
|
|
14070
14095
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
14071
|
-
return function* () {
|
|
14096
|
+
return (function* () {
|
|
14072
14097
|
var n, s, r, o;
|
|
14073
14098
|
let a = /* @__PURE__ */ new Set();
|
|
14074
14099
|
const c = t.signal ? e.withAbortSignal(t.signal) : e;
|
|
@@ -14090,7 +14115,7 @@ class dh extends Ho {
|
|
|
14090
14115
|
}
|
|
14091
14116
|
}
|
|
14092
14117
|
return Array.from(a);
|
|
14093
|
-
}();
|
|
14118
|
+
})();
|
|
14094
14119
|
});
|
|
14095
14120
|
}
|
|
14096
14121
|
}
|
|
@@ -14194,7 +14219,7 @@ class lh extends Ho {
|
|
|
14194
14219
|
return m(this, arguments, void 0, function() {
|
|
14195
14220
|
var e = this;
|
|
14196
14221
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
14197
|
-
return function* () {
|
|
14222
|
+
return (function* () {
|
|
14198
14223
|
var n, s, r, o;
|
|
14199
14224
|
let a = "";
|
|
14200
14225
|
const c = t.signal ? e.withAbortSignal(t.signal) : e;
|
|
@@ -14213,7 +14238,7 @@ class lh extends Ho {
|
|
|
14213
14238
|
}
|
|
14214
14239
|
}
|
|
14215
14240
|
return a;
|
|
14216
|
-
}();
|
|
14241
|
+
})();
|
|
14217
14242
|
});
|
|
14218
14243
|
}
|
|
14219
14244
|
}
|
|
@@ -15065,9 +15090,9 @@ class Ke extends Ve.EventEmitter {
|
|
|
15065
15090
|
(function(i) {
|
|
15066
15091
|
(function(e) {
|
|
15067
15092
|
e.Desired = "desired", e.Subscribed = "subscribed", e.Unsubscribed = "unsubscribed";
|
|
15068
|
-
})(i.SubscriptionStatus || (i.SubscriptionStatus = {})), function(e) {
|
|
15093
|
+
})(i.SubscriptionStatus || (i.SubscriptionStatus = {})), (function(e) {
|
|
15069
15094
|
e.Allowed = "allowed", e.NotAllowed = "not_allowed";
|
|
15070
|
-
}(i.PermissionStatus || (i.PermissionStatus = {}));
|
|
15095
|
+
})(i.PermissionStatus || (i.PermissionStatus = {}));
|
|
15071
15096
|
})(Ke || (Ke = {}));
|
|
15072
15097
|
class Xi extends Ke {
|
|
15073
15098
|
get isUpstreamPaused() {
|
|
@@ -15628,7 +15653,7 @@ class Sh extends zo {
|
|
|
15628
15653
|
name: r,
|
|
15629
15654
|
attributes: o
|
|
15630
15655
|
} = t;
|
|
15631
|
-
return function* () {
|
|
15656
|
+
return (function* () {
|
|
15632
15657
|
return new oe((a, c) => m(n, void 0, void 0, function* () {
|
|
15633
15658
|
var d, l;
|
|
15634
15659
|
try {
|
|
@@ -15659,7 +15684,7 @@ class Sh extends zo {
|
|
|
15659
15684
|
u instanceof Error ? c(u) : c(new Error(String(u)));
|
|
15660
15685
|
}
|
|
15661
15686
|
}));
|
|
15662
|
-
}();
|
|
15687
|
+
})();
|
|
15663
15688
|
});
|
|
15664
15689
|
}
|
|
15665
15690
|
/**
|
|
@@ -15849,7 +15874,7 @@ class Sh extends zo {
|
|
|
15849
15874
|
return m(this, arguments, void 0, function(n, s) {
|
|
15850
15875
|
var r = this;
|
|
15851
15876
|
let o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
15852
|
-
return function* () {
|
|
15877
|
+
return (function* () {
|
|
15853
15878
|
var a, c, d, l;
|
|
15854
15879
|
qe(n) && n.setAudioContext(r.audioContext), yield (a = r.reconnectFuture) === null || a === void 0 ? void 0 : a.promise, r.republishPromise && !o && (yield r.republishPromise), mt(n) && r.pendingPublishPromises.has(n) && (yield r.pendingPublishPromises.get(n));
|
|
15855
15880
|
let u;
|
|
@@ -15932,7 +15957,7 @@ class Sh extends zo {
|
|
|
15932
15957
|
} finally {
|
|
15933
15958
|
r.pendingPublishPromises.delete(n);
|
|
15934
15959
|
}
|
|
15935
|
-
}();
|
|
15960
|
+
})();
|
|
15936
15961
|
});
|
|
15937
15962
|
}
|
|
15938
15963
|
waitUntilEngineConnected() {
|
|
@@ -16223,7 +16248,7 @@ class Sh extends zo {
|
|
|
16223
16248
|
return m(this, arguments, void 0, function(t) {
|
|
16224
16249
|
var n = this;
|
|
16225
16250
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
16226
|
-
return function* () {
|
|
16251
|
+
return (function* () {
|
|
16227
16252
|
n.republishPromise && (yield n.republishPromise), n.republishPromise = new oe((r, o) => m(n, void 0, void 0, function* () {
|
|
16228
16253
|
try {
|
|
16229
16254
|
const a = [];
|
|
@@ -16241,7 +16266,7 @@ class Sh extends zo {
|
|
|
16241
16266
|
this.republishPromise = void 0;
|
|
16242
16267
|
}
|
|
16243
16268
|
})), yield n.republishPromise;
|
|
16244
|
-
}();
|
|
16269
|
+
})();
|
|
16245
16270
|
});
|
|
16246
16271
|
}
|
|
16247
16272
|
/**
|
|
@@ -16255,7 +16280,7 @@ class Sh extends zo {
|
|
|
16255
16280
|
return m(this, arguments, void 0, function(t) {
|
|
16256
16281
|
var n = this;
|
|
16257
16282
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
16258
|
-
return function* () {
|
|
16283
|
+
return (function* () {
|
|
16259
16284
|
const r = s.reliable ? B.RELIABLE : B.LOSSY, o = s.destinationIdentities, a = s.topic;
|
|
16260
16285
|
let c = new ss({
|
|
16261
16286
|
participantIdentity: n.identity,
|
|
@@ -16271,7 +16296,7 @@ class Sh extends zo {
|
|
|
16271
16296
|
}
|
|
16272
16297
|
});
|
|
16273
16298
|
yield n.engine.sendDataPacket(d, r);
|
|
16274
|
-
}();
|
|
16299
|
+
})();
|
|
16275
16300
|
});
|
|
16276
16301
|
}
|
|
16277
16302
|
/**
|
|
@@ -16992,7 +17017,7 @@ class an extends Ve.EventEmitter {
|
|
|
16992
17017
|
return m(t, [...c], void 0, function() {
|
|
16993
17018
|
var l = this;
|
|
16994
17019
|
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
16995
|
-
return function* () {
|
|
17020
|
+
return (function* () {
|
|
16996
17021
|
var h, p, b;
|
|
16997
17022
|
const g = yield l.disconnectLock.lock();
|
|
16998
17023
|
try {
|
|
@@ -17008,7 +17033,7 @@ class an extends Ve.EventEmitter {
|
|
|
17008
17033
|
} finally {
|
|
17009
17034
|
g();
|
|
17010
17035
|
}
|
|
17011
|
-
}();
|
|
17036
|
+
})();
|
|
17012
17037
|
});
|
|
17013
17038
|
}, this.onPageLeave = () => m(this, void 0, void 0, function* () {
|
|
17014
17039
|
this.log.info("Page leave detected, disconnecting", this.logContext), yield this.disconnect();
|
|
@@ -17576,7 +17601,7 @@ class an extends Ve.EventEmitter {
|
|
|
17576
17601
|
return m(this, arguments, void 0, function(n, s) {
|
|
17577
17602
|
var r = this;
|
|
17578
17603
|
let o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
17579
|
-
return function* () {
|
|
17604
|
+
return (function* () {
|
|
17580
17605
|
var a, c, d, l, u, h, p;
|
|
17581
17606
|
let b = !0, g = !1;
|
|
17582
17607
|
const P = o ? {
|
|
@@ -17633,7 +17658,7 @@ class an extends Ve.EventEmitter {
|
|
|
17633
17658
|
}
|
|
17634
17659
|
}
|
|
17635
17660
|
return g && (r.localParticipant.activeDeviceMap.set(n, s), r.emit(E.ActiveDeviceChanged, n, s)), b;
|
|
17636
|
-
}();
|
|
17661
|
+
})();
|
|
17637
17662
|
});
|
|
17638
17663
|
}
|
|
17639
17664
|
setupLocalParticipantEvents() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as De, C as O, S as p, a as Fe, b as Ne, A as m, d as Ue, l as de, e as v, f as N, g as je, h as xe, i as A, n as Oe } from "./index-
|
|
1
|
+
import { c as De, C as O, S as p, a as Fe, b as Ne, A as m, d as Ue, l as de, e as v, f as N, g as je, h as xe, i as A, n as Oe } from "./index-Ct9EAwCK.js";
|
|
2
2
|
function Je(T, L, g, i) {
|
|
3
3
|
const M = De(T, `${L}/v2/agents/${g}`, i);
|
|
4
4
|
return {
|
|
@@ -13,7 +13,7 @@ const Be = {
|
|
|
13
13
|
}, ue = 2e4;
|
|
14
14
|
async function Qe() {
|
|
15
15
|
try {
|
|
16
|
-
return await import("./livekit-client.esm-
|
|
16
|
+
return await import("./livekit-client.esm-DypJ_fOm.js");
|
|
17
17
|
} catch {
|
|
18
18
|
throw new Error(
|
|
19
19
|
"LiveKit client is required for this streaming manager. Please install it using: npm install livekit-client"
|