@cloudflare/realtimekit-react 0.5.0-staging.123 → 0.5.0-staging.125
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.cjs.js +15 -15
- package/dist/index.es.js +430 -430
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1672,12 +1672,12 @@ for (let i = 0; i < encTable.length; i++)
|
|
|
1672
1672
|
decTable["-".charCodeAt(0)] = encTable.indexOf("+");
|
|
1673
1673
|
decTable["_".charCodeAt(0)] = encTable.indexOf("/");
|
|
1674
1674
|
function base64decode(base64Str) {
|
|
1675
|
-
let
|
|
1675
|
+
let es2 = base64Str.length * 3 / 4;
|
|
1676
1676
|
if (base64Str[base64Str.length - 2] == "=")
|
|
1677
|
-
|
|
1677
|
+
es2 -= 2;
|
|
1678
1678
|
else if (base64Str[base64Str.length - 1] == "=")
|
|
1679
|
-
|
|
1680
|
-
let bytes = new Uint8Array(
|
|
1679
|
+
es2 -= 1;
|
|
1680
|
+
let bytes = new Uint8Array(es2), bytePos = 0, groupPos = 0, b, p2 = 0;
|
|
1681
1681
|
for (let i = 0; i < base64Str.length; i++) {
|
|
1682
1682
|
b = decTable[base64Str.charCodeAt(i)];
|
|
1683
1683
|
if (b === void 0) {
|
|
@@ -4882,10 +4882,10 @@ const no = {
|
|
|
4882
4882
|
PREPROD: "preprod",
|
|
4883
4883
|
PROD: "prod"
|
|
4884
4884
|
};
|
|
4885
|
-
var
|
|
4885
|
+
var Bt;
|
|
4886
4886
|
(function(s) {
|
|
4887
4887
|
s.AUDIO = "AUDIO", s.VIDEO = "VIDEO", s.SPEAKER = "SPEAKER", s.SCREENSHARE = "SCREENSHARE";
|
|
4888
|
-
})(
|
|
4888
|
+
})(Bt || (Bt = {}));
|
|
4889
4889
|
var Rh;
|
|
4890
4890
|
(function(s) {
|
|
4891
4891
|
s[s.INIT = 0] = "INIT", s[s.ACCEPTED = 1] = "ACCEPTED", s[s.DENIED = 2] = "DENIED", s[s.SYS_DENIED = 3] = "SYS_DENIED", s[s.FAILED = 4] = "FAILED", s[s.NOTFOUND = 5] = "NOTFOUND", s[s.NOT_APPLICABLE = 6] = "NOT_APPLICABLE";
|
|
@@ -5478,7 +5478,7 @@ class Om extends lt {
|
|
|
5478
5478
|
}) || e[e.length - 1];
|
|
5479
5479
|
}
|
|
5480
5480
|
parseRTCReport(e, r = [], i = false, n = void 0, o = void 0) {
|
|
5481
|
-
var b, R, L, H, F, B, q, ie, pe, Ye, Ss,
|
|
5481
|
+
var b, R, L, H, F, B, q, ie, pe, Ye, Ss, ts, cr;
|
|
5482
5482
|
const c = e, d = new Dm(), h = r.length ? new Set(r) : void 0, m = [], g = [], T = [], _ = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
|
|
5483
5483
|
for (const M of c.values()) {
|
|
5484
5484
|
if (h) {
|
|
@@ -5743,7 +5743,7 @@ class Om extends lt {
|
|
|
5743
5743
|
score: +(k.score * 10).toFixed(),
|
|
5744
5744
|
packetsLostPercentage: Yc({
|
|
5745
5745
|
packetsLost: (k.packetsLost || 0) - (((Ss = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : Ss.packetsLost) || 0),
|
|
5746
|
-
packetsReceived: (k.packetsReceived || 0) - (((
|
|
5746
|
+
packetsReceived: (k.packetsReceived || 0) - (((ts = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : ts.packetsReceived) || 0)
|
|
5747
5747
|
}),
|
|
5748
5748
|
jitter: k.jitter || 0,
|
|
5749
5749
|
isScreenShare: this.screenShareConsumers.has(C),
|
|
@@ -6111,7 +6111,7 @@ class Nm extends Om {
|
|
|
6111
6111
|
};
|
|
6112
6112
|
}
|
|
6113
6113
|
parseRTCReport(e, r = [], i = false, n = void 0, o = void 0) {
|
|
6114
|
-
var b, R, L, H, F, B, q, ie, pe, Ye, Ss,
|
|
6114
|
+
var b, R, L, H, F, B, q, ie, pe, Ye, Ss, ts, cr;
|
|
6115
6115
|
const c = e, d = new Dm(), h = r.length ? new Set(r) : void 0, m = [], g = [], T = [], _ = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
|
|
6116
6116
|
for (const M of c.values()) {
|
|
6117
6117
|
if (h) {
|
|
@@ -6376,7 +6376,7 @@ class Nm extends Om {
|
|
|
6376
6376
|
score: +(k.score * 10).toFixed(),
|
|
6377
6377
|
packetsLostPercentage: Yc({
|
|
6378
6378
|
packetsLost: (k.packetsLost || 0) - (((Ss = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : Ss.packetsLost) || 0),
|
|
6379
|
-
packetsReceived: (k.packetsReceived || 0) - (((
|
|
6379
|
+
packetsReceived: (k.packetsReceived || 0) - (((ts = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : ts.packetsReceived) || 0)
|
|
6380
6380
|
}),
|
|
6381
6381
|
jitter: k.jitter || 0,
|
|
6382
6382
|
isScreenShare: this.screenShareConsumers.has(C),
|
|
@@ -6696,7 +6696,7 @@ let Q = class extends lt {
|
|
|
6696
6696
|
}
|
|
6697
6697
|
devices(e, r, i) {
|
|
6698
6698
|
this.eventHandler.callEvent({
|
|
6699
|
-
event: e ===
|
|
6699
|
+
event: e === Bt.AUDIO && N.AUDIO_DEVICES_UPDATES || e === Bt.VIDEO && N.VIDEO_DEVICES_UPDATES || e === Bt.SPEAKER && N.SPEAKER_DEVICES_UPDATES,
|
|
6700
6700
|
metaData: {
|
|
6701
6701
|
deviceList: r
|
|
6702
6702
|
},
|
|
@@ -6705,7 +6705,7 @@ let Q = class extends lt {
|
|
|
6705
6705
|
}
|
|
6706
6706
|
selectedDevice(e, r, i) {
|
|
6707
6707
|
this.eventHandler.callEvent({
|
|
6708
|
-
event: e ===
|
|
6708
|
+
event: e === Bt.AUDIO && N.SELECTED_MICROHPONE_UPDATE || e === Bt.VIDEO && N.SELECTED_CAMERA_UPDATE || e === Bt.SPEAKER && N.SELECTED_SPEAKER_UPDATE,
|
|
6709
6709
|
metaData: {
|
|
6710
6710
|
device: r
|
|
6711
6711
|
},
|
|
@@ -6724,7 +6724,7 @@ let Q = class extends lt {
|
|
|
6724
6724
|
}
|
|
6725
6725
|
mediaPlaybackFailed(e, r) {
|
|
6726
6726
|
this.eventHandler.callEvent({
|
|
6727
|
-
event: e ===
|
|
6727
|
+
event: e === Bt.AUDIO && N.AUDIO_PLAY_FAILED || e === Bt.VIDEO && N.VIDEO_PLAY_FAILED,
|
|
6728
6728
|
metaData: {
|
|
6729
6729
|
deviceType: e
|
|
6730
6730
|
},
|
|
@@ -6733,7 +6733,7 @@ let Q = class extends lt {
|
|
|
6733
6733
|
}
|
|
6734
6734
|
mediaTrackMuted(e, r) {
|
|
6735
6735
|
this.eventHandler.callEvent({
|
|
6736
|
-
event: e ===
|
|
6736
|
+
event: e === Bt.AUDIO && N.AUDIO_TRACK_MUTED || e === Bt.VIDEO && N.VIDEO_TRACK_MUTED,
|
|
6737
6737
|
metaData: {
|
|
6738
6738
|
deviceType: e
|
|
6739
6739
|
},
|
|
@@ -8119,7 +8119,7 @@ bE(kE, {
|
|
|
8119
8119
|
permissions: () => IE,
|
|
8120
8120
|
theme: () => AE
|
|
8121
8121
|
});
|
|
8122
|
-
var
|
|
8122
|
+
var Et = /* @__PURE__ */ ((s) => (s.GroupCall = "GROUP_CALL", s.Webinar = "WEBINAR", s.AudioRoom = "AUDIO_ROOM", s.Livestream = "LIVESTREAM", s.Chat = "CHAT", s))(Et || {}), K = /* @__PURE__ */ ((s) => (s.Allowed = "ALLOWED", s.NotAllowed = "NOT_ALLOWED", s.CanRequest = "CAN_REQUEST", s))(K || {}), IE = {
|
|
8123
8123
|
view_type: "GROUP_CALL",
|
|
8124
8124
|
accept_waiting_requests: false,
|
|
8125
8125
|
accept_present_requests: false,
|
|
@@ -10132,7 +10132,7 @@ class Ra extends lt.EventEmitter {
|
|
|
10132
10132
|
return super.listenerCount(t);
|
|
10133
10133
|
}
|
|
10134
10134
|
}
|
|
10135
|
-
class
|
|
10135
|
+
class xt extends lt.EventEmitter {
|
|
10136
10136
|
constructor() {
|
|
10137
10137
|
super(), super.setMaxListeners(25);
|
|
10138
10138
|
}
|
|
@@ -10199,14 +10199,14 @@ const np = 1080, ap = 1920, OP = (s, t, e, r, i, n) => {
|
|
|
10199
10199
|
let g = d * m, T = h * m, _, P, b, R, L = 1;
|
|
10200
10200
|
return g < e && (L = e / g), Math.abs(L - 1) < 1e-14 && T < r && (L = r / T), g *= L, T *= L, b = d / (g / e), R = h / (T / r), _ = (d - b) * o, P = (h - R) * c, _ < 0 && (_ = 0), P < 0 && (P = 0), b > d && (b = d), R > h && (R = h), [_, P, b, R, s, t, e, r];
|
|
10201
10201
|
};
|
|
10202
|
-
var
|
|
10203
|
-
const vh = class extends
|
|
10202
|
+
var Ht, pn, st, qt, Ae, is, Us, mt, Le, mn, gn, $s, fn;
|
|
10203
|
+
const vh = class extends xt {
|
|
10204
10204
|
constructor(e, r, i, n) {
|
|
10205
10205
|
super();
|
|
10206
|
-
f(this,
|
|
10206
|
+
f(this, Ht, void 0);
|
|
10207
10207
|
f(this, pn, void 0);
|
|
10208
10208
|
f(this, st, void 0);
|
|
10209
|
-
f(this,
|
|
10209
|
+
f(this, qt, void 0);
|
|
10210
10210
|
f(this, Ae, {
|
|
10211
10211
|
height: np,
|
|
10212
10212
|
width: ap
|
|
@@ -10307,14 +10307,14 @@ const vh = class extends Vt {
|
|
|
10307
10307
|
});
|
|
10308
10308
|
}
|
|
10309
10309
|
createVideoContainer() {
|
|
10310
|
-
v(this, st, document.createElement("div")), a(this, st).style.width = "0.1px", a(this, st).style.height = "0.1px", a(this, st).style.overflow = "hidden", a(this, st).style.position = "absolute", a(this, st).style.bottom = "0", a(this, st).style.right = "0", a(this, st).style.opacity = "0", a(this, st).appendChild(a(this,
|
|
10310
|
+
v(this, st, document.createElement("div")), a(this, st).style.width = "0.1px", a(this, st).style.height = "0.1px", a(this, st).style.overflow = "hidden", a(this, st).style.position = "absolute", a(this, st).style.bottom = "0", a(this, st).style.right = "0", a(this, st).style.opacity = "0", a(this, st).appendChild(a(this, qt));
|
|
10311
10311
|
}
|
|
10312
10312
|
setupEventListeners() {
|
|
10313
10313
|
a(this, pn).subscribe("stageStatus", this.handlePipMediaControls), a(this, Le).addListener("videoUpdate", this.onSelfVideoUpdateListener), a(this, Le).addListener("audioUpdate", this.onSelfAudioUpdateListener), a(this, Le).addListener("roomLeft", () => this.disable());
|
|
10314
10314
|
}
|
|
10315
10315
|
createCanvas() {
|
|
10316
10316
|
const e = document.createElement("canvas");
|
|
10317
|
-
e.height = a(this, Ae).height, e.width = a(this, Ae).width, v(this,
|
|
10317
|
+
e.height = a(this, Ae).height, e.width = a(this, Ae).width, v(this, Ht, e);
|
|
10318
10318
|
}
|
|
10319
10319
|
setupMediaSessionEvents() {
|
|
10320
10320
|
navigator.mediaSession === void 0 || navigator.mediaSession.setCameraActive === void 0 || (navigator.mediaSession.setActionHandler("hangup", () => {
|
|
@@ -10339,9 +10339,9 @@ const vh = class extends Vt {
|
|
|
10339
10339
|
return [...r.pinned, ...r.regular];
|
|
10340
10340
|
}
|
|
10341
10341
|
drawEmptyTile(e, r, i, n) {
|
|
10342
|
-
if (a(this,
|
|
10342
|
+
if (a(this, Ht) === void 0)
|
|
10343
10343
|
return;
|
|
10344
|
-
const o = a(this,
|
|
10344
|
+
const o = a(this, Ht).getContext("2d"), c = a(this, Ht).width, d = 0, h = 0, m = r - d * 2, g = i - d * 2, T = Math.floor(c / m), _ = Math.floor(e / T), b = e % T * (m + d) + d, R = _ * (g + d) + d, { displayText: L, image: H } = n != null ? n : {};
|
|
10345
10345
|
o.fillStyle = L || H ? a(this, is).videoBackground : a(this, is).background, o.strokeStyle = a(this, is).brand, o.beginPath(), o.moveTo(b + h, R), o.arcTo(b + m, R, b + m, R + h, h), o.arcTo(
|
|
10346
10346
|
b + m,
|
|
10347
10347
|
R + g,
|
|
@@ -10362,7 +10362,7 @@ const vh = class extends Vt {
|
|
|
10362
10362
|
const o = Math.min(Math.max(n * 0.15, 100), 200), c = o * 0.2, d = o * 0.2;
|
|
10363
10363
|
let h = r + c;
|
|
10364
10364
|
const m = i + c, g = (T) => {
|
|
10365
|
-
const _ = a(this,
|
|
10365
|
+
const _ = a(this, Ht).getContext("2d");
|
|
10366
10366
|
_.save(), _.fillStyle = a(this, is).background, _.beginPath(), _.moveTo(h + d, m), _.arcTo(h + o, m, h + o, m + d, d), _.arcTo(
|
|
10367
10367
|
h + o,
|
|
10368
10368
|
m + o,
|
|
@@ -10381,9 +10381,9 @@ const vh = class extends Vt {
|
|
|
10381
10381
|
}
|
|
10382
10382
|
drawTile(e, r, i) {
|
|
10383
10383
|
var h, m;
|
|
10384
|
-
if (a(this,
|
|
10384
|
+
if (a(this, Ht) === void 0)
|
|
10385
10385
|
return;
|
|
10386
|
-
const n = a(this,
|
|
10386
|
+
const n = a(this, Ht).getContext("2d"), o = this.getSources();
|
|
10387
10387
|
let c = 0, d = 0;
|
|
10388
10388
|
for (; c < a(this, Ae).height - 5; ) {
|
|
10389
10389
|
let g = 0;
|
|
@@ -10445,7 +10445,7 @@ const vh = class extends Vt {
|
|
|
10445
10445
|
document.body.removeChild(a(this, st));
|
|
10446
10446
|
} catch (e) {
|
|
10447
10447
|
}
|
|
10448
|
-
this.removeAllSources(), v(this,
|
|
10448
|
+
this.removeAllSources(), v(this, Ht, void 0), v(this, qt, void 0), v(this, Us, void 0);
|
|
10449
10449
|
}
|
|
10450
10450
|
init({ height: e, width: r } = {}) {
|
|
10451
10451
|
if (!this.isSupported())
|
|
@@ -10457,9 +10457,9 @@ const vh = class extends Vt {
|
|
|
10457
10457
|
v(this, Ae, {
|
|
10458
10458
|
height: e != null ? e : np,
|
|
10459
10459
|
width: r != null ? r : ap
|
|
10460
|
-
}), i.height = a(this, Ae).height, i.width = a(this, Ae).width, i.autoplay = true, i.muted = true, i.srcObject = a(this,
|
|
10460
|
+
}), i.height = a(this, Ae).height, i.width = a(this, Ae).width, i.autoplay = true, i.muted = true, i.srcObject = a(this, Ht).captureStream(24), v(this, qt, i), a(this, qt).onloadedmetadata = () => {
|
|
10461
10461
|
try {
|
|
10462
|
-
this.emit("pipStarted"), a(this,
|
|
10462
|
+
this.emit("pipStarted"), a(this, qt).onleavepictureinpicture = () => {
|
|
10463
10463
|
this.emit("pipEnded");
|
|
10464
10464
|
};
|
|
10465
10465
|
} catch (n) {
|
|
@@ -10531,17 +10531,17 @@ const vh = class extends Vt {
|
|
|
10531
10531
|
v(this, mt, {});
|
|
10532
10532
|
}
|
|
10533
10533
|
enable() {
|
|
10534
|
-
v(this, $s, "activating"), this.setupEventListeners(), this.updateMediaSession("CAMERA", a(this, Le).videoEnabled), this.updateMediaSession("MIC", a(this, Le).audioEnabled), document.body.appendChild(a(this, st)), v(this, Us, requestAnimationFrame(() => this.animate())), a(this,
|
|
10535
|
-
a(this,
|
|
10534
|
+
v(this, $s, "activating"), this.setupEventListeners(), this.updateMediaSession("CAMERA", a(this, Le).videoEnabled), this.updateMediaSession("MIC", a(this, Le).audioEnabled), document.body.appendChild(a(this, st)), v(this, Us, requestAnimationFrame(() => this.animate())), a(this, qt).onloadedmetadata = () => {
|
|
10535
|
+
a(this, qt).requestPictureInPicture().then(() => {
|
|
10536
10536
|
v(this, $s, "active");
|
|
10537
10537
|
});
|
|
10538
|
-
}, a(this,
|
|
10538
|
+
}, a(this, qt).readyState === 4 && a(this, qt).requestPictureInPicture().then(() => {
|
|
10539
10539
|
v(this, $s, "active");
|
|
10540
10540
|
});
|
|
10541
10541
|
}
|
|
10542
10542
|
};
|
|
10543
10543
|
let Yl = vh;
|
|
10544
|
-
|
|
10544
|
+
Ht = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), is = /* @__PURE__ */ new WeakMap(), Us = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), gn = /* @__PURE__ */ new WeakMap(), $s = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap();
|
|
10545
10545
|
var ir;
|
|
10546
10546
|
(function(s) {
|
|
10547
10547
|
s[s.PUBLISHER = 0] = "PUBLISHER", s[s.SUBSCRIBER = 1] = "SUBSCRIBER";
|
|
@@ -15120,7 +15120,7 @@ const x = wa(OI, $I), Ie = wa(NI, FI), z = wa(
|
|
|
15120
15120
|
), Ls = wa(VI, HI), ti = wa(
|
|
15121
15121
|
xI,
|
|
15122
15122
|
qI
|
|
15123
|
-
),
|
|
15123
|
+
), Xt = Vg(Lg, 16777216), hs = Vg(Lg, 50331648), Uc = wa(
|
|
15124
15124
|
UI,
|
|
15125
15125
|
jI
|
|
15126
15126
|
);
|
|
@@ -15246,8 +15246,8 @@ var JI = Object.defineProperty, KI = Object.getOwnPropertyDescriptor, Ts = (s, t
|
|
|
15246
15246
|
for (var i = r > 1 ? void 0 : r ? KI(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
15247
15247
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
15248
15248
|
return r && i && JI(t, e, i), i;
|
|
15249
|
-
},
|
|
15250
|
-
class
|
|
15249
|
+
}, St = /* @__PURE__ */ ((s) => (s[s.TEXT = 0] = "TEXT", s[s.IMAGE = 1] = "IMAGE", s[s.FILE = 2] = "FILE", s[s.CUSTOM = 3] = "CUSTOM", s))(St || {}), rt;
|
|
15250
|
+
class Zt {
|
|
15251
15251
|
constructor(t) {
|
|
15252
15252
|
f(this, rt, void 0);
|
|
15253
15253
|
v(this, rt, t);
|
|
@@ -15458,37 +15458,37 @@ class Xt {
|
|
|
15458
15458
|
rt = /* @__PURE__ */ new WeakMap();
|
|
15459
15459
|
Ts([
|
|
15460
15460
|
y.trace("SocketService.getChatMessages")
|
|
15461
|
-
],
|
|
15461
|
+
], Zt.prototype, "getChatMessages", 1);
|
|
15462
15462
|
Ts([
|
|
15463
15463
|
y.trace("SocketService.getChatMessagesPaginated")
|
|
15464
|
-
],
|
|
15464
|
+
], Zt.prototype, "getChatMessagesPaginated", 1);
|
|
15465
15465
|
Ts([
|
|
15466
15466
|
y.trace("SocketService.sendMessageToRoom")
|
|
15467
|
-
],
|
|
15467
|
+
], Zt.prototype, "sendMessageToRoom", 1);
|
|
15468
15468
|
Ts([
|
|
15469
15469
|
y.trace("SocketService.sendMessageToPeers")
|
|
15470
|
-
],
|
|
15470
|
+
], Zt.prototype, "sendMessageToPeers", 1);
|
|
15471
15471
|
Ts([
|
|
15472
15472
|
y.trace("SocketService.sendMessageToChannel")
|
|
15473
|
-
],
|
|
15473
|
+
], Zt.prototype, "sendMessageToChannel", 1);
|
|
15474
15474
|
Ts([
|
|
15475
15475
|
y.trace("SocketService.sendMessage")
|
|
15476
|
-
],
|
|
15476
|
+
], Zt.prototype, "sendMessage", 1);
|
|
15477
15477
|
Ts([
|
|
15478
15478
|
y.trace("SocketService.editMessage")
|
|
15479
|
-
],
|
|
15479
|
+
], Zt.prototype, "editMessage", 1);
|
|
15480
15480
|
Ts([
|
|
15481
15481
|
y.trace("SocketService.deleteMessage")
|
|
15482
|
-
],
|
|
15482
|
+
], Zt.prototype, "deleteMessage", 1);
|
|
15483
15483
|
Ts([
|
|
15484
15484
|
y.trace("SocketService.searchMessages")
|
|
15485
|
-
],
|
|
15485
|
+
], Zt.prototype, "searchMessages", 1);
|
|
15486
15486
|
Ts([
|
|
15487
15487
|
y.trace("SocketService.getAllChannels")
|
|
15488
|
-
],
|
|
15488
|
+
], Zt.prototype, "getAllChannels", 1);
|
|
15489
15489
|
Ts([
|
|
15490
15490
|
y.trace("SocketService.markLastReadMessage")
|
|
15491
|
-
],
|
|
15491
|
+
], Zt.prototype, "markLastReadMessage", 1);
|
|
15492
15492
|
function zI(s) {
|
|
15493
15493
|
return s.replace(
|
|
15494
15494
|
/([-_]\w)/g,
|
|
@@ -15715,12 +15715,12 @@ class eA {
|
|
|
15715
15715
|
this.organizationId = t;
|
|
15716
15716
|
}
|
|
15717
15717
|
}
|
|
15718
|
-
var tA = Object.defineProperty, sA = Object.getOwnPropertyDescriptor,
|
|
15718
|
+
var tA = Object.defineProperty, sA = Object.getOwnPropertyDescriptor, es = (s, t, e, r) => {
|
|
15719
15719
|
for (var i = r > 1 ? void 0 : r ? sA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
15720
15720
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
15721
15721
|
return r && i && tA(t, e, i), i;
|
|
15722
15722
|
};
|
|
15723
|
-
class
|
|
15723
|
+
class Ut extends eA {
|
|
15724
15724
|
constructor(t, e) {
|
|
15725
15725
|
super(t, e), this.setHeader("x-dyte-web-core-version", t.getValue("sdkVersion"));
|
|
15726
15726
|
}
|
|
@@ -15956,45 +15956,45 @@ class xt extends eA {
|
|
|
15956
15956
|
});
|
|
15957
15957
|
}
|
|
15958
15958
|
}
|
|
15959
|
-
|
|
15959
|
+
es([
|
|
15960
15960
|
y.trace("APIClient.getIPDetails")
|
|
15961
|
-
],
|
|
15962
|
-
|
|
15961
|
+
], Ut.prototype, "getIPDetails", 1);
|
|
15962
|
+
es([
|
|
15963
15963
|
y.trace("APIClient.getICEServers")
|
|
15964
|
-
],
|
|
15965
|
-
|
|
15964
|
+
], Ut.prototype, "getICEServers", 1);
|
|
15965
|
+
es([
|
|
15966
15966
|
y.trace("APIClient.getPlugins")
|
|
15967
|
-
],
|
|
15968
|
-
|
|
15967
|
+
], Ut.prototype, "getPlugins", 1);
|
|
15968
|
+
es([
|
|
15969
15969
|
y.trace("APIClient.startLivestreaming")
|
|
15970
|
-
],
|
|
15971
|
-
|
|
15970
|
+
], Ut.prototype, "startLivestreaming", 1);
|
|
15971
|
+
es([
|
|
15972
15972
|
y.trace("APIClient.stopLivestreaming")
|
|
15973
|
-
],
|
|
15974
|
-
|
|
15973
|
+
], Ut.prototype, "stopLivestreaming", 1);
|
|
15974
|
+
es([
|
|
15975
15975
|
y.trace("APIClient.getActiveLivestream")
|
|
15976
|
-
],
|
|
15977
|
-
|
|
15976
|
+
], Ut.prototype, "getActiveLivestream", 1);
|
|
15977
|
+
es([
|
|
15978
15978
|
y.trace("APIClient.getUserDetails")
|
|
15979
|
-
],
|
|
15980
|
-
|
|
15979
|
+
], Ut.prototype, "getUserDetails", 1);
|
|
15980
|
+
es([
|
|
15981
15981
|
y.trace("APIClient.startRecording")
|
|
15982
|
-
],
|
|
15983
|
-
|
|
15982
|
+
], Ut.prototype, "startRecording", 1);
|
|
15983
|
+
es([
|
|
15984
15984
|
y.trace("APIClient.stopRecording")
|
|
15985
|
-
],
|
|
15986
|
-
|
|
15985
|
+
], Ut.prototype, "updateRecording", 1);
|
|
15986
|
+
es([
|
|
15987
15987
|
y.trace("APIClient.getActiveRecording")
|
|
15988
|
-
],
|
|
15989
|
-
|
|
15988
|
+
], Ut.prototype, "getActiveRecording", 1);
|
|
15989
|
+
es([
|
|
15990
15990
|
y.trace("APIClient.getActiveTranscript")
|
|
15991
|
-
],
|
|
15992
|
-
|
|
15991
|
+
], Ut.prototype, "getActiveTranscript", 1);
|
|
15992
|
+
es([
|
|
15993
15993
|
y.trace("APIClient.getRoomNodeData")
|
|
15994
|
-
],
|
|
15994
|
+
], Ut.prototype, "getRoomNodeData", 1);
|
|
15995
15995
|
let au;
|
|
15996
15996
|
function rA(s, t) {
|
|
15997
|
-
return au = new
|
|
15997
|
+
return au = new Ut(s, t), au;
|
|
15998
15998
|
}
|
|
15999
15999
|
function tt() {
|
|
16000
16000
|
return au;
|
|
@@ -16008,7 +16008,7 @@ const ba = {
|
|
|
16008
16008
|
maxInvocations: 5,
|
|
16009
16009
|
period: 1
|
|
16010
16010
|
};
|
|
16011
|
-
function
|
|
16011
|
+
function At(s, t) {
|
|
16012
16012
|
return function(e, r, i) {
|
|
16013
16013
|
const n = i.value;
|
|
16014
16014
|
let o = 0, c = Date.now();
|
|
@@ -16027,7 +16027,7 @@ var nA = Object.defineProperty, aA = Object.getOwnPropertyDescriptor, ht = (s, t
|
|
|
16027
16027
|
};
|
|
16028
16028
|
const oA = ["text", "image", "file", "custom", "poll"], $c = { maxInvocations: 180, period: 60 };
|
|
16029
16029
|
var re, ni, Fe, ai, To, gd, Ug, yo, ou, Wp;
|
|
16030
|
-
let Ke = (Wp = class extends
|
|
16030
|
+
let Ke = (Wp = class extends xt {
|
|
16031
16031
|
constructor(t, e, r, i, n) {
|
|
16032
16032
|
super();
|
|
16033
16033
|
f(this, gd);
|
|
@@ -16080,13 +16080,13 @@ let Ke = (Wp = class extends Vt {
|
|
|
16080
16080
|
if (!t)
|
|
16081
16081
|
throw l.error("sendTextMessage::message_can_not_be_empty"), new w("Message can not be empty.", "0502");
|
|
16082
16082
|
if (r) {
|
|
16083
|
-
a(this, Fe).sendMessageToChannel(t,
|
|
16083
|
+
a(this, Fe).sendMessageToChannel(t, St.TEXT, r);
|
|
16084
16084
|
return;
|
|
16085
16085
|
}
|
|
16086
16086
|
let i = [];
|
|
16087
16087
|
e && e.length > 0 && (e.push(a(this, re).id), i = a(this, ni).joined.toArray().filter((g) => e.includes(g.id)).map((g) => g.userId), i.push(a(this, re).userId)), a(this, Fe).sendMessage(
|
|
16088
16088
|
t,
|
|
16089
|
-
|
|
16089
|
+
St.TEXT,
|
|
16090
16090
|
e
|
|
16091
16091
|
);
|
|
16092
16092
|
});
|
|
@@ -16119,7 +16119,7 @@ let Ke = (Wp = class extends Vt {
|
|
|
16119
16119
|
if (yield g.uploadFile(t, _), r) {
|
|
16120
16120
|
a(this, Fe).sendMessageToChannel(
|
|
16121
16121
|
T,
|
|
16122
|
-
|
|
16122
|
+
St.IMAGE,
|
|
16123
16123
|
r
|
|
16124
16124
|
);
|
|
16125
16125
|
return;
|
|
@@ -16127,7 +16127,7 @@ let Ke = (Wp = class extends Vt {
|
|
|
16127
16127
|
let P = [];
|
|
16128
16128
|
e && e.length > 0 && (e.push(a(this, re).id), P = a(this, ni).joined.toArray().filter((b) => e.includes(b.id)).map((b) => b.userId), P.push(a(this, re).userId)), a(this, Fe).sendMessage(
|
|
16129
16129
|
T,
|
|
16130
|
-
|
|
16130
|
+
St.IMAGE,
|
|
16131
16131
|
e
|
|
16132
16132
|
);
|
|
16133
16133
|
} catch (g) {
|
|
@@ -16163,7 +16163,7 @@ let Ke = (Wp = class extends Vt {
|
|
|
16163
16163
|
name: t.name,
|
|
16164
16164
|
size: "size" in t ? t.size : 0
|
|
16165
16165
|
}),
|
|
16166
|
-
|
|
16166
|
+
St.FILE,
|
|
16167
16167
|
r
|
|
16168
16168
|
);
|
|
16169
16169
|
return;
|
|
@@ -16177,7 +16177,7 @@ let Ke = (Wp = class extends Vt {
|
|
|
16177
16177
|
});
|
|
16178
16178
|
a(this, Fe).sendMessage(
|
|
16179
16179
|
P,
|
|
16180
|
-
|
|
16180
|
+
St.FILE,
|
|
16181
16181
|
e
|
|
16182
16182
|
);
|
|
16183
16183
|
} catch (m) {
|
|
@@ -16238,7 +16238,7 @@ let Ke = (Wp = class extends Vt {
|
|
|
16238
16238
|
});
|
|
16239
16239
|
a(this, Fe).sendMessage(
|
|
16240
16240
|
JSON.stringify(i),
|
|
16241
|
-
|
|
16241
|
+
St.CUSTOM,
|
|
16242
16242
|
e
|
|
16243
16243
|
);
|
|
16244
16244
|
});
|
|
@@ -16274,7 +16274,7 @@ let Ke = (Wp = class extends Vt {
|
|
|
16274
16274
|
a(this, Fe).editMessage(
|
|
16275
16275
|
t,
|
|
16276
16276
|
e,
|
|
16277
|
-
|
|
16277
|
+
St.TEXT,
|
|
16278
16278
|
r
|
|
16279
16279
|
);
|
|
16280
16280
|
});
|
|
@@ -16301,7 +16301,7 @@ let Ke = (Wp = class extends Vt {
|
|
|
16301
16301
|
yield h.uploadFile(e, g), a(this, Fe).editMessage(
|
|
16302
16302
|
t,
|
|
16303
16303
|
m,
|
|
16304
|
-
|
|
16304
|
+
St.IMAGE,
|
|
16305
16305
|
r
|
|
16306
16306
|
);
|
|
16307
16307
|
} catch (h) {
|
|
@@ -16332,7 +16332,7 @@ let Ke = (Wp = class extends Vt {
|
|
|
16332
16332
|
name: e.name,
|
|
16333
16333
|
size: "size" in e ? e.size : 0
|
|
16334
16334
|
}),
|
|
16335
|
-
|
|
16335
|
+
St.FILE,
|
|
16336
16336
|
r
|
|
16337
16337
|
);
|
|
16338
16338
|
} catch (d) {
|
|
@@ -16497,19 +16497,19 @@ let Ke = (Wp = class extends Vt {
|
|
|
16497
16497
|
}, Wp);
|
|
16498
16498
|
ht([
|
|
16499
16499
|
y.trace("DyteChat.sendTextMessage"),
|
|
16500
|
-
|
|
16500
|
+
At($c)
|
|
16501
16501
|
], Ke.prototype, "sendTextMessage", 1);
|
|
16502
16502
|
ht([
|
|
16503
16503
|
y.trace("DyteChat.sendImageMessage"),
|
|
16504
|
-
|
|
16504
|
+
At({ maxInvocations: 20, period: 60 })
|
|
16505
16505
|
], Ke.prototype, "sendImageMessage", 1);
|
|
16506
16506
|
ht([
|
|
16507
16507
|
y.trace("DyteChat.sendFileMessage"),
|
|
16508
|
-
|
|
16508
|
+
At({ maxInvocations: 20, period: 60 })
|
|
16509
16509
|
], Ke.prototype, "sendFileMessage", 1);
|
|
16510
16510
|
ht([
|
|
16511
16511
|
y.trace("DyteChat.sendMessage"),
|
|
16512
|
-
|
|
16512
|
+
At({ maxInvocations: 180, period: 60 })
|
|
16513
16513
|
], Ke.prototype, "sendMessage", 1);
|
|
16514
16514
|
ht([
|
|
16515
16515
|
y.trace("DyteChat.editTextMessage")
|
|
@@ -16607,20 +16607,20 @@ const Qr = (Jp = class {
|
|
|
16607
16607
|
pinned: s.pinned
|
|
16608
16608
|
};
|
|
16609
16609
|
switch (e.type) {
|
|
16610
|
-
case
|
|
16610
|
+
case St.TEXT: {
|
|
16611
16611
|
e.message = s.payload;
|
|
16612
16612
|
break;
|
|
16613
16613
|
}
|
|
16614
|
-
case
|
|
16614
|
+
case St.IMAGE: {
|
|
16615
16615
|
e.link = s.payload;
|
|
16616
16616
|
break;
|
|
16617
16617
|
}
|
|
16618
|
-
case
|
|
16618
|
+
case St.FILE: {
|
|
16619
16619
|
const { link: r, name: i, size: n } = JSON.parse(s.payload);
|
|
16620
16620
|
e.link = r, e.name = i, e.size = n;
|
|
16621
16621
|
break;
|
|
16622
16622
|
}
|
|
16623
|
-
case
|
|
16623
|
+
case St.CUSTOM: {
|
|
16624
16624
|
const {
|
|
16625
16625
|
html: r,
|
|
16626
16626
|
images: i,
|
|
@@ -16764,7 +16764,7 @@ var uA = Object.defineProperty, hA = Object.getOwnPropertyDescriptor, pA = (s, t
|
|
|
16764
16764
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
16765
16765
|
return r && i && uA(t, e, i), i;
|
|
16766
16766
|
}, vd, $g, Td, Fg, vn, Tn, So, Kp;
|
|
16767
|
-
let cu = (Kp = class extends
|
|
16767
|
+
let cu = (Kp = class extends xt {
|
|
16768
16768
|
constructor(t, e, r) {
|
|
16769
16769
|
super();
|
|
16770
16770
|
f(this, vd);
|
|
@@ -16928,7 +16928,7 @@ var vA = Object.defineProperty, TA = Object.getOwnPropertyDescriptor, yA = (s, t
|
|
|
16928
16928
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
16929
16929
|
return r && i && vA(t, e, i), i;
|
|
16930
16930
|
}, Hg = /* @__PURE__ */ ((s) => (s[s.User = 0] = "User", s[s.Meeting = 1] = "Meeting", s))(Hg || {}), Sn, Eo, lu, ci, _o, Yp;
|
|
16931
|
-
let du = (Yp = class extends
|
|
16931
|
+
let du = (Yp = class extends xt {
|
|
16932
16932
|
constructor(t, e, r, i, n) {
|
|
16933
16933
|
super();
|
|
16934
16934
|
f(this, Eo);
|
|
@@ -16994,7 +16994,7 @@ var EA = Object.defineProperty, _A = Object.getOwnPropertyDescriptor, qg = (s, t
|
|
|
16994
16994
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
16995
16995
|
return r && i && EA(t, e, i), i;
|
|
16996
16996
|
};
|
|
16997
|
-
let Hr = class extends
|
|
16997
|
+
let Hr = class extends xt {
|
|
16998
16998
|
constructor() {
|
|
16999
16999
|
super();
|
|
17000
17000
|
p(this, "transcripts");
|
|
@@ -17089,7 +17089,7 @@ const jg = (Qp = class {
|
|
|
17089
17089
|
t.config.viewType,
|
|
17090
17090
|
e,
|
|
17091
17091
|
n
|
|
17092
|
-
), this.ai = r, v(this, vr, t), v(this, En, e), this.aiSocketHandler = i, t.config.viewType !==
|
|
17092
|
+
), this.ai = r, v(this, vr, t), v(this, En, e), this.aiSocketHandler = i, t.config.viewType !== Et.Chat && this.setupEvents();
|
|
17093
17093
|
}
|
|
17094
17094
|
static init(s, t, e, r, i) {
|
|
17095
17095
|
return u(this, null, function* () {
|
|
@@ -17223,19 +17223,19 @@ var wA = Object.defineProperty, bA = Object.getOwnPropertyDescriptor, Wi = (s, t
|
|
|
17223
17223
|
for (var i = r > 1 ? void 0 : r ? bA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
17224
17224
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
17225
17225
|
return r && i && wA(t, e, i), i;
|
|
17226
|
-
},
|
|
17227
|
-
class Wr extends
|
|
17226
|
+
}, jt, _n, oe, Po, _s, ns, Co, uu, Pn, Fc;
|
|
17227
|
+
class Wr extends xt {
|
|
17228
17228
|
constructor(e, r, i, n, o) {
|
|
17229
17229
|
super();
|
|
17230
17230
|
f(this, Co);
|
|
17231
17231
|
f(this, Pn);
|
|
17232
|
-
f(this,
|
|
17232
|
+
f(this, jt, void 0);
|
|
17233
17233
|
f(this, _n, void 0);
|
|
17234
17234
|
f(this, oe, void 0);
|
|
17235
17235
|
f(this, Po, void 0);
|
|
17236
17236
|
f(this, _s, void 0);
|
|
17237
17237
|
f(this, ns, void 0);
|
|
17238
|
-
v(this, ns, e), v(this,
|
|
17238
|
+
v(this, ns, e), v(this, jt, n), v(this, _n, o), v(this, oe, r), v(this, Po, i), v(this, _s, []), this.setupEvents();
|
|
17239
17239
|
}
|
|
17240
17240
|
get status() {
|
|
17241
17241
|
return a(this, ns).getValue("stageStatus");
|
|
@@ -17266,7 +17266,7 @@ class Wr extends Vt {
|
|
|
17266
17266
|
};
|
|
17267
17267
|
a(this, oe).permissions.on("permissionsUpdate", (n) => {
|
|
17268
17268
|
const { canAcceptProductionRequests: o } = n;
|
|
17269
|
-
o !== void 0 && (a(this, oe).permissions.acceptStageRequests ? (r(), a(this,
|
|
17269
|
+
o !== void 0 && (a(this, oe).permissions.acceptStageRequests ? (r(), a(this, jt).getStageRequests()) : (i(), v(this, _s, []), this.emit("stageAccessRequestUpdate", a(this, _s))));
|
|
17270
17270
|
}), a(this, oe).permissions.acceptStageRequests && r();
|
|
17271
17271
|
}
|
|
17272
17272
|
getAccessRequests() {
|
|
@@ -17296,14 +17296,14 @@ class Wr extends Vt {
|
|
|
17296
17296
|
$(this, Pn, Fc).call(this, "ACCEPTED_TO_JOIN_STAGE");
|
|
17297
17297
|
return;
|
|
17298
17298
|
}
|
|
17299
|
-
a(this,
|
|
17299
|
+
a(this, jt).requestAccess(), $(this, Pn, Fc).call(this, "REQUESTED_TO_JOIN_STAGE");
|
|
17300
17300
|
});
|
|
17301
17301
|
}
|
|
17302
17302
|
cancelRequestAccess() {
|
|
17303
17303
|
return u(this, null, function* () {
|
|
17304
17304
|
if (!a(this, oe).permissions.stageEnabled)
|
|
17305
17305
|
throw l.error("DyteStage::stage_disabled"), new w("Stage is disabled", "2003");
|
|
17306
|
-
a(this,
|
|
17306
|
+
a(this, jt).cancelRequestAccess(), $(this, Pn, Fc).call(this, "OFF_STAGE");
|
|
17307
17307
|
});
|
|
17308
17308
|
}
|
|
17309
17309
|
grantAccess(e) {
|
|
@@ -17315,7 +17315,7 @@ class Wr extends Vt {
|
|
|
17315
17315
|
throw l.error("DyteStage::stage_disabled"), new w("Stage is disabled", "2003");
|
|
17316
17316
|
if (!a(this, oe).permissions.acceptStageRequests)
|
|
17317
17317
|
throw l.error("DyteStage::grant_access::permission_denied"), new w("You do not have permission to perform this action", "2001");
|
|
17318
|
-
return a(this,
|
|
17318
|
+
return a(this, jt).grantAccess(e);
|
|
17319
17319
|
}
|
|
17320
17320
|
denyAccess(e) {
|
|
17321
17321
|
if (!a(this, oe).roomJoined)
|
|
@@ -17327,7 +17327,7 @@ class Wr extends Vt {
|
|
|
17327
17327
|
throw l.error("DyteStage::stage_disabled"), new w("Stage is disabled", "2003");
|
|
17328
17328
|
if (!a(this, oe).permissions.acceptStageRequests)
|
|
17329
17329
|
throw l.error("DyteStage::deny_access::permission_denied"), new w("You do not have permission to perform this action", "2001");
|
|
17330
|
-
return a(this,
|
|
17330
|
+
return a(this, jt).denyAccess(e);
|
|
17331
17331
|
}
|
|
17332
17332
|
join() {
|
|
17333
17333
|
return u(this, null, function* () {
|
|
@@ -17336,7 +17336,7 @@ class Wr extends Vt {
|
|
|
17336
17336
|
throw new w("You are already on stage.", "2006");
|
|
17337
17337
|
if (this.status !== "ACCEPTED_TO_JOIN_STAGE" || a(this, oe).permissions.stageAccess === K.NotAllowed)
|
|
17338
17338
|
throw new w(`Unable to join stage you are currently ${this.status}`, "2006");
|
|
17339
|
-
if (yield a(this,
|
|
17339
|
+
if (yield a(this, jt).joinStage(), e === Et.Livestream) {
|
|
17340
17340
|
yield a(this, _n).joinRoom(a(this, oe));
|
|
17341
17341
|
const { peers: r } = yield a(this, _n).getStagePeers();
|
|
17342
17342
|
I.emit(A.SOCKET_PEERS, r);
|
|
@@ -17350,7 +17350,7 @@ class Wr extends Vt {
|
|
|
17350
17350
|
throw l.error("DyteStage::stage_disabled"), new w("Stage is disabled", "2003");
|
|
17351
17351
|
if (!(this.status === "ON_STAGE" || this.status === "ACCEPTED_TO_JOIN_STAGE"))
|
|
17352
17352
|
throw new w(`Unable to leave stage you are currently ${this.status}`, "2006");
|
|
17353
|
-
a(this, oe).setIsPinned(false), yield a(this,
|
|
17353
|
+
a(this, oe).setIsPinned(false), yield a(this, jt).leaveStage(a(this, oe).userId), a(this, ns).setValue("stageStatus", "OFF_STAGE", false), yield I.emitAsync(A.LEAVE_MEDIA_ROOM, "stageLeft"), a(this, ns).notify("stageStatus");
|
|
17354
17354
|
});
|
|
17355
17355
|
}
|
|
17356
17356
|
kick(e) {
|
|
@@ -17364,11 +17364,11 @@ class Wr extends Vt {
|
|
|
17364
17364
|
throw l.error("DyteStage::stage_disabled"), new w("Stage is disabled", "2003");
|
|
17365
17365
|
if (!a(this, oe).permissions.acceptStageRequests)
|
|
17366
17366
|
throw l.error("DyteStage::kick::permission_denied"), new w("You do not have permissions for kick", "2001");
|
|
17367
|
-
return a(this,
|
|
17367
|
+
return a(this, jt).kick(e);
|
|
17368
17368
|
});
|
|
17369
17369
|
}
|
|
17370
17370
|
}
|
|
17371
|
-
|
|
17371
|
+
jt = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap(), _s = /* @__PURE__ */ new WeakMap(), ns = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakSet(), uu = function() {
|
|
17372
17372
|
return a(this, ns).getValue("roomNodeClient");
|
|
17373
17373
|
}, Pn = /* @__PURE__ */ new WeakSet(), Fc = function(e) {
|
|
17374
17374
|
return u(this, null, function* () {
|
|
@@ -17541,7 +17541,7 @@ const Me = {
|
|
|
17541
17541
|
stageStatusUpdate: 25,
|
|
17542
17542
|
peerStageStatusUpdate: 26
|
|
17543
17543
|
};
|
|
17544
|
-
var it,
|
|
17544
|
+
var it, Nt, Cn, Rn, Bs, wn, li, bn, Xp;
|
|
17545
17545
|
let Pa = (Xp = class extends Ra {
|
|
17546
17546
|
constructor(t, {
|
|
17547
17547
|
baseURL: e,
|
|
@@ -17565,7 +17565,7 @@ let Pa = (Xp = class extends Ra {
|
|
|
17565
17565
|
p(this, "description");
|
|
17566
17566
|
p(this, "id");
|
|
17567
17567
|
p(this, "name");
|
|
17568
|
-
f(this,
|
|
17568
|
+
f(this, Nt, void 0);
|
|
17569
17569
|
f(this, Cn, void 0);
|
|
17570
17570
|
f(this, Rn, void 0);
|
|
17571
17571
|
p(this, "organizationId");
|
|
@@ -17584,7 +17584,7 @@ let Pa = (Xp = class extends Ra {
|
|
|
17584
17584
|
p(this, "enabledBy");
|
|
17585
17585
|
f(this, li, void 0);
|
|
17586
17586
|
f(this, bn, void 0);
|
|
17587
|
-
v(this, li, t), this.baseURL = e, this.createdAt = new Date(r), this.description = i, this.id = n, this.name = o, v(this,
|
|
17587
|
+
v(this, li, t), this.baseURL = e, this.createdAt = new Date(r), this.description = i, this.id = n, this.name = o, v(this, Nt, R), this.organizationId = c, this.picture = d, this.private = h, this.published = m, this.staggered = g, this.tags = T, this.type = _, this.updatedAt = new Date(P), this.active = false, this.iframes = /* @__PURE__ */ new Map(), v(this, it, b), v(this, Cn, L), v(this, Rn, H), this.enabledBy = "", v(this, bn, F);
|
|
17588
17588
|
}
|
|
17589
17589
|
sendIframeEvent(t) {
|
|
17590
17590
|
this.iframes.size && this.iframes.forEach((e) => {
|
|
@@ -17703,13 +17703,13 @@ let Pa = (Xp = class extends Ra {
|
|
|
17703
17703
|
}
|
|
17704
17704
|
case Me.getPeer: {
|
|
17705
17705
|
let c;
|
|
17706
|
-
const { peerId: d } = r, h = j(O({}, a(this,
|
|
17707
|
-
id: a(this,
|
|
17708
|
-
isRecorder: (o = a(this,
|
|
17709
|
-
isHidden: a(this,
|
|
17710
|
-
stageStatus: a(this,
|
|
17706
|
+
const { peerId: d } = r, h = j(O({}, a(this, Nt)), {
|
|
17707
|
+
id: a(this, Nt).id,
|
|
17708
|
+
isRecorder: (o = a(this, Nt).permissions) == null ? void 0 : o.isRecorder,
|
|
17709
|
+
isHidden: a(this, Nt).permissions.hiddenParticipant,
|
|
17710
|
+
stageStatus: a(this, Nt).stageStatus
|
|
17711
17711
|
});
|
|
17712
|
-
d ? (c = a(this, Cn).joined.get(r.peerId), a(this,
|
|
17712
|
+
d ? (c = a(this, Cn).joined.get(r.peerId), a(this, Nt).id === d && (c = h)) : c = h, this.sendIframeEvent({
|
|
17713
17713
|
type: Me.getPeer,
|
|
17714
17714
|
payload: { peer: c && nd(c) },
|
|
17715
17715
|
uuid: e.uuid
|
|
@@ -17852,7 +17852,7 @@ let Pa = (Xp = class extends Ra {
|
|
|
17852
17852
|
activate() {
|
|
17853
17853
|
return u(this, null, function* () {
|
|
17854
17854
|
var t, e;
|
|
17855
|
-
this.active || (e = (t = a(this,
|
|
17855
|
+
this.active || (e = (t = a(this, Nt).permissions) == null ? void 0 : t.plugins) != null && e.canStart && (a(this, it).addPlugin(this.id, this.staggered), v(this, Bs, new Date()), l.info("plugin::activated", {
|
|
17856
17856
|
plugin: {
|
|
17857
17857
|
id: this.id,
|
|
17858
17858
|
enabledBy: this.enabledBy,
|
|
@@ -17864,7 +17864,7 @@ let Pa = (Xp = class extends Ra {
|
|
|
17864
17864
|
deactivate() {
|
|
17865
17865
|
return u(this, null, function* () {
|
|
17866
17866
|
var t, e;
|
|
17867
|
-
this.active && (!((e = (t = a(this,
|
|
17867
|
+
this.active && (!((e = (t = a(this, Nt).permissions) == null ? void 0 : t.plugins) != null && e.canClose) && this.enabledBy !== a(this, Nt).id || (a(this, it).removePlugin(this.id), l.info("plugin::deactivated", {
|
|
17868
17868
|
plugin: {
|
|
17869
17869
|
id: this.id,
|
|
17870
17870
|
name: this.name,
|
|
@@ -17873,9 +17873,9 @@ let Pa = (Xp = class extends Ra {
|
|
|
17873
17873
|
}), v(this, Bs, void 0)));
|
|
17874
17874
|
});
|
|
17875
17875
|
}
|
|
17876
|
-
}, it = /* @__PURE__ */ new WeakMap(),
|
|
17876
|
+
}, it = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), Bs = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), li = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), Xp);
|
|
17877
17877
|
hl([
|
|
17878
|
-
|
|
17878
|
+
At({ maxInvocations: 5, period: 1 })
|
|
17879
17879
|
], Pa.prototype, "sendData", 1);
|
|
17880
17880
|
hl([
|
|
17881
17881
|
y.trace("DytePlugin.activatePlugin")
|
|
@@ -18006,14 +18006,14 @@ var xA = Object.defineProperty, UA = Object.getOwnPropertyDescriptor, pl = (s, t
|
|
|
18006
18006
|
for (var i = r > 1 ? void 0 : r ? UA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
18007
18007
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
18008
18008
|
return r && i && xA(t, e, i), i;
|
|
18009
|
-
},
|
|
18009
|
+
}, Gt, kn, wo, Zp;
|
|
18010
18010
|
const Kg = (Zp = class {
|
|
18011
18011
|
constructor(s, t, e, r) {
|
|
18012
18012
|
p(this, "plugins");
|
|
18013
|
-
f(this,
|
|
18013
|
+
f(this, Gt, void 0);
|
|
18014
18014
|
f(this, kn, void 0);
|
|
18015
18015
|
f(this, wo, void 0);
|
|
18016
|
-
v(this,
|
|
18016
|
+
v(this, Gt, t), v(this, kn, e), v(this, wo, s), this.plugins = r, this.setupEvents();
|
|
18017
18017
|
}
|
|
18018
18018
|
static init(s, t, e, r, i, n, o, c) {
|
|
18019
18019
|
return u(this, null, function* () {
|
|
@@ -18040,7 +18040,7 @@ const Kg = (Zp = class {
|
|
|
18040
18040
|
getRoomPlugins() {
|
|
18041
18041
|
return u(this, null, function* () {
|
|
18042
18042
|
var t;
|
|
18043
|
-
const { plugins: s } = yield a(this,
|
|
18043
|
+
const { plugins: s } = yield a(this, Gt).getActivePlugins();
|
|
18044
18044
|
(t = this.plugins.active) == null || t.toArray().forEach((e) => {
|
|
18045
18045
|
this.disablePlugin({ id: e.id });
|
|
18046
18046
|
}), yield Promise.all(
|
|
@@ -18089,14 +18089,14 @@ const Kg = (Zp = class {
|
|
|
18089
18089
|
}
|
|
18090
18090
|
), I.onAsync(A.SOCKET_SERVICE_ROOM_JOINED, () => u(this, null, function* () {
|
|
18091
18091
|
yield this.getRoomPlugins(), l.debug("[SOCKET_SERVICE_ROOM_JOINED] resolved request to fetch plugins.");
|
|
18092
|
-
})), a(this,
|
|
18092
|
+
})), a(this, Gt).on(
|
|
18093
18093
|
z.addPlugin,
|
|
18094
18094
|
(s) => u(this, null, function* () {
|
|
18095
18095
|
var e;
|
|
18096
18096
|
const t = s.pluginId;
|
|
18097
18097
|
(e = this.plugins.all.get(t)) != null && e.active || (yield this.enablePlugin({ id: t, enabledBy: s.enabledBy }));
|
|
18098
18098
|
})
|
|
18099
|
-
), a(this,
|
|
18099
|
+
), a(this, Gt).on(
|
|
18100
18100
|
z.removePlugin,
|
|
18101
18101
|
(s) => u(this, null, function* () {
|
|
18102
18102
|
var e;
|
|
@@ -18107,7 +18107,7 @@ const Kg = (Zp = class {
|
|
|
18107
18107
|
z.enablePluginForPeers,
|
|
18108
18108
|
z.enablePluginForRoom
|
|
18109
18109
|
].forEach((s) => {
|
|
18110
|
-
a(this,
|
|
18110
|
+
a(this, Gt).on(
|
|
18111
18111
|
s,
|
|
18112
18112
|
(t, e) => u(this, null, function* () {
|
|
18113
18113
|
this.sendIframeEvent(s, t.pluginId, e, {
|
|
@@ -18119,7 +18119,7 @@ const Kg = (Zp = class {
|
|
|
18119
18119
|
z.disablePluginForPeers,
|
|
18120
18120
|
z.disablePluginForRoom
|
|
18121
18121
|
].forEach((s) => {
|
|
18122
|
-
a(this,
|
|
18122
|
+
a(this, Gt).on(
|
|
18123
18123
|
s,
|
|
18124
18124
|
(t, e) => u(this, null, function* () {
|
|
18125
18125
|
this.sendIframeEvent(s, t.pluginId, e, {
|
|
@@ -18131,7 +18131,7 @@ const Kg = (Zp = class {
|
|
|
18131
18131
|
z.customPluginEventToPeers,
|
|
18132
18132
|
z.customPluginEventToRoom
|
|
18133
18133
|
].forEach((s) => {
|
|
18134
|
-
a(this,
|
|
18134
|
+
a(this, Gt).on(
|
|
18135
18135
|
s,
|
|
18136
18136
|
(t, e) => u(this, null, function* () {
|
|
18137
18137
|
this.sendIframeEvent(s, t.pluginId, e, {
|
|
@@ -18146,7 +18146,7 @@ const Kg = (Zp = class {
|
|
|
18146
18146
|
z.storeGetKeys,
|
|
18147
18147
|
z.storeDeleteKeys
|
|
18148
18148
|
].forEach((s) => {
|
|
18149
|
-
a(this,
|
|
18149
|
+
a(this, Gt).on(
|
|
18150
18150
|
s,
|
|
18151
18151
|
(t, e) => u(this, null, function* () {
|
|
18152
18152
|
var i;
|
|
@@ -18167,7 +18167,7 @@ const Kg = (Zp = class {
|
|
|
18167
18167
|
});
|
|
18168
18168
|
})
|
|
18169
18169
|
);
|
|
18170
|
-
}), a(this,
|
|
18170
|
+
}), a(this, Gt).on(
|
|
18171
18171
|
z.storeDelete,
|
|
18172
18172
|
(s, t) => u(this, null, function* () {
|
|
18173
18173
|
this.sendIframeEvent(z.storeDelete, s.pluginId, t, {
|
|
@@ -18201,7 +18201,7 @@ const Kg = (Zp = class {
|
|
|
18201
18201
|
this.broadcastIframeEvent(Me.stageStatusUpdate, s);
|
|
18202
18202
|
});
|
|
18203
18203
|
}
|
|
18204
|
-
},
|
|
18204
|
+
}, Gt = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), wo = /* @__PURE__ */ new WeakMap(), Zp);
|
|
18205
18205
|
let vc = Kg;
|
|
18206
18206
|
pl([
|
|
18207
18207
|
y.trace("PluginController.getRoomPlugins")
|
|
@@ -18293,7 +18293,7 @@ var FA = Object.defineProperty, BA = Object.getOwnPropertyDescriptor, Tc = (s, t
|
|
|
18293
18293
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
18294
18294
|
return r && i && FA(t, e, i), i;
|
|
18295
18295
|
}, In, bo, An, Bc, em;
|
|
18296
|
-
let Fi = (em = class extends
|
|
18296
|
+
let Fi = (em = class extends xt {
|
|
18297
18297
|
constructor(t, e) {
|
|
18298
18298
|
super();
|
|
18299
18299
|
f(this, An);
|
|
@@ -18501,19 +18501,19 @@ class rh {
|
|
|
18501
18501
|
});
|
|
18502
18502
|
}
|
|
18503
18503
|
}
|
|
18504
|
-
var WA = Object.defineProperty, JA = Object.getOwnPropertyDescriptor,
|
|
18504
|
+
var WA = Object.defineProperty, JA = Object.getOwnPropertyDescriptor, $t = (s, t, e, r) => {
|
|
18505
18505
|
for (var i = r > 1 ? void 0 : r ? JA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
18506
18506
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
18507
18507
|
return r && i && WA(t, e, i), i;
|
|
18508
|
-
}, He, Se, ve, Ps,
|
|
18509
|
-
class
|
|
18508
|
+
}, He, Se, ve, Ps, Wt, ko, Ed;
|
|
18509
|
+
class Mt extends Ra {
|
|
18510
18510
|
constructor(e, r, i = pu, n = true) {
|
|
18511
18511
|
super();
|
|
18512
18512
|
f(this, He, void 0);
|
|
18513
18513
|
f(this, Se, void 0);
|
|
18514
18514
|
f(this, ve, void 0);
|
|
18515
18515
|
f(this, Ps, void 0);
|
|
18516
|
-
f(this,
|
|
18516
|
+
f(this, Wt, void 0);
|
|
18517
18517
|
f(this, ko, void 0);
|
|
18518
18518
|
f(this, Ed, void 0);
|
|
18519
18519
|
p(this, "audioUpdateInProgress");
|
|
@@ -18526,7 +18526,7 @@ class At extends Ra {
|
|
|
18526
18526
|
a(this, He),
|
|
18527
18527
|
void 0,
|
|
18528
18528
|
i
|
|
18529
|
-
)), v(this,
|
|
18529
|
+
)), v(this, Wt, new yM(
|
|
18530
18530
|
a(this, He)
|
|
18531
18531
|
)), v(this, Ps, new vM(
|
|
18532
18532
|
a(this, He)
|
|
@@ -18536,7 +18536,7 @@ class At extends Ra {
|
|
|
18536
18536
|
), a(this, ve).on(
|
|
18537
18537
|
"trackChanged",
|
|
18538
18538
|
this.onVideoTrackChanged.bind(this)
|
|
18539
|
-
), a(this, ve).on("trackEnded", this.onVideoTrackEnded.bind(this)), a(this,
|
|
18539
|
+
), a(this, ve).on("trackEnded", this.onVideoTrackEnded.bind(this)), a(this, Wt).on(
|
|
18540
18540
|
"trackEnded",
|
|
18541
18541
|
this.onScreenShareEnded.bind(this)
|
|
18542
18542
|
), this.onVisibilityChange = this.onVisibilityChange.bind(this), document.addEventListener("visibilitychange", this.onVisibilityChange);
|
|
@@ -18725,26 +18725,26 @@ class At extends Ra {
|
|
|
18725
18725
|
}
|
|
18726
18726
|
get screenShareTracks() {
|
|
18727
18727
|
return {
|
|
18728
|
-
audio: a(this,
|
|
18729
|
-
video: a(this,
|
|
18728
|
+
audio: a(this, Wt).audioMediaTrack,
|
|
18729
|
+
video: a(this, Wt).videoMediaTrack
|
|
18730
18730
|
};
|
|
18731
18731
|
}
|
|
18732
18732
|
get screenShareEnabled() {
|
|
18733
|
-
return a(this,
|
|
18733
|
+
return a(this, Wt).trackEnabled;
|
|
18734
18734
|
}
|
|
18735
18735
|
enableScreenShare() {
|
|
18736
18736
|
return u(this, null, function* () {
|
|
18737
|
-
yield a(this,
|
|
18737
|
+
yield a(this, Wt).enableScreenShare();
|
|
18738
18738
|
});
|
|
18739
18739
|
}
|
|
18740
18740
|
disableScreenShare() {
|
|
18741
18741
|
return u(this, null, function* () {
|
|
18742
|
-
a(this,
|
|
18742
|
+
a(this, Wt).disableScreenShare();
|
|
18743
18743
|
});
|
|
18744
18744
|
}
|
|
18745
18745
|
updateScreenshareConstraints(e) {
|
|
18746
18746
|
return u(this, null, function* () {
|
|
18747
|
-
yield a(this,
|
|
18747
|
+
yield a(this, Wt).updateConstraints(e);
|
|
18748
18748
|
});
|
|
18749
18749
|
}
|
|
18750
18750
|
getSpeakerDevices(e) {
|
|
@@ -18772,7 +18772,7 @@ class At extends Ra {
|
|
|
18772
18772
|
return a(this, ve).setVideoMiddlewareGlobalConfig(e);
|
|
18773
18773
|
}
|
|
18774
18774
|
destruct() {
|
|
18775
|
-
a(this, Se).disableTrack(), a(this, ve).disableTrack(), a(this, ve).terminateMiddlewareWebWorker(), a(this,
|
|
18775
|
+
a(this, Se).disableTrack(), a(this, ve).disableTrack(), a(this, ve).terminateMiddlewareWebWorker(), a(this, Wt).disableScreenShare(), a(this, He).destruct();
|
|
18776
18776
|
}
|
|
18777
18777
|
onDeviceChange(e, r) {
|
|
18778
18778
|
return u(this, null, function* () {
|
|
@@ -18804,46 +18804,46 @@ class At extends Ra {
|
|
|
18804
18804
|
});
|
|
18805
18805
|
}
|
|
18806
18806
|
}
|
|
18807
|
-
He = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(),
|
|
18808
|
-
|
|
18807
|
+
He = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), ko = /* @__PURE__ */ new WeakMap(), Ed = /* @__PURE__ */ new WeakMap();
|
|
18808
|
+
$t([
|
|
18809
18809
|
y.trace("MediaHandler.setupStreams")
|
|
18810
|
-
],
|
|
18811
|
-
|
|
18810
|
+
], Mt.prototype, "setupStreams", 1);
|
|
18811
|
+
$t([
|
|
18812
18812
|
y.trace("MediaHandler.enableAudio")
|
|
18813
|
-
],
|
|
18814
|
-
|
|
18813
|
+
], Mt.prototype, "enableAudio", 1);
|
|
18814
|
+
$t([
|
|
18815
18815
|
y.trace("MediaHandler.disableAudio")
|
|
18816
|
-
],
|
|
18817
|
-
|
|
18816
|
+
], Mt.prototype, "disableAudio", 1);
|
|
18817
|
+
$t([
|
|
18818
18818
|
y.trace("MediaHandler.setAudioDevice")
|
|
18819
|
-
],
|
|
18820
|
-
|
|
18819
|
+
], Mt.prototype, "setAudioDevice", 1);
|
|
18820
|
+
$t([
|
|
18821
18821
|
y.trace("MediaHandler.enableVideo")
|
|
18822
|
-
],
|
|
18823
|
-
|
|
18822
|
+
], Mt.prototype, "enableVideo", 1);
|
|
18823
|
+
$t([
|
|
18824
18824
|
y.trace("MediaHandler.disableVideo")
|
|
18825
|
-
],
|
|
18826
|
-
|
|
18825
|
+
], Mt.prototype, "disableVideo", 1);
|
|
18826
|
+
$t([
|
|
18827
18827
|
y.trace("MediaHandler.setVideoDevice")
|
|
18828
|
-
],
|
|
18829
|
-
|
|
18828
|
+
], Mt.prototype, "setVideoDevice", 1);
|
|
18829
|
+
$t([
|
|
18830
18830
|
y.trace("MediaHandler.updateVideoConstraints")
|
|
18831
|
-
],
|
|
18832
|
-
|
|
18831
|
+
], Mt.prototype, "updateVideoConstraints", 1);
|
|
18832
|
+
$t([
|
|
18833
18833
|
y.trace("MediaHandler.enableScreenShare")
|
|
18834
|
-
],
|
|
18835
|
-
|
|
18834
|
+
], Mt.prototype, "enableScreenShare", 1);
|
|
18835
|
+
$t([
|
|
18836
18836
|
y.trace("MediaHandler.disableScreenShare")
|
|
18837
|
-
],
|
|
18838
|
-
|
|
18837
|
+
], Mt.prototype, "disableScreenShare", 1);
|
|
18838
|
+
$t([
|
|
18839
18839
|
y.trace("MediaHandler.updateScreenshareConstraints")
|
|
18840
|
-
],
|
|
18841
|
-
|
|
18840
|
+
], Mt.prototype, "updateScreenshareConstraints", 1);
|
|
18841
|
+
$t([
|
|
18842
18842
|
y.trace("MediaHandler.destruct")
|
|
18843
|
-
],
|
|
18844
|
-
|
|
18843
|
+
], Mt.prototype, "destruct", 1);
|
|
18844
|
+
$t([
|
|
18845
18845
|
y.trace("MediaHandler.onDeviceChange")
|
|
18846
|
-
],
|
|
18846
|
+
], Mt.prototype, "onDeviceChange", 1);
|
|
18847
18847
|
function Mc(s, t, e) {
|
|
18848
18848
|
switch (true) {
|
|
18849
18849
|
case Pe.isChromiumBased():
|
|
@@ -19199,18 +19199,18 @@ var rM = Object.defineProperty, iM = Object.getOwnPropertyDescriptor, ys = (s, t
|
|
|
19199
19199
|
for (var i = r > 1 ? void 0 : r ? iM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
19200
19200
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
19201
19201
|
return r && i && rM(t, e, i), i;
|
|
19202
|
-
}, Mn,
|
|
19203
|
-
let
|
|
19202
|
+
}, Mn, Jt, Pd, tm;
|
|
19203
|
+
let Vt = (tm = class extends sM {
|
|
19204
19204
|
constructor(t, e) {
|
|
19205
19205
|
super();
|
|
19206
19206
|
p(this, "availableDevices");
|
|
19207
19207
|
f(this, Mn, void 0);
|
|
19208
|
-
f(this,
|
|
19208
|
+
f(this, Jt, void 0);
|
|
19209
19209
|
f(this, Pd, void 0);
|
|
19210
|
-
v(this, Pd, t), v(this,
|
|
19210
|
+
v(this, Pd, t), v(this, Jt, new tM(t, e)), v(this, Mn, new AbortController()), this.availableDevices = [], this.getAvailableDevices();
|
|
19211
19211
|
}
|
|
19212
19212
|
get constraintsBuilder() {
|
|
19213
|
-
return a(this,
|
|
19213
|
+
return a(this, Jt);
|
|
19214
19214
|
}
|
|
19215
19215
|
destruct() {
|
|
19216
19216
|
return u(this, null, function* () {
|
|
@@ -19229,8 +19229,8 @@ let Lt = (tm = class extends sM {
|
|
|
19229
19229
|
getAudioAndVideoTrack(t, e) {
|
|
19230
19230
|
return u(this, null, function* () {
|
|
19231
19231
|
const r = {
|
|
19232
|
-
audio: a(this,
|
|
19233
|
-
video: a(this,
|
|
19232
|
+
audio: a(this, Jt).getAudioConstraints(t).audio,
|
|
19233
|
+
video: a(this, Jt).getVideoConstraints(e).video
|
|
19234
19234
|
};
|
|
19235
19235
|
try {
|
|
19236
19236
|
l.info("getUserMediaWithoutTimeout::requesting_user_media", {
|
|
@@ -19271,7 +19271,7 @@ let Lt = (tm = class extends sM {
|
|
|
19271
19271
|
const i = (n) => u(this, null, function* () {
|
|
19272
19272
|
let o;
|
|
19273
19273
|
try {
|
|
19274
|
-
r = r.filter((d) => d.deviceId !== n), o = a(this,
|
|
19274
|
+
r = r.filter((d) => d.deviceId !== n), o = a(this, Jt).getAudioConstraints(n), l.info("getUserMediaWithoutTimeout::requesting_user_media", {
|
|
19275
19275
|
constraints: JSON.stringify(o)
|
|
19276
19276
|
});
|
|
19277
19277
|
const [c] = (yield navigator.mediaDevices.getUserMedia(o)).getAudioTracks();
|
|
@@ -19292,7 +19292,7 @@ let Lt = (tm = class extends sM {
|
|
|
19292
19292
|
constraints: JSON.stringify(o),
|
|
19293
19293
|
error: c
|
|
19294
19294
|
});
|
|
19295
|
-
const g = a(this,
|
|
19295
|
+
const g = a(this, Jt).getAudioConstraints(
|
|
19296
19296
|
m.deviceId
|
|
19297
19297
|
);
|
|
19298
19298
|
return l.info("getAudioTrack::retrying_gum_for_next_device", {
|
|
@@ -19357,7 +19357,7 @@ let Lt = (tm = class extends sM {
|
|
|
19357
19357
|
constraints: JSON.stringify(d),
|
|
19358
19358
|
error: h
|
|
19359
19359
|
});
|
|
19360
|
-
const _ = a(this,
|
|
19360
|
+
const _ = a(this, Jt).getVideoConstraints(
|
|
19361
19361
|
T.deviceId
|
|
19362
19362
|
);
|
|
19363
19363
|
return l.info("getVideoTrack::retrying_gum_for_next_device", {
|
|
@@ -19368,7 +19368,7 @@ let Lt = (tm = class extends sM {
|
|
|
19368
19368
|
}
|
|
19369
19369
|
});
|
|
19370
19370
|
try {
|
|
19371
|
-
const d = a(this,
|
|
19371
|
+
const d = a(this, Jt).getVideoConstraints(t), h = yield o(d);
|
|
19372
19372
|
return this.permissions.video !== "ACCEPTED" && (this.permissions.video = "ACCEPTED", I.emit(A.MEDIA_PERMISSION_UPDATE, {
|
|
19373
19373
|
message: this.permissions.video,
|
|
19374
19374
|
kind: "video"
|
|
@@ -19405,7 +19405,7 @@ let Lt = (tm = class extends sM {
|
|
|
19405
19405
|
}
|
|
19406
19406
|
});
|
|
19407
19407
|
try {
|
|
19408
|
-
const e = a(this,
|
|
19408
|
+
const e = a(this, Jt).getScreenShareConstraints(), r = yield t(e);
|
|
19409
19409
|
return this.permissions.screenshare !== "ACCEPTED" && (this.permissions.screenshare = "ACCEPTED", I.emit(A.MEDIA_PERMISSION_UPDATE, {
|
|
19410
19410
|
message: this.permissions.screenshare,
|
|
19411
19411
|
kind: "screenshare"
|
|
@@ -19491,41 +19491,41 @@ let Lt = (tm = class extends sM {
|
|
|
19491
19491
|
);
|
|
19492
19492
|
});
|
|
19493
19493
|
}
|
|
19494
|
-
}, Mn = /* @__PURE__ */ new WeakMap(),
|
|
19494
|
+
}, Mn = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Pd = /* @__PURE__ */ new WeakMap(), tm);
|
|
19495
19495
|
ys([
|
|
19496
19496
|
y.trace("WebMediaInterface.destruct")
|
|
19497
|
-
],
|
|
19497
|
+
], Vt.prototype, "destruct", 1);
|
|
19498
19498
|
ys([
|
|
19499
19499
|
y.trace("WebMediaInterface.handlePermissionErrors")
|
|
19500
|
-
],
|
|
19500
|
+
], Vt.prototype, "handlePermissionErrors", 1);
|
|
19501
19501
|
ys([
|
|
19502
19502
|
y.trace("WebMediaInterface.getAudioAndVideoTrack")
|
|
19503
|
-
],
|
|
19503
|
+
], Vt.prototype, "getAudioAndVideoTrack", 1);
|
|
19504
19504
|
ys([
|
|
19505
19505
|
y.trace("WebMediaInterface.getAudioTrack")
|
|
19506
|
-
],
|
|
19506
|
+
], Vt.prototype, "getAudioTrack", 1);
|
|
19507
19507
|
ys([
|
|
19508
19508
|
y.trace("WebMediaInterface.getVideoTrack")
|
|
19509
|
-
],
|
|
19509
|
+
], Vt.prototype, "getVideoTrack", 1);
|
|
19510
19510
|
ys([
|
|
19511
19511
|
y.trace("WebMediaInterface.getScreenShareTracks")
|
|
19512
|
-
],
|
|
19512
|
+
], Vt.prototype, "getScreenShareTracks", 1);
|
|
19513
19513
|
ys([
|
|
19514
19514
|
y.trace("WebMediaInterface.getAvailableDevices")
|
|
19515
|
-
],
|
|
19515
|
+
], Vt.prototype, "getAvailableDevices", 1);
|
|
19516
19516
|
ys([
|
|
19517
19517
|
y.trace("WebMediaInterface.getAvailableDevicesByKind")
|
|
19518
|
-
],
|
|
19518
|
+
], Vt.prototype, "getAvailableDevicesByKind", 1);
|
|
19519
19519
|
ys([
|
|
19520
19520
|
y.trace("WebMediaInterface.getDevice")
|
|
19521
|
-
],
|
|
19521
|
+
], Vt.prototype, "getDevice", 1);
|
|
19522
19522
|
ys([
|
|
19523
19523
|
y.trace("WebMediaInterface.onDeviceChange")
|
|
19524
|
-
],
|
|
19525
|
-
|
|
19524
|
+
], Vt.prototype, "onDeviceChange", 1);
|
|
19525
|
+
Vt = ys([
|
|
19526
19526
|
ut("1600")
|
|
19527
|
-
],
|
|
19528
|
-
const Yg =
|
|
19527
|
+
], Vt);
|
|
19528
|
+
const Yg = Vt, oo = {
|
|
19529
19529
|
setItem: (s, t) => {
|
|
19530
19530
|
try {
|
|
19531
19531
|
localStorage.setItem(s, t);
|
|
@@ -20197,16 +20197,16 @@ gl([
|
|
|
20197
20197
|
const _M = yc, Lp = ms(
|
|
20198
20198
|
Ku()
|
|
20199
20199
|
);
|
|
20200
|
-
var
|
|
20200
|
+
var Ct, mi, Ao, Nn;
|
|
20201
20201
|
const rn = class {
|
|
20202
20202
|
constructor(t) {
|
|
20203
|
-
f(this,
|
|
20203
|
+
f(this, Ct, void 0);
|
|
20204
20204
|
f(this, mi, void 0);
|
|
20205
20205
|
f(this, Ao, void 0);
|
|
20206
20206
|
f(this, Nn, void 0);
|
|
20207
20207
|
if (!t)
|
|
20208
20208
|
throw new w("Could not load preset.", "0904");
|
|
20209
|
-
v(this,
|
|
20209
|
+
v(this, Ct, t.config), v(this, Ao, t.name), v(this, mi, t.ui || ms(Ku().ui)), v(this, Nn, t.permissions.plugins.config);
|
|
20210
20210
|
}
|
|
20211
20211
|
static fromResponse(t) {
|
|
20212
20212
|
return new rn(t);
|
|
@@ -20259,16 +20259,16 @@ const rn = class {
|
|
|
20259
20259
|
return true;
|
|
20260
20260
|
}
|
|
20261
20261
|
get viewType() {
|
|
20262
|
-
return a(this,
|
|
20262
|
+
return a(this, Ct).viewType;
|
|
20263
20263
|
}
|
|
20264
20264
|
get livestreamViewerQualities() {
|
|
20265
|
-
return a(this,
|
|
20265
|
+
return a(this, Ct).livestreamViewerQualities || [];
|
|
20266
20266
|
}
|
|
20267
20267
|
get maxVideoStreams() {
|
|
20268
|
-
return a(this,
|
|
20268
|
+
return a(this, Ct).maxVideoStreams;
|
|
20269
20269
|
}
|
|
20270
20270
|
get maxScreenShareCount() {
|
|
20271
|
-
return a(this,
|
|
20271
|
+
return a(this, Ct).maxScreenshareCount;
|
|
20272
20272
|
}
|
|
20273
20273
|
get plugins() {
|
|
20274
20274
|
return [];
|
|
@@ -20286,16 +20286,16 @@ const rn = class {
|
|
|
20286
20286
|
var t, e, r, i, n, o, c, d, h, m, g, T, _, P, b, R, L, H, F, B, q, ie, pe, Ye;
|
|
20287
20287
|
return {
|
|
20288
20288
|
audio: {
|
|
20289
|
-
enableStereo: (i = (r = (e = (t = a(this,
|
|
20290
|
-
enableHighBitrate: (d = (c = (o = (n = a(this,
|
|
20289
|
+
enableStereo: (i = (r = (e = (t = a(this, Ct)) == null ? void 0 : t.media) == null ? void 0 : e.audio) == null ? void 0 : r.enableStereo) != null ? i : zi.audio.enableStereo,
|
|
20290
|
+
enableHighBitrate: (d = (c = (o = (n = a(this, Ct)) == null ? void 0 : n.media) == null ? void 0 : o.audio) == null ? void 0 : c.enableHighBitrate) != null ? d : zi.audio.enableHighBitrate
|
|
20291
20291
|
},
|
|
20292
20292
|
video: {
|
|
20293
|
-
quality: (T = (g = (m = (h = a(this,
|
|
20294
|
-
frameRate: (R = (b = (P = (_ = a(this,
|
|
20293
|
+
quality: (T = (g = (m = (h = a(this, Ct)) == null ? void 0 : h.media) == null ? void 0 : m.video) == null ? void 0 : g.quality) != null ? T : zi.video.quality,
|
|
20294
|
+
frameRate: (R = (b = (P = (_ = a(this, Ct)) == null ? void 0 : _.media) == null ? void 0 : P.video) == null ? void 0 : b.frameRate) != null ? R : zi.video.frameRate
|
|
20295
20295
|
},
|
|
20296
20296
|
screenshare: {
|
|
20297
|
-
quality: (B = (F = (H = (L = a(this,
|
|
20298
|
-
frameRate: (Ye = (pe = (ie = (q = a(this,
|
|
20297
|
+
quality: (B = (F = (H = (L = a(this, Ct)) == null ? void 0 : L.media) == null ? void 0 : H.screenshare) == null ? void 0 : F.quality) != null ? B : zi.screenshare.quality,
|
|
20298
|
+
frameRate: (Ye = (pe = (ie = (q = a(this, Ct)) == null ? void 0 : q.media) == null ? void 0 : ie.screenshare) == null ? void 0 : pe.frameRate) != null ? Ye : zi.screenshare.frameRate
|
|
20299
20299
|
}
|
|
20300
20300
|
};
|
|
20301
20301
|
}
|
|
@@ -20304,13 +20304,13 @@ const rn = class {
|
|
|
20304
20304
|
}
|
|
20305
20305
|
};
|
|
20306
20306
|
let mu = rn;
|
|
20307
|
-
|
|
20307
|
+
Ct = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), Ao = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap();
|
|
20308
20308
|
var PM = Object.defineProperty, CM = Object.getOwnPropertyDescriptor, Zg = (s, t, e, r) => {
|
|
20309
20309
|
for (var i = r > 1 ? void 0 : r ? CM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
20310
20310
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
20311
20311
|
return r && i && PM(t, e, i), i;
|
|
20312
20312
|
}, Ln;
|
|
20313
|
-
class ah extends
|
|
20313
|
+
class ah extends xt {
|
|
20314
20314
|
constructor(e) {
|
|
20315
20315
|
super();
|
|
20316
20316
|
f(this, Ln, void 0);
|
|
@@ -20589,19 +20589,19 @@ nt = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Er = /*
|
|
|
20589
20589
|
this.set(t, i, r);
|
|
20590
20590
|
};
|
|
20591
20591
|
Sc([
|
|
20592
|
-
|
|
20592
|
+
At(ba, "rateLimitConfig")
|
|
20593
20593
|
], ka.prototype, "remoteSet", 1);
|
|
20594
20594
|
Sc([
|
|
20595
|
-
|
|
20595
|
+
At(ba, "bulkRateLimitConfig")
|
|
20596
20596
|
], ka.prototype, "bulkSet", 1);
|
|
20597
20597
|
Sc([
|
|
20598
|
-
|
|
20598
|
+
At(ba, "rateLimitConfig")
|
|
20599
20599
|
], ka.prototype, "update", 1);
|
|
20600
20600
|
Sc([
|
|
20601
|
-
|
|
20601
|
+
At(ba, "rateLimitConfig")
|
|
20602
20602
|
], ka.prototype, "delete", 1);
|
|
20603
20603
|
Sc([
|
|
20604
|
-
|
|
20604
|
+
At(ba, "bulkRateLimitConfig")
|
|
20605
20605
|
], ka.prototype, "bulkDelete", 1);
|
|
20606
20606
|
var gi, fi, Mo, gu, Do, _r, Rd, sf;
|
|
20607
20607
|
class AM {
|
|
@@ -20703,7 +20703,7 @@ var MM = Object.defineProperty, DM = Object.getOwnPropertyDescriptor, Ia = (s, t
|
|
|
20703
20703
|
};
|
|
20704
20704
|
const OM = 0.8, NM = 1.2;
|
|
20705
20705
|
var Un, $n, Pr, vi, Qa, Ti, Xa, wd, rf, qs, Oo, Cr, Fn, Hc, js, bd, No, fu, sm;
|
|
20706
|
-
let nr = (sm = class extends
|
|
20706
|
+
let nr = (sm = class extends xt {
|
|
20707
20707
|
constructor(t, e, r, i) {
|
|
20708
20708
|
super();
|
|
20709
20709
|
f(this, vi);
|
|
@@ -21075,14 +21075,14 @@ class xM {
|
|
|
21075
21075
|
}
|
|
21076
21076
|
}
|
|
21077
21077
|
const nf = new xM();
|
|
21078
|
-
var UM = Object.defineProperty, $M = Object.getOwnPropertyDescriptor,
|
|
21078
|
+
var UM = Object.defineProperty, $M = Object.getOwnPropertyDescriptor, Ft = (s, t, e, r) => {
|
|
21079
21079
|
for (var i = r > 1 ? void 0 : r ? $M(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
21080
21080
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
21081
21081
|
return r && i && UM(t, e, i), i;
|
|
21082
21082
|
};
|
|
21083
21083
|
const FM = ["ACTIVE_GRID", "PAGINATED", "MANUAL"];
|
|
21084
|
-
var
|
|
21085
|
-
let
|
|
21084
|
+
var Kt, yi, Za, Si, eo, Bn, qc, Ei, Rt, rm;
|
|
21085
|
+
let _t = (rm = class extends xt {
|
|
21086
21086
|
constructor(t, e, r) {
|
|
21087
21087
|
super();
|
|
21088
21088
|
f(this, yi);
|
|
@@ -21095,9 +21095,9 @@ let Et = (rm = class extends Vt {
|
|
|
21095
21095
|
p(this, "audioSubscribed");
|
|
21096
21096
|
p(this, "pinned");
|
|
21097
21097
|
p(this, "all");
|
|
21098
|
-
f(this,
|
|
21098
|
+
f(this, Kt, void 0);
|
|
21099
21099
|
f(this, Ei, void 0);
|
|
21100
|
-
f(this,
|
|
21100
|
+
f(this, Rt, void 0);
|
|
21101
21101
|
p(this, "rateLimitConfig", {
|
|
21102
21102
|
maxInvocations: 5,
|
|
21103
21103
|
period: 1
|
|
@@ -21106,10 +21106,10 @@ let Et = (rm = class extends Vt {
|
|
|
21106
21106
|
p(this, "currentPage");
|
|
21107
21107
|
p(this, "lastActiveSpeaker");
|
|
21108
21108
|
p(this, "selectedPeers", nf);
|
|
21109
|
-
v(this,
|
|
21109
|
+
v(this, Kt, t), v(this, Ei, e), v(this, Rt, r), this.waitlisted = new ri(), this.joined = new ri(), this.videoSubscribed = new ri(), this.audioSubscribed = new ri(), this.active = this.videoSubscribed, this.pinned = new ri(), this.all = new LM(), this.viewMode = "ACTIVE_GRID", this.currentPage = 0, this.setupEvents();
|
|
21110
21110
|
}
|
|
21111
21111
|
get pip() {
|
|
21112
|
-
return a(this,
|
|
21112
|
+
return a(this, Kt).getValue("pip");
|
|
21113
21113
|
}
|
|
21114
21114
|
get rateLimits() {
|
|
21115
21115
|
return this.rateLimitConfig;
|
|
@@ -21120,7 +21120,7 @@ let Et = (rm = class extends Vt {
|
|
|
21120
21120
|
setupEvents() {
|
|
21121
21121
|
I.on(A.E2EE_ACTIVE_CONSUMER, ({ peerId: t }) => {
|
|
21122
21122
|
var e;
|
|
21123
|
-
((e = a(this,
|
|
21123
|
+
((e = a(this, Kt).getValue("modules").e2ee) == null ? void 0 : e.enabled) !== true && this.emit("media_decode_error", {
|
|
21124
21124
|
reason: `Got encrypted media for participantId ${t}, but encryption wasn't enabled in init.defaults`,
|
|
21125
21125
|
code: "1702"
|
|
21126
21126
|
});
|
|
@@ -21131,12 +21131,12 @@ let Et = (rm = class extends Vt {
|
|
|
21131
21131
|
}
|
|
21132
21132
|
get maxActiveParticipantsCount() {
|
|
21133
21133
|
var t;
|
|
21134
|
-
return (t = a(this,
|
|
21134
|
+
return (t = a(this, Kt)) == null ? void 0 : t.getValue("maxPreferredStreams");
|
|
21135
21135
|
}
|
|
21136
21136
|
setMaxActiveParticipantsCount(t) {
|
|
21137
21137
|
if (t < 0 || t > 24)
|
|
21138
21138
|
throw new w("0 <= Max active participants count limit <= 24", "1203");
|
|
21139
|
-
a(this,
|
|
21139
|
+
a(this, Kt).setValue("maxPreferredStreams", t), a(this, Bn, qc) && I.emit(A.UPDATE_ACTIVE);
|
|
21140
21140
|
}
|
|
21141
21141
|
get pageCount() {
|
|
21142
21142
|
if (this.viewMode === "PAGINATED") {
|
|
@@ -21155,7 +21155,7 @@ let Et = (rm = class extends Vt {
|
|
|
21155
21155
|
"1205"
|
|
21156
21156
|
);
|
|
21157
21157
|
const e = (i = (r = this.waitlisted.get(t)) == null ? void 0 : r.userId) != null ? i : t;
|
|
21158
|
-
return a(this,
|
|
21158
|
+
return a(this, Rt).acceptWaitingRoomRequest([e]);
|
|
21159
21159
|
}
|
|
21160
21160
|
acceptAllWaitingRoomRequest(t) {
|
|
21161
21161
|
return u(this, null, function* () {
|
|
@@ -21163,7 +21163,7 @@ let Et = (rm = class extends Vt {
|
|
|
21163
21163
|
var i, n;
|
|
21164
21164
|
return (n = (i = this.waitlisted.get(r)) == null ? void 0 : i.userId) != null ? n : r;
|
|
21165
21165
|
});
|
|
21166
|
-
return a(this,
|
|
21166
|
+
return a(this, Rt).acceptWaitingRoomRequest(e);
|
|
21167
21167
|
});
|
|
21168
21168
|
}
|
|
21169
21169
|
rejectWaitingRoomRequest(t) {
|
|
@@ -21175,7 +21175,7 @@ let Et = (rm = class extends Vt {
|
|
|
21175
21175
|
"1205"
|
|
21176
21176
|
);
|
|
21177
21177
|
const e = (i = (r = this.waitlisted.get(t)) == null ? void 0 : r.userId) != null ? i : t;
|
|
21178
|
-
a(this,
|
|
21178
|
+
a(this, Rt).rejectWaitingRoomRequest([e]);
|
|
21179
21179
|
});
|
|
21180
21180
|
}
|
|
21181
21181
|
setViewMode(t) {
|
|
@@ -21391,7 +21391,7 @@ let Et = (rm = class extends Vt {
|
|
|
21391
21391
|
}
|
|
21392
21392
|
kickAll() {
|
|
21393
21393
|
return u(this, null, function* () {
|
|
21394
|
-
if (l.info("DyteParticipants::kick_all"), a(this,
|
|
21394
|
+
if (l.info("DyteParticipants::kick_all"), a(this, Kt).getValue("viewType") !== "LIVESTREAM" && !a(this, Si, eo))
|
|
21395
21395
|
throw new w("Can`t kick all without joining room", "1205");
|
|
21396
21396
|
if (!a(this, Ei).permissions.kickParticipant)
|
|
21397
21397
|
throw l.error("DyteParticipants::unauthorized_kick_all"), new w(
|
|
@@ -21399,7 +21399,7 @@ let Et = (rm = class extends Vt {
|
|
|
21399
21399
|
"1201"
|
|
21400
21400
|
);
|
|
21401
21401
|
const e = Y.hasFeature(se.PROPAGATE_KICK_ALL);
|
|
21402
|
-
a(this,
|
|
21402
|
+
a(this, Rt).kickAll(e);
|
|
21403
21403
|
});
|
|
21404
21404
|
}
|
|
21405
21405
|
broadcastMessage(t, e, r) {
|
|
@@ -21410,7 +21410,7 @@ let Et = (rm = class extends Vt {
|
|
|
21410
21410
|
throw new w("`type` must be a non-empty string.", "1209");
|
|
21411
21411
|
if (r)
|
|
21412
21412
|
if ("meetingIds" in r)
|
|
21413
|
-
yield a(this,
|
|
21413
|
+
yield a(this, Rt).broadcastToMeetings(t, r.meetingIds, e);
|
|
21414
21414
|
else {
|
|
21415
21415
|
let i = [];
|
|
21416
21416
|
"participantIds" in r ? i = r.participantIds : i = this.joined.toArray().filter(
|
|
@@ -21418,15 +21418,15 @@ let Et = (rm = class extends Vt {
|
|
|
21418
21418
|
var o;
|
|
21419
21419
|
return (o = r.presetNames) == null ? void 0 : o.includes(n.presetName);
|
|
21420
21420
|
}
|
|
21421
|
-
).map((n) => n.id), yield a(this,
|
|
21421
|
+
).map((n) => n.id), yield a(this, Rt).broadcastToPeers(t, i, e);
|
|
21422
21422
|
}
|
|
21423
21423
|
else
|
|
21424
|
-
yield a(this,
|
|
21424
|
+
yield a(this, Rt).broadcastMessage(t, e);
|
|
21425
21425
|
});
|
|
21426
21426
|
}
|
|
21427
21427
|
getAllJoinedPeers(t, e, r) {
|
|
21428
21428
|
return u(this, null, function* () {
|
|
21429
|
-
return (yield a(this,
|
|
21429
|
+
return (yield a(this, Rt).getRoomPeers(t, e, r)).peers.map(or.formatSocketServiceMessage);
|
|
21430
21430
|
});
|
|
21431
21431
|
}
|
|
21432
21432
|
updatePermissions(t, e) {
|
|
@@ -21434,65 +21434,65 @@ let Et = (rm = class extends Vt {
|
|
|
21434
21434
|
const r = this.joined.toArray().filter((n) => t.includes(n.id)).map((n) => n.userId), i = [...new Set(r)];
|
|
21435
21435
|
if (!i.length)
|
|
21436
21436
|
throw new w("Cannot update permissions, no valid userIDs found", "1204");
|
|
21437
|
-
a(this,
|
|
21437
|
+
a(this, Rt).updatePermissions(i, e);
|
|
21438
21438
|
});
|
|
21439
21439
|
}
|
|
21440
21440
|
getParticipantsInMeetingPreJoin() {
|
|
21441
21441
|
return u(this, null, function* () {
|
|
21442
|
-
return a(this,
|
|
21442
|
+
return a(this, Rt).getRoomPeersNonPaginated();
|
|
21443
21443
|
});
|
|
21444
21444
|
}
|
|
21445
|
-
},
|
|
21446
|
-
return a(this,
|
|
21445
|
+
}, Kt = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakSet(), Za = function() {
|
|
21446
|
+
return a(this, Kt).getValue("roomNodeClient");
|
|
21447
21447
|
}, Si = /* @__PURE__ */ new WeakSet(), eo = function() {
|
|
21448
21448
|
var t;
|
|
21449
|
-
return ((t = a(this,
|
|
21449
|
+
return ((t = a(this, Kt).getValue("connectionHandler")) == null ? void 0 : t.socketJoined) === true;
|
|
21450
21450
|
}, Bn = /* @__PURE__ */ new WeakSet(), qc = function() {
|
|
21451
21451
|
var t;
|
|
21452
|
-
return ((t = a(this,
|
|
21453
|
-
}, Ei = /* @__PURE__ */ new WeakMap(),
|
|
21454
|
-
|
|
21452
|
+
return ((t = a(this, Kt).getValue("connectionHandler")) == null ? void 0 : t.mediaJoined) === true;
|
|
21453
|
+
}, Ei = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), rm);
|
|
21454
|
+
Ft([
|
|
21455
21455
|
y.trace("DyteParticipants.setViewMode")
|
|
21456
|
-
],
|
|
21457
|
-
|
|
21456
|
+
], _t.prototype, "setViewMode", 1);
|
|
21457
|
+
Ft([
|
|
21458
21458
|
y.trace("DyteParticipants.setPage")
|
|
21459
|
-
],
|
|
21460
|
-
|
|
21459
|
+
], _t.prototype, "setPage", 1);
|
|
21460
|
+
Ft([
|
|
21461
21461
|
y.trace("DyteParticipants.disableAllAudio")
|
|
21462
|
-
],
|
|
21463
|
-
|
|
21462
|
+
], _t.prototype, "disableAllAudio", 1);
|
|
21463
|
+
Ft([
|
|
21464
21464
|
y.trace("DyteParticipants.disableAllVideo")
|
|
21465
|
-
],
|
|
21466
|
-
|
|
21465
|
+
], _t.prototype, "disableAllVideo", 1);
|
|
21466
|
+
Ft([
|
|
21467
21467
|
y.trace("DyteParticipants.disablePeerAudio")
|
|
21468
|
-
],
|
|
21469
|
-
|
|
21468
|
+
], _t.prototype, "disableAudio", 1);
|
|
21469
|
+
Ft([
|
|
21470
21470
|
y.trace("DyteParticipants.disablePeerVideo")
|
|
21471
|
-
],
|
|
21472
|
-
|
|
21471
|
+
], _t.prototype, "disableVideo", 1);
|
|
21472
|
+
Ft([
|
|
21473
21473
|
y.trace("DyteParticipants.kickPeer")
|
|
21474
|
-
],
|
|
21475
|
-
|
|
21474
|
+
], _t.prototype, "kick", 1);
|
|
21475
|
+
Ft([
|
|
21476
21476
|
y.trace("DyteParticipants.kickAll")
|
|
21477
|
-
],
|
|
21478
|
-
|
|
21477
|
+
], _t.prototype, "kickAll", 1);
|
|
21478
|
+
Ft([
|
|
21479
21479
|
y.trace("DyteParticipants.broadcastMessage"),
|
|
21480
|
-
|
|
21481
|
-
],
|
|
21482
|
-
|
|
21480
|
+
At(ba, "rateLimitConfig")
|
|
21481
|
+
], _t.prototype, "broadcastMessage", 1);
|
|
21482
|
+
Ft([
|
|
21483
21483
|
y.trace("DyteParticipants.getAllJoinedPeers"),
|
|
21484
|
-
|
|
21485
|
-
],
|
|
21486
|
-
|
|
21484
|
+
At({ maxInvocations: 10, period: 60 })
|
|
21485
|
+
], _t.prototype, "getAllJoinedPeers", 1);
|
|
21486
|
+
Ft([
|
|
21487
21487
|
y.trace("DyteParticipant.updatePermissions"),
|
|
21488
|
-
|
|
21489
|
-
],
|
|
21490
|
-
|
|
21488
|
+
At({ maxInvocations: 1e3, period: 60 })
|
|
21489
|
+
], _t.prototype, "updatePermissions", 1);
|
|
21490
|
+
Ft([
|
|
21491
21491
|
y.trace("DyteParticipants.getParticipantsInMeetingPreJoin")
|
|
21492
|
-
],
|
|
21493
|
-
|
|
21492
|
+
], _t.prototype, "getParticipantsInMeetingPreJoin", 1);
|
|
21493
|
+
_t = Ft([
|
|
21494
21494
|
ut("1200")
|
|
21495
|
-
],
|
|
21495
|
+
], _t);
|
|
21496
21496
|
var ln = /* @__PURE__ */ ((s) => (s.NEW = "new", s.CONNECTING = "connecting", s.RECONNECTING = "reconnecting", s.DISCONNECTED = "disconnected", s.CONNECTED = "connected", s.FAILED = "failed", s.CLOSED = "closed", s))(ln || {}), Je = /* @__PURE__ */ ((s) => (s[s.HIVE = 1] = "HIVE", s[s.ROOM_NODE = 2] = "ROOM_NODE", s[s.CF = 3] = "CF", s))(Je || {}), BM = Object.defineProperty, HM = Object.getOwnPropertyDescriptor, Ji = (s, t, e, r) => {
|
|
21497
21497
|
for (var i = r > 1 ? void 0 : r ? HM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
21498
21498
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
@@ -21538,9 +21538,9 @@ const jc = (im = class {
|
|
|
21538
21538
|
l.error("Error deactivating peers", { error: e2 });
|
|
21539
21539
|
}
|
|
21540
21540
|
}));
|
|
21541
|
-
switch (this.context = s, this.roomSocketHandler = e, this.participants = new
|
|
21541
|
+
switch (this.context = s, this.roomSocketHandler = e, this.participants = new _t(s, t, this.roomSocketHandler), this.self = t, this.consumerPeerMap = /* @__PURE__ */ new Map(), r) {
|
|
21542
21542
|
case Je.HIVE: {
|
|
21543
|
-
this.events =
|
|
21543
|
+
this.events = Xt;
|
|
21544
21544
|
break;
|
|
21545
21545
|
}
|
|
21546
21546
|
case Je.CF: {
|
|
@@ -21548,7 +21548,7 @@ const jc = (im = class {
|
|
|
21548
21548
|
break;
|
|
21549
21549
|
}
|
|
21550
21550
|
default:
|
|
21551
|
-
this.events =
|
|
21551
|
+
this.events = Xt;
|
|
21552
21552
|
}
|
|
21553
21553
|
t.config.viewType !== "CHAT" && this.setupEventsGlobal(), this.setupEvents();
|
|
21554
21554
|
}
|
|
@@ -21797,7 +21797,7 @@ const jc = (im = class {
|
|
|
21797
21797
|
case "PAGINATED": {
|
|
21798
21798
|
if (!e)
|
|
21799
21799
|
return;
|
|
21800
|
-
const i = this.selectPagePeers(e), n = this.selectActivePeers(this.participants.maxActiveParticipantsCount);
|
|
21800
|
+
const i = this.selectPagePeers(e), n = this.selectActivePeers(this.participants.maxActiveParticipantsCount + 4);
|
|
21801
21801
|
this.updateParticipantsMap(this.participants.videoSubscribed, i), this.updateParticipantsMap(this.participants.audioSubscribed, n), l.debug(
|
|
21802
21802
|
"ParticipantController::updateActive::updating_current_page_peers",
|
|
21803
21803
|
{ peerIds: i }
|
|
@@ -21805,8 +21805,8 @@ const jc = (im = class {
|
|
|
21805
21805
|
break;
|
|
21806
21806
|
}
|
|
21807
21807
|
case "ACTIVE_GRID": {
|
|
21808
|
-
const i = this.selectActivePeers(this.participants.maxActiveParticipantsCount);
|
|
21809
|
-
this.updateParticipantsMapMinReplacement(this.participants.videoSubscribed,
|
|
21808
|
+
const i = this.selectActivePeers(this.participants.maxActiveParticipantsCount + 4), n = this.selectActivePeers(this.participants.maxActiveParticipantsCount);
|
|
21809
|
+
this.updateParticipantsMapMinReplacement(this.participants.videoSubscribed, n), this.updateParticipantsMap(this.participants.audioSubscribed, i);
|
|
21810
21810
|
break;
|
|
21811
21811
|
}
|
|
21812
21812
|
default:
|
|
@@ -22091,7 +22091,7 @@ const jc = (im = class {
|
|
|
22091
22091
|
peerId: s.id
|
|
22092
22092
|
},
|
|
22093
22093
|
add: true
|
|
22094
|
-
})), I.emit(A.PEER_JOINED_INTERNAL, s), this.self.config.viewType ===
|
|
22094
|
+
})), I.emit(A.PEER_JOINED_INTERNAL, s), this.self.config.viewType === Et.Webinar && s.stageStatus !== "ON_STAGE" || this.roomNodeClient === void 0 || this.participants.videoSubscribed.size >= this.maxPreferredStreams)
|
|
22095
22095
|
return;
|
|
22096
22096
|
const t = this.participants.currentPage;
|
|
22097
22097
|
this.updateSubscriptions(
|
|
@@ -22399,8 +22399,8 @@ Ji([
|
|
|
22399
22399
|
const ge = ms(
|
|
22400
22400
|
Ku().permissions
|
|
22401
22401
|
);
|
|
22402
|
-
var G, Gn, Wn, kd, gt,
|
|
22403
|
-
const nn = class extends
|
|
22402
|
+
var G, Gn, Wn, kd, gt, Dt;
|
|
22403
|
+
const nn = class extends xt {
|
|
22404
22404
|
constructor(e, r, i, n = false) {
|
|
22405
22405
|
super();
|
|
22406
22406
|
f(this, gt);
|
|
@@ -22474,7 +22474,7 @@ const nn = class extends Vt {
|
|
|
22474
22474
|
}
|
|
22475
22475
|
get stageEnabled() {
|
|
22476
22476
|
var e;
|
|
22477
|
-
return ((e = a(this, G)) == null ? void 0 : e.stageEnabled) || a(this, Gn) ===
|
|
22477
|
+
return ((e = a(this, G)) == null ? void 0 : e.stageEnabled) || a(this, Gn) === Et.Webinar || a(this, Gn) === Et.Livestream;
|
|
22478
22478
|
}
|
|
22479
22479
|
get acceptStageRequests() {
|
|
22480
22480
|
var e, r;
|
|
@@ -22555,7 +22555,7 @@ const nn = class extends Vt {
|
|
|
22555
22555
|
get canProduceVideo() {
|
|
22556
22556
|
var r;
|
|
22557
22557
|
const e = (r = a(this, G).media.video.canProduce) != null ? r : ge.media.video.canProduce;
|
|
22558
|
-
return this.stageEnabled && (a(this, gt,
|
|
22558
|
+
return this.stageEnabled && (a(this, gt, Dt) === "ACCEPTED_TO_JOIN_STAGE" || a(this, gt, Dt) === "ON_STAGE") && e === K.CanRequest ? K.Allowed : this.stageEnabled && (a(this, gt, Dt) === "OFF_STAGE" || a(this, gt, Dt) === "REQUESTED_TO_JOIN_STAGE") && e === K.Allowed ? K.NotAllowed : e;
|
|
22559
22559
|
}
|
|
22560
22560
|
get produceScreenshare() {
|
|
22561
22561
|
return this.canProduceScreenshare;
|
|
@@ -22563,7 +22563,7 @@ const nn = class extends Vt {
|
|
|
22563
22563
|
get canProduceScreenshare() {
|
|
22564
22564
|
var r;
|
|
22565
22565
|
const e = (r = a(this, G).media.screenshare.canProduce) != null ? r : ge.media.screenshare.canProduce;
|
|
22566
|
-
return this.stageEnabled && (a(this, gt,
|
|
22566
|
+
return this.stageEnabled && (a(this, gt, Dt) === "ACCEPTED_TO_JOIN_STAGE" || a(this, gt, Dt) === "ON_STAGE") && e === K.CanRequest ? K.Allowed : this.stageEnabled && (a(this, gt, Dt) === "OFF_STAGE" || a(this, gt, Dt) === "REQUESTED_TO_JOIN_STAGE") && e === K.Allowed ? K.NotAllowed : e;
|
|
22567
22567
|
}
|
|
22568
22568
|
get produceAudio() {
|
|
22569
22569
|
return this.canProduceAudio;
|
|
@@ -22571,7 +22571,7 @@ const nn = class extends Vt {
|
|
|
22571
22571
|
get canProduceAudio() {
|
|
22572
22572
|
var r;
|
|
22573
22573
|
const e = (r = a(this, G).media.audio.canProduce) != null ? r : ge.media.audio.canProduce;
|
|
22574
|
-
return this.stageEnabled && (a(this, gt,
|
|
22574
|
+
return this.stageEnabled && (a(this, gt, Dt) === "ACCEPTED_TO_JOIN_STAGE" || a(this, gt, Dt) === "ON_STAGE") && e === K.CanRequest ? K.Allowed : this.stageEnabled && (a(this, gt, Dt) === "OFF_STAGE" || a(this, gt, Dt) === "REQUESTED_TO_JOIN_STAGE") && e === K.Allowed ? K.NotAllowed : e;
|
|
22575
22575
|
}
|
|
22576
22576
|
get chatPublic() {
|
|
22577
22577
|
var e, r, i;
|
|
@@ -22639,11 +22639,11 @@ const nn = class extends Vt {
|
|
|
22639
22639
|
}
|
|
22640
22640
|
};
|
|
22641
22641
|
let vu = nn;
|
|
22642
|
-
G = /* @__PURE__ */ new WeakMap(), Gn = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), kd = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakSet(),
|
|
22642
|
+
G = /* @__PURE__ */ new WeakMap(), Gn = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), kd = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakSet(), Dt = function() {
|
|
22643
22643
|
return a(this, Wn).getValue("stageStatus");
|
|
22644
22644
|
};
|
|
22645
22645
|
var Vu;
|
|
22646
|
-
class qM extends
|
|
22646
|
+
class qM extends xt {
|
|
22647
22647
|
constructor() {
|
|
22648
22648
|
super(...arguments);
|
|
22649
22649
|
p(this, "localMediaHandler");
|
|
@@ -22711,7 +22711,7 @@ class qM extends Vt {
|
|
|
22711
22711
|
const { RNLocalMediaHandlerImpl: T } = navigator;
|
|
22712
22712
|
this.localMediaHandler = yield T.init();
|
|
22713
22713
|
} else
|
|
22714
|
-
this.localMediaHandler = new
|
|
22714
|
+
this.localMediaHandler = new Mt(
|
|
22715
22715
|
i,
|
|
22716
22716
|
e.constraints,
|
|
22717
22717
|
(n = i == null ? void 0 : i.getValue("defaults")) == null ? void 0 : n.isNonPreferredDevice,
|
|
@@ -22974,7 +22974,7 @@ const Ya = {}, Jr = {
|
|
|
22974
22974
|
};
|
|
22975
22975
|
}
|
|
22976
22976
|
};
|
|
22977
|
-
var jM = Object.defineProperty, GM = Object.getOwnPropertyDescriptor,
|
|
22977
|
+
var jM = Object.defineProperty, GM = Object.getOwnPropertyDescriptor, Pt = (s, t, e, r) => {
|
|
22978
22978
|
for (var i = r > 1 ? void 0 : r ? GM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
22979
22979
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
22980
22980
|
return r && i && jM(t, e, i), i;
|
|
@@ -23005,7 +23005,7 @@ let ze = (nm = class extends qM {
|
|
|
23005
23005
|
p(this, "roomState", "init");
|
|
23006
23006
|
f(this, zn, /* @__PURE__ */ new Set());
|
|
23007
23007
|
f(this, Yn, /* @__PURE__ */ new Set());
|
|
23008
|
-
v(this, Cs, t), this.userId = e.id, this.name = e.name, this.picture = e.picture, this.customParticipantId = (o = e.customParticipantId) != null ? o : e.clientSpecificId, this.waitlistStatus = "none", v(this, ft, r), v(this, Jn, i), this.hidden = false, v(this, Kn, false), this.organizationId = e.organizationId, this.supportsRemoteControl = Pe.isElectron(), this.device = Pe.getDeviceInfo(), this.presetName = n, i.viewType !==
|
|
23008
|
+
v(this, Cs, t), this.userId = e.id, this.name = e.name, this.picture = e.picture, this.customParticipantId = (o = e.customParticipantId) != null ? o : e.clientSpecificId, this.waitlistStatus = "none", v(this, ft, r), v(this, Jn, i), this.hidden = false, v(this, Kn, false), this.organizationId = e.organizationId, this.supportsRemoteControl = Pe.isElectron(), this.device = Pe.getDeviceInfo(), this.presetName = n, i.viewType !== Et.Chat && this.updatePermission(), this.updateVideo = this.updateVideo.bind(this), $(this, Lo, Tu).call(this);
|
|
23009
23009
|
}
|
|
23010
23010
|
get stageStatus() {
|
|
23011
23011
|
return a(this, Cs).getValue("stageStatus");
|
|
@@ -23019,7 +23019,7 @@ let ze = (nm = class extends qM {
|
|
|
23019
23019
|
let c = (T = (g = t.getValue("defaults")) == null ? void 0 : g.audio) != null ? T : true, d = (P = (_ = t.getValue("defaults")) == null ? void 0 : _.video) != null ? P : true;
|
|
23020
23020
|
r.canProduceAudio !== "ALLOWED" && (c = false), r.canProduceVideo !== "ALLOWED" && (d = false);
|
|
23021
23021
|
const h = new ze(t, e, r, i, n);
|
|
23022
|
-
if (i.viewType ===
|
|
23022
|
+
if (i.viewType === Et.Chat)
|
|
23023
23023
|
return h;
|
|
23024
23024
|
const m = eM(i.mediaConstraints);
|
|
23025
23025
|
return lr(m, (b = t.getValue("defaults")) == null ? void 0 : b.mediaConfiguration), yield h.init({
|
|
@@ -23117,7 +23117,7 @@ let ze = (nm = class extends qM {
|
|
|
23117
23117
|
}
|
|
23118
23118
|
get roomJoined() {
|
|
23119
23119
|
var t;
|
|
23120
|
-
return a(this, Jn).viewType ===
|
|
23120
|
+
return a(this, Jn).viewType === Et.Livestream && this.stageStatus !== "ON_STAGE" ? ((t = a(this, Cs).getValue("connectionHandler")) == null ? void 0 : t.socketJoined) === true : a(this, xe, Be);
|
|
23121
23121
|
}
|
|
23122
23122
|
setName(t) {
|
|
23123
23123
|
if (!t)
|
|
@@ -23356,22 +23356,22 @@ let ze = (nm = class extends qM {
|
|
|
23356
23356
|
}, zn = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakSet(), Tu = function() {
|
|
23357
23357
|
Array.from(a(this, Yn)).forEach((t) => this.updateVideo(t, false)), Array.from(a(this, zn)).forEach((t) => this.updateVideo(t, true));
|
|
23358
23358
|
}, nm);
|
|
23359
|
-
|
|
23359
|
+
Pt([
|
|
23360
23360
|
y.trace("DyteSelf.cleanupEvents")
|
|
23361
23361
|
], ze.prototype, "cleanupEvents", 1);
|
|
23362
|
-
|
|
23362
|
+
Pt([
|
|
23363
23363
|
y.trace("DyteSelf.setupEvents")
|
|
23364
23364
|
], ze.prototype, "setupEvents", 1);
|
|
23365
|
-
|
|
23365
|
+
Pt([
|
|
23366
23366
|
y.trace("DyteSelf.setupTracks")
|
|
23367
23367
|
], ze.prototype, "setupTracks", 1);
|
|
23368
|
-
|
|
23368
|
+
Pt([
|
|
23369
23369
|
y.trace("DyteSelf.destructMediaHandler")
|
|
23370
23370
|
], ze.prototype, "destructMediaHandler", 1);
|
|
23371
|
-
|
|
23371
|
+
Pt([
|
|
23372
23372
|
y.trace("DyteSelf.removeDocumentEventListeners")
|
|
23373
23373
|
], ze.prototype, "removeDocumentEventListeners", 1);
|
|
23374
|
-
|
|
23374
|
+
Pt([
|
|
23375
23375
|
Jr.executeWithLock({
|
|
23376
23376
|
methodName: "meeting.self.enableAudio",
|
|
23377
23377
|
lockName: "DyteSelf.toggleAudio",
|
|
@@ -23379,7 +23379,7 @@ _t([
|
|
|
23379
23379
|
}),
|
|
23380
23380
|
y.trace("DyteSelf.enableAudio")
|
|
23381
23381
|
], ze.prototype, "enableAudio", 1);
|
|
23382
|
-
|
|
23382
|
+
Pt([
|
|
23383
23383
|
Jr.executeWithLock({
|
|
23384
23384
|
methodName: "meeting.self.enableVideo",
|
|
23385
23385
|
lockName: "DyteSelf.toggleVideo",
|
|
@@ -23387,10 +23387,10 @@ _t([
|
|
|
23387
23387
|
}),
|
|
23388
23388
|
y.trace("DyteSelf.enableVideo")
|
|
23389
23389
|
], ze.prototype, "enableVideo", 1);
|
|
23390
|
-
|
|
23390
|
+
Pt([
|
|
23391
23391
|
y.trace("DyteSelf.updateVideoConstraints")
|
|
23392
23392
|
], ze.prototype, "updateVideoConstraints", 1);
|
|
23393
|
-
|
|
23393
|
+
Pt([
|
|
23394
23394
|
y.trace("DyteSelf.enableScreenShare"),
|
|
23395
23395
|
Jr.executeWithLock({
|
|
23396
23396
|
methodName: "meeting.self.enableScreenShare",
|
|
@@ -23398,10 +23398,10 @@ _t([
|
|
|
23398
23398
|
timeout: 3e3
|
|
23399
23399
|
})
|
|
23400
23400
|
], ze.prototype, "enableScreenShare", 1);
|
|
23401
|
-
|
|
23401
|
+
Pt([
|
|
23402
23402
|
y.trace("DyteSelf.updateScreenshareConstraints")
|
|
23403
23403
|
], ze.prototype, "updateScreenshareConstraints", 1);
|
|
23404
|
-
|
|
23404
|
+
Pt([
|
|
23405
23405
|
Jr.executeWithLock({
|
|
23406
23406
|
methodName: "meeting.self.disableAudio",
|
|
23407
23407
|
lockName: "DyteSelf.toggleAudio",
|
|
@@ -23409,7 +23409,7 @@ _t([
|
|
|
23409
23409
|
}),
|
|
23410
23410
|
y.trace("DyteSelf.disableAudio")
|
|
23411
23411
|
], ze.prototype, "disableAudio", 1);
|
|
23412
|
-
|
|
23412
|
+
Pt([
|
|
23413
23413
|
Jr.executeWithLock({
|
|
23414
23414
|
methodName: "meeting.self.disableVideo",
|
|
23415
23415
|
lockName: "DyteSelf.toggleVideo",
|
|
@@ -23417,7 +23417,7 @@ _t([
|
|
|
23417
23417
|
}),
|
|
23418
23418
|
y.trace("DyteSelf.disableVideo")
|
|
23419
23419
|
], ze.prototype, "disableVideo", 1);
|
|
23420
|
-
|
|
23420
|
+
Pt([
|
|
23421
23421
|
Jr.executeWithLock({
|
|
23422
23422
|
methodName: "meeting.self.disableScreenShare",
|
|
23423
23423
|
lockName: "DyteSelf.toggleScreenShare",
|
|
@@ -23425,10 +23425,10 @@ _t([
|
|
|
23425
23425
|
}),
|
|
23426
23426
|
y.trace("DyteSelf.disableScreenShare")
|
|
23427
23427
|
], ze.prototype, "disableScreenShare", 1);
|
|
23428
|
-
|
|
23428
|
+
Pt([
|
|
23429
23429
|
y.trace("DyteSelf.setDevice")
|
|
23430
23430
|
], ze.prototype, "setDevice", 1);
|
|
23431
|
-
ze =
|
|
23431
|
+
ze = Pt([
|
|
23432
23432
|
ut("1100")
|
|
23433
23433
|
], ze);
|
|
23434
23434
|
var WM = Object.defineProperty, JM = Object.getOwnPropertyDescriptor, KM = (s, t, e, r) => {
|
|
@@ -23754,32 +23754,32 @@ const af = (am = class {
|
|
|
23754
23754
|
break;
|
|
23755
23755
|
}
|
|
23756
23756
|
case hs.peerJoinedBroadcast:
|
|
23757
|
-
case
|
|
23757
|
+
case Xt.peerJoinedBroadcast: {
|
|
23758
23758
|
e = lp.fromBinary.bind(lp);
|
|
23759
23759
|
break;
|
|
23760
23760
|
}
|
|
23761
23761
|
case hs.selfJoinComplete:
|
|
23762
|
-
case
|
|
23762
|
+
case Xt.selfJoinComplete: {
|
|
23763
23763
|
e = Xl.fromBinary.bind(Xl);
|
|
23764
23764
|
break;
|
|
23765
23765
|
}
|
|
23766
23766
|
case hs.globalPeerPinBroadcast:
|
|
23767
|
-
case
|
|
23767
|
+
case Xt.globalPeerPinBroadcast: {
|
|
23768
23768
|
e = pp.fromBinary.bind(pp);
|
|
23769
23769
|
break;
|
|
23770
23770
|
}
|
|
23771
23771
|
case hs.selectedPeer:
|
|
23772
|
-
case
|
|
23772
|
+
case Xt.selectedPeer: {
|
|
23773
23773
|
e = Ql.fromBinary.bind(Ql);
|
|
23774
23774
|
break;
|
|
23775
23775
|
}
|
|
23776
23776
|
case hs.selectedPeerDiff:
|
|
23777
|
-
case
|
|
23777
|
+
case Xt.selectedPeerDiff: {
|
|
23778
23778
|
e = dp.fromBinary.bind(dp);
|
|
23779
23779
|
break;
|
|
23780
23780
|
}
|
|
23781
23781
|
case hs.leaveRoom:
|
|
23782
|
-
case
|
|
23782
|
+
case Xt.leaveRoom: {
|
|
23783
23783
|
e = Zl.fromBinary.bind(Zl);
|
|
23784
23784
|
break;
|
|
23785
23785
|
}
|
|
@@ -23937,14 +23937,14 @@ class vo extends w {
|
|
|
23937
23937
|
super(t), this.name = "UnsupportedError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(this, vo) : this.stack = new Error(t).stack;
|
|
23938
23938
|
}
|
|
23939
23939
|
}
|
|
23940
|
-
class
|
|
23940
|
+
class It extends w {
|
|
23941
23941
|
constructor(t) {
|
|
23942
|
-
super(t), this.name = "InvalidStateError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(this,
|
|
23942
|
+
super(t), this.name = "InvalidStateError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(this, It) : this.stack = new Error(t).stack;
|
|
23943
23943
|
}
|
|
23944
23944
|
}
|
|
23945
23945
|
class ii extends w {
|
|
23946
23946
|
constructor(t) {
|
|
23947
|
-
super(t), this.name = "TransportConnectionError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(this,
|
|
23947
|
+
super(t), this.name = "TransportConnectionError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(this, It) : this.stack = new Error(t).stack;
|
|
23948
23948
|
}
|
|
23949
23949
|
}
|
|
23950
23950
|
const Vp = (s) => new Promise((t) => setTimeout(t, s));
|
|
@@ -24018,7 +24018,7 @@ class ZM {
|
|
|
24018
24018
|
f(this, Xe, void 0);
|
|
24019
24019
|
p(this, "events");
|
|
24020
24020
|
p(this, "sfuType");
|
|
24021
|
-
v(this, Xe, t), this.sfuType = e, this.events = e === Je.CF ? hs :
|
|
24021
|
+
v(this, Xe, t), this.sfuType = e, this.events = e === Je.CF ? hs : Xt;
|
|
24022
24022
|
}
|
|
24023
24023
|
joinRoom(t, e, r, i = false, n = null) {
|
|
24024
24024
|
return u(this, null, function* () {
|
|
@@ -24746,7 +24746,7 @@ class t0 extends fl {
|
|
|
24746
24746
|
getStats() {
|
|
24747
24747
|
return u(this, null, function* () {
|
|
24748
24748
|
if (a(this, Rs))
|
|
24749
|
-
throw new
|
|
24749
|
+
throw new It("closed");
|
|
24750
24750
|
return a(this, Uo).getReceiverStats(this.localId);
|
|
24751
24751
|
});
|
|
24752
24752
|
}
|
|
@@ -24787,12 +24787,12 @@ Uo = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), Rs = /*
|
|
|
24787
24787
|
}));
|
|
24788
24788
|
}
|
|
24789
24789
|
};
|
|
24790
|
-
var as, Qn, Xn, Ci,
|
|
24790
|
+
var as, Qn, Xn, Ci, zt, Ze, br, Zn, Lt, ss;
|
|
24791
24791
|
class s0 extends fl {
|
|
24792
24792
|
constructor(e) {
|
|
24793
24793
|
var r, i;
|
|
24794
24794
|
super();
|
|
24795
|
-
f(this,
|
|
24795
|
+
f(this, Lt);
|
|
24796
24796
|
p(this, "id");
|
|
24797
24797
|
p(this, "localId");
|
|
24798
24798
|
f(this, as, void 0);
|
|
@@ -24802,14 +24802,14 @@ class s0 extends fl {
|
|
|
24802
24802
|
f(this, Qn, void 0);
|
|
24803
24803
|
f(this, Xn, void 0);
|
|
24804
24804
|
f(this, Ci, void 0);
|
|
24805
|
-
f(this,
|
|
24805
|
+
f(this, zt, false);
|
|
24806
24806
|
f(this, Ze, void 0);
|
|
24807
24807
|
f(this, br, void 0);
|
|
24808
24808
|
f(this, Zn, void 0);
|
|
24809
24809
|
this.id = e.id, this.localId = e.localId, v(this, Ze, e.track), this.kind = (r = e.track) == null ? void 0 : r.kind, v(this, br, e.disableTrackOnPause ? !((i = e.track) != null && i.enabled) : false), v(this, Zn, void 0), v(this, Qn, e.stopTracks), v(this, Xn, e.disableTrackOnPause), v(this, Ci, e.zeroRtpOnPause), this.appData = e.appData || {}, this._onTrackEnded = this._onTrackEnded.bind(this), v(this, as, e.handler), this.rtpSender = e.rtpSender, this._handleTrack();
|
|
24810
24810
|
}
|
|
24811
24811
|
get closed() {
|
|
24812
|
-
return a(this,
|
|
24812
|
+
return a(this, zt);
|
|
24813
24813
|
}
|
|
24814
24814
|
get track() {
|
|
24815
24815
|
return a(this, Ze);
|
|
@@ -24822,9 +24822,9 @@ class s0 extends fl {
|
|
|
24822
24822
|
}
|
|
24823
24823
|
close(e) {
|
|
24824
24824
|
return u(this, null, function* () {
|
|
24825
|
-
if (a(this,
|
|
24825
|
+
if (a(this, zt))
|
|
24826
24826
|
return;
|
|
24827
|
-
if (l.debug(`Producer::close() ${e ? `with reason ${e}` : ""}`, a(this,
|
|
24827
|
+
if (l.debug(`Producer::close() ${e ? `with reason ${e}` : ""}`, a(this, Lt, ss)), v(this, zt, true), this._destroyTrack(), e === dd) {
|
|
24828
24828
|
this.safeEmit("close", { reason: e });
|
|
24829
24829
|
return;
|
|
24830
24830
|
}
|
|
@@ -24834,17 +24834,17 @@ class s0 extends fl {
|
|
|
24834
24834
|
}
|
|
24835
24835
|
getStats() {
|
|
24836
24836
|
return u(this, null, function* () {
|
|
24837
|
-
if (a(this,
|
|
24838
|
-
throw new
|
|
24837
|
+
if (a(this, zt))
|
|
24838
|
+
throw new It("closed");
|
|
24839
24839
|
return a(this, as).getSenderStats(this.localId);
|
|
24840
24840
|
});
|
|
24841
24841
|
}
|
|
24842
24842
|
pause() {
|
|
24843
|
-
l.debug("Producer::pause()", a(this,
|
|
24843
|
+
l.debug("Producer::pause()", a(this, Lt, ss)), a(this, zt) && l.error("Producer::pause() | Producer closed", a(this, Lt, ss)), v(this, br, true), a(this, Ze) && a(this, Xn) && (a(this, Ze).enabled = false), a(this, Ci) && a(this, as).replaceTrack(this.localId, null), this.emit("pause");
|
|
24844
24844
|
}
|
|
24845
24845
|
resume() {
|
|
24846
|
-
if (l.debug("Producer::resume()", a(this,
|
|
24847
|
-
l.error("Producer::resume() | Producer closed", a(this,
|
|
24846
|
+
if (l.debug("Producer::resume()", a(this, Lt, ss)), a(this, zt)) {
|
|
24847
|
+
l.error("Producer::resume() | Producer closed", a(this, Lt, ss));
|
|
24848
24848
|
return;
|
|
24849
24849
|
}
|
|
24850
24850
|
v(this, br, false), a(this, Ze) && a(this, Xn) && (a(this, Ze).enabled = true), a(this, Ci) && a(this, as).replaceTrack(this.localId, a(this, Ze)), this.emit("resume");
|
|
@@ -24853,20 +24853,20 @@ class s0 extends fl {
|
|
|
24853
24853
|
return u(this, arguments, function* ({
|
|
24854
24854
|
track: e
|
|
24855
24855
|
}) {
|
|
24856
|
-
if (l.debug(`Producer::replaceTrack() trackId: ${e == null ? void 0 : e.id}`, a(this,
|
|
24856
|
+
if (l.debug(`Producer::replaceTrack() trackId: ${e == null ? void 0 : e.id}`, a(this, Lt, ss)), a(this, zt)) {
|
|
24857
24857
|
if (e && a(this, Qn))
|
|
24858
24858
|
try {
|
|
24859
24859
|
e.stop();
|
|
24860
24860
|
} catch (i) {
|
|
24861
|
-
l.error("Producer::replaceTrack", j(O({}, a(this,
|
|
24861
|
+
l.error("Producer::replaceTrack", j(O({}, a(this, Lt, ss)), {
|
|
24862
24862
|
error: i
|
|
24863
24863
|
}));
|
|
24864
24864
|
}
|
|
24865
|
-
throw new
|
|
24865
|
+
throw new It("closed");
|
|
24866
24866
|
} else if (e && e.readyState === "ended")
|
|
24867
|
-
throw new
|
|
24867
|
+
throw new It("track ended");
|
|
24868
24868
|
if (e === a(this, Ze)) {
|
|
24869
|
-
l.debug(`replaceTrack() | same track, ignored trackId: ${e.id}`, a(this,
|
|
24869
|
+
l.debug(`replaceTrack() | same track, ignored trackId: ${e.id}`, a(this, Lt, ss));
|
|
24870
24870
|
return;
|
|
24871
24871
|
}
|
|
24872
24872
|
(!a(this, Ci) || !a(this, br)) && (yield a(this, as).replaceTrack(this.localId, e)), this._destroyTrack(), v(this, Ze, e), this._handleTrack();
|
|
@@ -24874,8 +24874,8 @@ class s0 extends fl {
|
|
|
24874
24874
|
}
|
|
24875
24875
|
setMaxSpatialLayer(e) {
|
|
24876
24876
|
return u(this, null, function* () {
|
|
24877
|
-
if (a(this,
|
|
24878
|
-
throw new
|
|
24877
|
+
if (a(this, zt))
|
|
24878
|
+
throw new It("closed");
|
|
24879
24879
|
if (this.kind !== "video")
|
|
24880
24880
|
throw new vo("not a video Producer");
|
|
24881
24881
|
if (typeof e != "number")
|
|
@@ -24885,15 +24885,15 @@ class s0 extends fl {
|
|
|
24885
24885
|
}
|
|
24886
24886
|
setRtpEncodingParameters(e) {
|
|
24887
24887
|
return u(this, null, function* () {
|
|
24888
|
-
if (a(this,
|
|
24889
|
-
throw new
|
|
24888
|
+
if (a(this, zt))
|
|
24889
|
+
throw new It("closed");
|
|
24890
24890
|
if (typeof e != "object")
|
|
24891
24891
|
throw new TypeError("invalid params");
|
|
24892
24892
|
yield a(this, as).setRtpEncodingParameters(this.localId, e);
|
|
24893
24893
|
});
|
|
24894
24894
|
}
|
|
24895
24895
|
_onTrackEnded() {
|
|
24896
|
-
l.debug(`Producer::track "ended" event trackId: ${this.track.id}`, a(this,
|
|
24896
|
+
l.debug(`Producer::track "ended" event trackId: ${this.track.id}`, a(this, Lt, ss)), this.safeEmit("trackended", this.track.id);
|
|
24897
24897
|
}
|
|
24898
24898
|
_handleTrack() {
|
|
24899
24899
|
a(this, Ze) && a(this, Ze).addEventListener("ended", this._onTrackEnded);
|
|
@@ -24904,13 +24904,13 @@ class s0 extends fl {
|
|
|
24904
24904
|
try {
|
|
24905
24905
|
a(this, Ze).removeEventListener("ended", this._onTrackEnded), a(this, Qn) && a(this, Ze).stop();
|
|
24906
24906
|
} catch (r) {
|
|
24907
|
-
l.error(`Producer::_destroyTrack trackId: ${(e = this.track) == null ? void 0 : e.id}`, j(O({}, a(this,
|
|
24907
|
+
l.error(`Producer::_destroyTrack trackId: ${(e = this.track) == null ? void 0 : e.id}`, j(O({}, a(this, Lt, ss)), {
|
|
24908
24908
|
error: r
|
|
24909
24909
|
}));
|
|
24910
24910
|
}
|
|
24911
24911
|
}
|
|
24912
24912
|
}
|
|
24913
|
-
as = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Ci = /* @__PURE__ */ new WeakMap(),
|
|
24913
|
+
as = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Ci = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakSet(), ss = function() {
|
|
24914
24914
|
return {
|
|
24915
24915
|
producer: {
|
|
24916
24916
|
id: this.id,
|
|
@@ -25207,7 +25207,7 @@ const on = class extends fl {
|
|
|
25207
25207
|
getStats() {
|
|
25208
25208
|
return u(this, null, function* () {
|
|
25209
25209
|
if (this.closed)
|
|
25210
|
-
throw new
|
|
25210
|
+
throw new It("closed");
|
|
25211
25211
|
return this.handler.getTransportStats();
|
|
25212
25212
|
});
|
|
25213
25213
|
}
|
|
@@ -25232,7 +25232,7 @@ const on = class extends fl {
|
|
|
25232
25232
|
restartIce() {
|
|
25233
25233
|
return u(this, null, function* () {
|
|
25234
25234
|
if (l.debug("restartIce()"), this.closed)
|
|
25235
|
-
throw new
|
|
25235
|
+
throw new It("closed");
|
|
25236
25236
|
return this.handler.restartIce();
|
|
25237
25237
|
});
|
|
25238
25238
|
}
|
|
@@ -25243,7 +25243,7 @@ const on = class extends fl {
|
|
|
25243
25243
|
if (this.direction !== "send")
|
|
25244
25244
|
throw new vo("not a sending Transport");
|
|
25245
25245
|
if (r.readyState === "ended")
|
|
25246
|
-
throw new
|
|
25246
|
+
throw new It("track ended");
|
|
25247
25247
|
if (i && typeof i != "object")
|
|
25248
25248
|
throw new TypeError("if given, appData must be an object");
|
|
25249
25249
|
} else
|
|
@@ -25319,7 +25319,7 @@ const on = class extends fl {
|
|
|
25319
25319
|
canConsume() {
|
|
25320
25320
|
return u(this, null, function* () {
|
|
25321
25321
|
if (this.closed)
|
|
25322
|
-
throw new
|
|
25322
|
+
throw new It("closed");
|
|
25323
25323
|
if (this.direction !== "recv")
|
|
25324
25324
|
throw new vo("not a receiving transport");
|
|
25325
25325
|
if (!(yield this.transportConnectionPromise))
|
|
@@ -25680,7 +25680,7 @@ class o0 extends lt.EventEmitter {
|
|
|
25680
25680
|
}
|
|
25681
25681
|
case Je.HIVE:
|
|
25682
25682
|
default: {
|
|
25683
|
-
v(this, ra,
|
|
25683
|
+
v(this, ra, Xt);
|
|
25684
25684
|
break;
|
|
25685
25685
|
}
|
|
25686
25686
|
}
|
|
@@ -26462,7 +26462,7 @@ oa = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Ar = /*
|
|
|
26462
26462
|
peerId: e.peerId
|
|
26463
26463
|
});
|
|
26464
26464
|
};
|
|
26465
|
-
var zo, Yo, Qo, la, ua, ha, Xo, Zo, pa,
|
|
26465
|
+
var zo, Yo, Qo, la, ua, ha, Xo, Zo, pa, wt, os, cs, ki, Ii, Js, ec, qd, Pf, jd, Cf, Gd, Rf, Wd, wf;
|
|
26466
26466
|
const Jd = class {
|
|
26467
26467
|
constructor({
|
|
26468
26468
|
initialEnergyThreshold: t = 0.015,
|
|
@@ -26487,14 +26487,14 @@ const Jd = class {
|
|
|
26487
26487
|
f(this, Xo, void 0);
|
|
26488
26488
|
f(this, Zo, void 0);
|
|
26489
26489
|
f(this, pa, void 0);
|
|
26490
|
-
f(this,
|
|
26490
|
+
f(this, wt, void 0);
|
|
26491
26491
|
f(this, os, void 0);
|
|
26492
26492
|
f(this, cs, false);
|
|
26493
26493
|
f(this, ki, 0);
|
|
26494
26494
|
f(this, Ii, 0);
|
|
26495
26495
|
f(this, Js, []);
|
|
26496
26496
|
f(this, ec, void 0);
|
|
26497
|
-
v(this, la, t), v(this,
|
|
26497
|
+
v(this, la, t), v(this, wt, t), v(this, zo, e), v(this, Yo, r), v(this, Qo, i), v(this, ua, n), v(this, ha, o), v(this, Xo, c), v(this, Zo, d), v(this, pa, h), v(this, ec, m), v(this, os, t / 2);
|
|
26498
26498
|
}
|
|
26499
26499
|
get voiceDetected() {
|
|
26500
26500
|
return a(this, cs);
|
|
@@ -26502,27 +26502,27 @@ const Jd = class {
|
|
|
26502
26502
|
processAudioChunk(t) {
|
|
26503
26503
|
var o, c;
|
|
26504
26504
|
const e = $(o = Jd, Gd, Rf).call(o, t), r = $(c = Jd, Wd, wf).call(c, t);
|
|
26505
|
-
return $(this, qd, Pf).call(this, e), e / a(this, os) > a(this, pa) && e > a(this,
|
|
26505
|
+
return $(this, qd, Pf).call(this, e), e / a(this, os) > a(this, pa) && e > a(this, wt) && r > a(this, zo) ? (v(this, ki, a(this, ki) + 1), v(this, Ii, a(this, Qo)), a(this, ki) >= a(this, Yo) && v(this, cs, true)) : (v(this, ki, 0), a(this, Ii) > 0 ? v(this, Ii, a(this, Ii) - 1) : a(this, cs) && v(this, cs, false), a(this, cs) || $(this, jd, Cf).call(this, e)), { energy: e, isVoice: a(this, cs) };
|
|
26506
26506
|
}
|
|
26507
26507
|
reset() {
|
|
26508
|
-
v(this, cs, false), v(this, ki, 0), v(this, Ii, 0), v(this,
|
|
26508
|
+
v(this, cs, false), v(this, ki, 0), v(this, Ii, 0), v(this, wt, a(this, la)), v(this, os, a(this, la) / 2), v(this, Js, []);
|
|
26509
26509
|
}
|
|
26510
26510
|
getThresholdInfo() {
|
|
26511
26511
|
return {
|
|
26512
|
-
currentEnergyThreshold: a(this,
|
|
26512
|
+
currentEnergyThreshold: a(this, wt),
|
|
26513
26513
|
backgroundNoiseEnergy: a(this, os),
|
|
26514
26514
|
energyRatioThreshold: a(this, pa)
|
|
26515
26515
|
};
|
|
26516
26516
|
}
|
|
26517
26517
|
};
|
|
26518
26518
|
let to = Jd;
|
|
26519
|
-
zo = /* @__PURE__ */ new WeakMap(), Yo = /* @__PURE__ */ new WeakMap(), Qo = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(), Xo = /* @__PURE__ */ new WeakMap(), Zo = /* @__PURE__ */ new WeakMap(), pa = /* @__PURE__ */ new WeakMap(),
|
|
26520
|
-
a(this, cs) ? v(this,
|
|
26519
|
+
zo = /* @__PURE__ */ new WeakMap(), Yo = /* @__PURE__ */ new WeakMap(), Qo = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(), Xo = /* @__PURE__ */ new WeakMap(), Zo = /* @__PURE__ */ new WeakMap(), pa = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), os = /* @__PURE__ */ new WeakMap(), cs = /* @__PURE__ */ new WeakMap(), ki = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ new WeakMap(), ec = /* @__PURE__ */ new WeakMap(), qd = /* @__PURE__ */ new WeakSet(), Pf = function(t) {
|
|
26520
|
+
a(this, cs) ? v(this, wt, a(this, ha) * a(this, wt) + (1 - a(this, ha)) * t) : v(this, wt, a(this, ua) * a(this, wt) + (1 - a(this, ua)) * a(this, os)), v(this, wt, Math.max(
|
|
26521
26521
|
a(this, Xo),
|
|
26522
|
-
Math.min(a(this, Zo), a(this,
|
|
26522
|
+
Math.min(a(this, Zo), a(this, wt))
|
|
26523
26523
|
));
|
|
26524
26524
|
}, jd = /* @__PURE__ */ new WeakSet(), Cf = function(t) {
|
|
26525
|
-
if (t < a(this,
|
|
26525
|
+
if (t < a(this, wt) * 1.2)
|
|
26526
26526
|
if (a(this, Js).push(t), a(this, Js).length > a(this, ec) && a(this, Js).shift(), a(this, Js).length >= 10) {
|
|
26527
26527
|
const e = [...a(this, Js)].sort((i, n) => i - n), r = Math.floor(e.length / 2);
|
|
26528
26528
|
v(this, os, e[r]);
|
|
@@ -26646,7 +26646,7 @@ var f0 = Object.defineProperty, v0 = Object.getOwnPropertyDescriptor, le = (s, t
|
|
|
26646
26646
|
return r && i && f0(t, e, i), i;
|
|
26647
26647
|
};
|
|
26648
26648
|
const Es = ["video/VP9", "video/VP8"];
|
|
26649
|
-
var sc, rc, ct, J, va, Nr, vt, Mi, Di, Lr, ic, Qs, Ta, Oi, Ni, Tt,
|
|
26649
|
+
var sc, rc, ct, J, va, Nr, vt, Mi, Di, Lr, ic, Qs, Ta, Oi, Ni, Tt, bt, Vr, Zi, et, pt, Li, ro, Qd, Af, Xd, Mf, Zd, Df;
|
|
26650
26650
|
class ce {
|
|
26651
26651
|
constructor(t, e, r) {
|
|
26652
26652
|
f(this, Vr);
|
|
@@ -26674,7 +26674,7 @@ class ce {
|
|
|
26674
26674
|
f(this, Oi, void 0);
|
|
26675
26675
|
f(this, Ni, void 0);
|
|
26676
26676
|
f(this, Tt, void 0);
|
|
26677
|
-
f(this,
|
|
26677
|
+
f(this, bt, void 0);
|
|
26678
26678
|
p(this, "partialJoinRoomPromise");
|
|
26679
26679
|
var n, o;
|
|
26680
26680
|
this.context = t;
|
|
@@ -26687,7 +26687,7 @@ class ce {
|
|
|
26687
26687
|
])), v(this, Ni, /* @__PURE__ */ new Map([
|
|
26688
26688
|
["video/VP9", /* @__PURE__ */ new Set()],
|
|
26689
26689
|
["video/VP8", /* @__PURE__ */ new Set()]
|
|
26690
|
-
])), v(this, Nr, e), v(this, ct, i), v(this, Mi, false), v(this, J, new l0(t, i, e)), v(this, vt, a(this, J).events), v(this, Qs, /* @__PURE__ */ new Set()), v(this, Tt, /* @__PURE__ */ new Map()), v(this, Di, false), v(this, Lr, new yu()), e === Je.CF && !navigator.isReactNative && v(this,
|
|
26690
|
+
])), v(this, Nr, e), v(this, ct, i), v(this, Mi, false), v(this, J, new l0(t, i, e)), v(this, vt, a(this, J).events), v(this, Qs, /* @__PURE__ */ new Set()), v(this, Tt, /* @__PURE__ */ new Map()), v(this, Di, false), v(this, Lr, new yu()), e === Je.CF && !navigator.isReactNative && v(this, bt, new so(
|
|
26691
26691
|
a(this, J).socketHandler.audioActivity.bind(a(this, J).socketHandler)
|
|
26692
26692
|
)), this.e2ee = (o = (n = t.getValue("modules").e2ee) == null ? void 0 : n.enabled) != null ? o : false, this.handleSocketEvents(), this.handleCallstatsEvents(), v(this, ic, zu(
|
|
26693
26693
|
() => u(this, null, function* () {
|
|
@@ -26987,14 +26987,14 @@ class ce {
|
|
|
26987
26987
|
return u(this, null, function* () {
|
|
26988
26988
|
try {
|
|
26989
26989
|
if (t === void 0)
|
|
26990
|
-
throw new
|
|
26990
|
+
throw new It("track undefined");
|
|
26991
26991
|
const e = $(this, et, pt).call(this, fe.MIC);
|
|
26992
26992
|
if (e) {
|
|
26993
26993
|
const o = yield e;
|
|
26994
26994
|
if (a(this, J).producers.has(o)) {
|
|
26995
26995
|
const c = a(this, J).producers.get(o);
|
|
26996
26996
|
if (!c.closed) {
|
|
26997
|
-
yield c.replaceTrack({ track: t }), yield this.resumeMic(), a(this,
|
|
26997
|
+
yield c.replaceTrack({ track: t }), yield this.resumeMic(), a(this, bt) && (a(this, bt).audioTrack = t, a(this, bt).producerId = o, a(this, bt).start());
|
|
26998
26998
|
return;
|
|
26999
26999
|
}
|
|
27000
27000
|
yield a(this, J).closeProducer(o, { stopTrack: false });
|
|
@@ -27009,7 +27009,7 @@ class ce {
|
|
|
27009
27009
|
i
|
|
27010
27010
|
);
|
|
27011
27011
|
$(this, Li, ro).call(this, fe.MIC, n.then((o) => o.id)), yield n.then((o) => {
|
|
27012
|
-
a(this,
|
|
27012
|
+
a(this, bt) && (a(this, bt).audioTrack = o.track, a(this, bt).producerId = o.id, a(this, bt).start());
|
|
27013
27013
|
});
|
|
27014
27014
|
} catch (e) {
|
|
27015
27015
|
throw new w(e);
|
|
@@ -27028,7 +27028,7 @@ class ce {
|
|
|
27028
27028
|
l.info("pauseMic::mic_producer_already_paused");
|
|
27029
27029
|
return;
|
|
27030
27030
|
}
|
|
27031
|
-
e.pause(), (i = a(this,
|
|
27031
|
+
e.pause(), (i = a(this, bt)) == null || i.stop();
|
|
27032
27032
|
const r = {
|
|
27033
27033
|
producerId: e.id,
|
|
27034
27034
|
pause: true
|
|
@@ -27113,7 +27113,7 @@ class ce {
|
|
|
27113
27113
|
return u(this, null, function* () {
|
|
27114
27114
|
var e;
|
|
27115
27115
|
const t = yield $(this, et, pt).call(this, fe.MIC);
|
|
27116
|
-
t && (yield a(this, J).closeProducer(t)), (e = a(this,
|
|
27116
|
+
t && (yield a(this, J).closeProducer(t)), (e = a(this, bt)) == null || e.stop(), a(this, Tt).delete(fe.MIC);
|
|
27117
27117
|
});
|
|
27118
27118
|
}
|
|
27119
27119
|
disableScreenShare() {
|
|
@@ -27400,7 +27400,7 @@ class ce {
|
|
|
27400
27400
|
}));
|
|
27401
27401
|
}
|
|
27402
27402
|
}
|
|
27403
|
-
sc = /* @__PURE__ */ new WeakMap(), rc = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), ic = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), Ta = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(),
|
|
27403
|
+
sc = /* @__PURE__ */ new WeakMap(), rc = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), ic = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), Ta = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakSet(), Zi = function() {
|
|
27404
27404
|
return this.context.getValue("connectionHandler");
|
|
27405
27405
|
}, et = /* @__PURE__ */ new WeakSet(), pt = function(t) {
|
|
27406
27406
|
return a(this, Tt).get(t);
|
|
@@ -27552,10 +27552,10 @@ var T0 = Object.defineProperty, y0 = Object.getOwnPropertyDescriptor, Ki = (s, t
|
|
|
27552
27552
|
for (var i = r > 1 ? void 0 : r ? y0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
27553
27553
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
27554
27554
|
return r && i && T0(t, e, i), i;
|
|
27555
|
-
}, xr, ls, dt,
|
|
27555
|
+
}, xr, ls, dt, yt, Ot, om;
|
|
27556
27556
|
const Lf = (om = class {
|
|
27557
27557
|
constructor(s, t, e, r) {
|
|
27558
|
-
f(this,
|
|
27558
|
+
f(this, yt);
|
|
27559
27559
|
p(this, "self");
|
|
27560
27560
|
p(this, "authToken");
|
|
27561
27561
|
f(this, xr, void 0);
|
|
@@ -27563,7 +27563,7 @@ const Lf = (om = class {
|
|
|
27563
27563
|
f(this, ls, void 0);
|
|
27564
27564
|
f(this, dt, void 0);
|
|
27565
27565
|
const { socket: i } = e, n = s.getValue("authToken");
|
|
27566
|
-
this.self = t, v(this, dt, s), this.viewType = r, this.authToken = n, v(this, xr, i), v(this, ls, e), t.config.viewType !==
|
|
27566
|
+
this.self = t, v(this, dt, s), this.viewType = r, this.authToken = n, v(this, xr, i), v(this, ls, e), t.config.viewType !== Et.Chat && this.setupEvents();
|
|
27567
27567
|
}
|
|
27568
27568
|
get peerId() {
|
|
27569
27569
|
return a(this, dt).getValue("peerId");
|
|
@@ -27623,20 +27623,20 @@ const Lf = (om = class {
|
|
|
27623
27623
|
} = this.self;
|
|
27624
27624
|
if (e.canProduceAudio && r)
|
|
27625
27625
|
try {
|
|
27626
|
-
yield a(this,
|
|
27626
|
+
yield a(this, yt, Ot).shareMic(s), this.self.audioEnabled || a(this, yt, Ot).pauseMic();
|
|
27627
27627
|
} catch (d) {
|
|
27628
27628
|
this.self.disableAudio();
|
|
27629
27629
|
}
|
|
27630
27630
|
if (e.canProduceVideo && i)
|
|
27631
27631
|
try {
|
|
27632
|
-
const d = yield a(this,
|
|
27633
|
-
d && d.id !== t.id && Y.hasFeature(se.EXP_RESHARE) && (yield a(this,
|
|
27632
|
+
const d = yield a(this, yt, Ot).shareWebcam(t);
|
|
27633
|
+
d && d.id !== t.id && Y.hasFeature(se.EXP_RESHARE) && (yield a(this, yt, Ot).shareWebcam(d)), this.self.videoEnabled || a(this, yt, Ot).pauseWebcam();
|
|
27634
27634
|
} catch (d) {
|
|
27635
27635
|
this.self.disableVideo();
|
|
27636
27636
|
}
|
|
27637
27637
|
if (e.canProduceScreenshare && n)
|
|
27638
27638
|
try {
|
|
27639
|
-
yield (c = a(this,
|
|
27639
|
+
yield (c = a(this, yt, Ot)) == null ? void 0 : c.shareScreen({
|
|
27640
27640
|
video: o.video,
|
|
27641
27641
|
audio: o.audio
|
|
27642
27642
|
});
|
|
@@ -27670,7 +27670,7 @@ const Lf = (om = class {
|
|
|
27670
27670
|
}
|
|
27671
27671
|
resetSelf(s) {
|
|
27672
27672
|
return u(this, null, function* () {
|
|
27673
|
-
W.callEnded(), a(this,
|
|
27673
|
+
W.callEnded(), a(this, yt, Ot).reset(), s && (yield this.joinRoom(s));
|
|
27674
27674
|
});
|
|
27675
27675
|
}
|
|
27676
27676
|
setupEvents() {
|
|
@@ -27783,7 +27783,7 @@ const Lf = (om = class {
|
|
|
27783
27783
|
roomNodeOptions: n
|
|
27784
27784
|
} = a(this, dt).getAllValues(), { sfu: o } = n;
|
|
27785
27785
|
try {
|
|
27786
|
-
if (e ===
|
|
27786
|
+
if (e === Et.Livestream) {
|
|
27787
27787
|
if (i !== "ON_STAGE") {
|
|
27788
27788
|
this.self.roomState = "joined", this.self.emit("roomJoined", { reconnected: s });
|
|
27789
27789
|
return;
|
|
@@ -27793,7 +27793,7 @@ const Lf = (om = class {
|
|
|
27793
27793
|
peerId: t
|
|
27794
27794
|
});
|
|
27795
27795
|
}
|
|
27796
|
-
const { roomJoined: h } = (d = yield (c = a(this,
|
|
27796
|
+
const { roomJoined: h } = (d = yield (c = a(this, yt, Ot)) == null ? void 0 : c.joinRoom(
|
|
27797
27797
|
this.self.name,
|
|
27798
27798
|
r,
|
|
27799
27799
|
{
|
|
@@ -27815,7 +27815,7 @@ const Lf = (om = class {
|
|
|
27815
27815
|
leaveMediaRoom(s) {
|
|
27816
27816
|
return u(this, null, function* () {
|
|
27817
27817
|
const t = a(this, dt).getValue("viewType");
|
|
27818
|
-
s !== "connected-meeting" && (yield this.cleanupSelf()), !(s === "stageLeft" && t ===
|
|
27818
|
+
s !== "connected-meeting" && (yield this.cleanupSelf()), !(s === "stageLeft" && t === Et.Webinar) && a(this, yt, Ot) && (a(this, yt, Ot).mediaJoined && s !== "disconnected" && (yield a(this, yt, Ot).leaveRoom()), !(s === "stageLeft" && t === Et.Livestream) && (a(this, yt, Ot).mediaJoined = false));
|
|
27819
27819
|
});
|
|
27820
27820
|
}
|
|
27821
27821
|
cleanupSelf() {
|
|
@@ -27823,7 +27823,7 @@ const Lf = (om = class {
|
|
|
27823
27823
|
yield this.self.disableAudio(), yield this.self.disableVideo(), yield this.self.disableScreenShare(), this.self.cleanUpTracks(), this.self.destructMediaHandler(), navigator.isReactNative || this.self.removeDocumentEventListeners();
|
|
27824
27824
|
});
|
|
27825
27825
|
}
|
|
27826
|
-
}, xr = /* @__PURE__ */ new WeakMap(), ls = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(),
|
|
27826
|
+
}, xr = /* @__PURE__ */ new WeakMap(), ls = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakSet(), Ot = function() {
|
|
27827
27827
|
return a(this, dt).getValue("roomNodeClient");
|
|
27828
27828
|
}, om);
|
|
27829
27829
|
let Kr = Lf;
|
|
@@ -27968,32 +27968,32 @@ ph([
|
|
|
27968
27968
|
ph([
|
|
27969
27969
|
y.trace("PollSocketHandler.votePoll")
|
|
27970
27970
|
], vl.prototype, "votePoll", 1);
|
|
27971
|
-
var
|
|
27971
|
+
var kt;
|
|
27972
27972
|
class C0 {
|
|
27973
27973
|
constructor(t) {
|
|
27974
|
-
f(this,
|
|
27975
|
-
v(this,
|
|
27974
|
+
f(this, kt, void 0);
|
|
27975
|
+
v(this, kt, t);
|
|
27976
27976
|
}
|
|
27977
27977
|
getStageRequests() {
|
|
27978
27978
|
return u(this, null, function* () {
|
|
27979
|
-
const { payload: t } = yield a(this,
|
|
27979
|
+
const { payload: t } = yield a(this, kt).sendMessagePromise(
|
|
27980
27980
|
x.getStageRequests
|
|
27981
27981
|
);
|
|
27982
27982
|
return t ? Ll.fromBinary(t) : { stageRequests: [] };
|
|
27983
27983
|
});
|
|
27984
27984
|
}
|
|
27985
27985
|
requestAccess() {
|
|
27986
|
-
a(this,
|
|
27986
|
+
a(this, kt).sendMessage(x.requestStageAccess);
|
|
27987
27987
|
}
|
|
27988
27988
|
cancelRequestAccess() {
|
|
27989
|
-
a(this,
|
|
27989
|
+
a(this, kt).sendMessage(x.cancelStageRequest);
|
|
27990
27990
|
}
|
|
27991
27991
|
grantAccess(t) {
|
|
27992
27992
|
return u(this, null, function* () {
|
|
27993
27993
|
const e = {
|
|
27994
27994
|
userIds: t
|
|
27995
27995
|
};
|
|
27996
|
-
a(this,
|
|
27996
|
+
a(this, kt).sendMessage(
|
|
27997
27997
|
x.grantStageAccess,
|
|
27998
27998
|
hI.toBinary(e)
|
|
27999
27999
|
);
|
|
@@ -28004,14 +28004,14 @@ class C0 {
|
|
|
28004
28004
|
const e = {
|
|
28005
28005
|
userIds: t
|
|
28006
28006
|
};
|
|
28007
|
-
a(this,
|
|
28007
|
+
a(this, kt).sendMessage(
|
|
28008
28008
|
x.denyStageAccess,
|
|
28009
28009
|
mI.toBinary(e)
|
|
28010
28010
|
);
|
|
28011
28011
|
});
|
|
28012
28012
|
}
|
|
28013
28013
|
joinStage() {
|
|
28014
|
-
return a(this,
|
|
28014
|
+
return a(this, kt).sendMessagePromise(
|
|
28015
28015
|
x.joinStage,
|
|
28016
28016
|
void 0,
|
|
28017
28017
|
void 0,
|
|
@@ -28022,7 +28022,7 @@ class C0 {
|
|
|
28022
28022
|
const e = {
|
|
28023
28023
|
userIds: [t]
|
|
28024
28024
|
};
|
|
28025
|
-
return a(this,
|
|
28025
|
+
return a(this, kt).sendMessagePromise(
|
|
28026
28026
|
x.leaveStage,
|
|
28027
28027
|
kp.toBinary(e),
|
|
28028
28028
|
void 0,
|
|
@@ -28033,7 +28033,7 @@ class C0 {
|
|
|
28033
28033
|
const e = {
|
|
28034
28034
|
userIds: t
|
|
28035
28035
|
};
|
|
28036
|
-
return a(this,
|
|
28036
|
+
return a(this, kt).sendMessagePromise(
|
|
28037
28037
|
x.leaveStage,
|
|
28038
28038
|
kp.toBinary(e)
|
|
28039
28039
|
);
|
|
@@ -28065,7 +28065,7 @@ class C0 {
|
|
|
28065
28065
|
break;
|
|
28066
28066
|
}
|
|
28067
28067
|
}
|
|
28068
|
-
a(this,
|
|
28068
|
+
a(this, kt).on(t, ({ payload: i, id: n }) => {
|
|
28069
28069
|
if (!i || !r)
|
|
28070
28070
|
return e(void 0, n);
|
|
28071
28071
|
const o = r(i);
|
|
@@ -28074,7 +28074,7 @@ class C0 {
|
|
|
28074
28074
|
}
|
|
28075
28075
|
getPeerInfo(t) {
|
|
28076
28076
|
return u(this, null, function* () {
|
|
28077
|
-
const e = yield a(this,
|
|
28077
|
+
const e = yield a(this, kt).sendMessagePromise(
|
|
28078
28078
|
x.getPeerInfo,
|
|
28079
28079
|
Ig.toBinary({ peerId: t })
|
|
28080
28080
|
);
|
|
@@ -28082,7 +28082,7 @@ class C0 {
|
|
|
28082
28082
|
});
|
|
28083
28083
|
}
|
|
28084
28084
|
}
|
|
28085
|
-
|
|
28085
|
+
kt = /* @__PURE__ */ new WeakMap();
|
|
28086
28086
|
var je;
|
|
28087
28087
|
class R0 {
|
|
28088
28088
|
constructor(t) {
|
|
@@ -28803,7 +28803,7 @@ var q0 = Object.defineProperty, j0 = Object.getOwnPropertyDescriptor, yl = (s, t
|
|
|
28803
28803
|
return r && i && q0(t, e, i), i;
|
|
28804
28804
|
};
|
|
28805
28805
|
const Hp = 65535, G0 = 3e3;
|
|
28806
|
-
var Ur, be, ke, Ne,
|
|
28806
|
+
var Ur, be, ke, Ne, Yt, Zs, oc, Nu, cc, Lu, cm;
|
|
28807
28807
|
const zf = (cm = class {
|
|
28808
28808
|
constructor(s, {
|
|
28809
28809
|
peerId: t,
|
|
@@ -28819,12 +28819,12 @@ const zf = (cm = class {
|
|
|
28819
28819
|
p(this, "roomName");
|
|
28820
28820
|
p(this, "authToken");
|
|
28821
28821
|
p(this, "capabilities");
|
|
28822
|
-
f(this,
|
|
28822
|
+
f(this, Yt, void 0);
|
|
28823
28823
|
f(this, Zs, void 0);
|
|
28824
28824
|
var n;
|
|
28825
28825
|
if (!t || !e || !r)
|
|
28826
28826
|
throw new w("peerId, meetingId, or authToken can not be empty", "0404");
|
|
28827
|
-
v(this,
|
|
28827
|
+
v(this, Yt, void 0), v(this, Zs, s), this.capabilities = i, this.roomName = e, this.authToken = r, v(this, Ur, $(this, oc, Nu).call(this, t)), v(this, be, new H0(a(this, Ur), {
|
|
28828
28828
|
autoReconnect: true,
|
|
28829
28829
|
disconnectOnPingTimeout: (n = i.includes("PING")) != null ? n : false,
|
|
28830
28830
|
queueOnDisconnect: true,
|
|
@@ -28906,7 +28906,7 @@ const zf = (cm = class {
|
|
|
28906
28906
|
(o, c) => {
|
|
28907
28907
|
const d = (_, P) => {
|
|
28908
28908
|
a(this, be).removeListener(n, _), a(this, be).removeListener(Hp, P), a(this, be).removeListener(
|
|
28909
|
-
|
|
28909
|
+
Xt.errorResponse,
|
|
28910
28910
|
P
|
|
28911
28911
|
), a(this, be).removeListener(
|
|
28912
28912
|
hs.errorResponse,
|
|
@@ -28940,7 +28940,7 @@ const zf = (cm = class {
|
|
|
28940
28940
|
}) => {
|
|
28941
28941
|
h === _ && (o({ id: _, payload: P }), d(T, g));
|
|
28942
28942
|
};
|
|
28943
|
-
a(this, be).on(n, T), a(this, be).on(Hp, g), a(this, be).on(
|
|
28943
|
+
a(this, be).on(n, T), a(this, be).on(Hp, g), a(this, be).on(Xt.errorResponse, g), a(this, be).on(hs.errorResponse, g), setTimeout(() => {
|
|
28944
28944
|
d(T, g), c(new Error(`request timeout for callback eventId:${s}`));
|
|
28945
28945
|
}, t), a(this, be).send(
|
|
28946
28946
|
s,
|
|
@@ -28968,7 +28968,7 @@ const zf = (cm = class {
|
|
|
28968
28968
|
}
|
|
28969
28969
|
handleSocketConnectionEvents() {
|
|
28970
28970
|
this.onStateEvent("connected", () => u(this, null, function* () {
|
|
28971
|
-
l.info("SocketService::Connected to socket-edge"), a(this,
|
|
28971
|
+
l.info("SocketService::Connected to socket-edge"), a(this, Yt) && (clearTimeout(a(this, Yt)), v(this, Yt, void 0)), a(this, ke, Ne).updateSocketConnectionState("connected");
|
|
28972
28972
|
})), this.onStateEvent("disconnected", ({ code: s, reason: t }) => {
|
|
28973
28973
|
var i;
|
|
28974
28974
|
l.info("SocketService::Disconnected from socket-edge", { error: { code: s, reason: t }, country: y.location.country });
|
|
@@ -28978,11 +28978,11 @@ const zf = (cm = class {
|
|
|
28978
28978
|
{
|
|
28979
28979
|
joinAttempted: a(this, ke, Ne).joinAttempted
|
|
28980
28980
|
}
|
|
28981
|
-
) : v(this,
|
|
28981
|
+
) : v(this, Yt, setTimeout(() => {
|
|
28982
28982
|
I.emit(
|
|
28983
28983
|
A.SOCKET_SERVICE_DISCONNECTED,
|
|
28984
28984
|
{ joinAttempted: a(this, ke, Ne).joinAttempted }
|
|
28985
|
-
), v(this,
|
|
28985
|
+
), v(this, Yt, void 0);
|
|
28986
28986
|
}, G0)), a(this, ke, Ne).updateSocketConnectionState("disconnected");
|
|
28987
28987
|
}), this.onStateEvent("reconnecting", () => u(this, null, function* () {
|
|
28988
28988
|
l.info("SocketService::Reconnecting to socket-edge", { country: y.location.country }), a(this, ke, Ne).updateSocketConnectionState("reconnecting");
|
|
@@ -28999,7 +28999,7 @@ const zf = (cm = class {
|
|
|
28999
28999
|
}
|
|
29000
29000
|
}), a(this, ke, Ne).updateSocketConnectionState("reconnectFailure", s);
|
|
29001
29001
|
}), this.onStateEvent("reconnected", () => u(this, null, function* () {
|
|
29002
|
-
l.info("SocketService::Reconnected to socket-edge", { connectionState: { joinAttempted: a(this, ke, Ne).mediaJoinAttempted } }), a(this,
|
|
29002
|
+
l.info("SocketService::Reconnected to socket-edge", { connectionState: { joinAttempted: a(this, ke, Ne).mediaJoinAttempted } }), a(this, Yt) && (clearTimeout(a(this, Yt)), v(this, Yt, void 0)), I.emit(A.SOCKET_SERVICE_RECONNECTED, {
|
|
29003
29003
|
wasJoinAttempted: a(this, ke, Ne).mediaJoinAttempted
|
|
29004
29004
|
}), a(this, ke, Ne).updateSocketConnectionState("reconnected");
|
|
29005
29005
|
})), this.onStateEvent("failed", () => u(this, null, function* () {
|
|
@@ -29008,7 +29008,7 @@ const zf = (cm = class {
|
|
|
29008
29008
|
}
|
|
29009
29009
|
}, Ur = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakSet(), Ne = function() {
|
|
29010
29010
|
return a(this, Zs).getValue("connectionHandler");
|
|
29011
|
-
},
|
|
29011
|
+
}, Yt = /* @__PURE__ */ new WeakMap(), Zs = /* @__PURE__ */ new WeakMap(), oc = /* @__PURE__ */ new WeakSet(), Nu = function(s) {
|
|
29012
29012
|
let t = zf.getSocketEdgeDomain(a(this, Zs).getValue("baseURI"));
|
|
29013
29013
|
typeof rd(a(this, Zs), "socket_server_base") == "string" && (t = rd(a(this, Zs), "socket_server_base"));
|
|
29014
29014
|
const e = `wss://${t}`, r = new URL(`${e}/ws`), i = this.peerId, n = j(O({
|
|
@@ -29283,23 +29283,23 @@ const sn = class {
|
|
|
29283
29283
|
let P, b, R, L, H, F, B, q;
|
|
29284
29284
|
const ie = new E0(s);
|
|
29285
29285
|
_e.socketService = s;
|
|
29286
|
-
const pe = new vl(s), Ye = new
|
|
29286
|
+
const pe = new vl(s), Ye = new Zt(s), Ss = new C0(s), ts = od.create(s, t), cr = new R0(s), M = new S0(s), E = new $i(s), C = yield Kr.init(
|
|
29287
29287
|
t,
|
|
29288
|
-
|
|
29288
|
+
ts,
|
|
29289
29289
|
d,
|
|
29290
29290
|
_,
|
|
29291
29291
|
n
|
|
29292
29292
|
), U = yield Gg.init(
|
|
29293
29293
|
t,
|
|
29294
29294
|
C.self,
|
|
29295
|
-
|
|
29295
|
+
ts,
|
|
29296
29296
|
ie,
|
|
29297
29297
|
i
|
|
29298
29298
|
);
|
|
29299
29299
|
if (o.participant && (q = new or(
|
|
29300
29300
|
t,
|
|
29301
29301
|
C.self,
|
|
29302
|
-
|
|
29302
|
+
ts,
|
|
29303
29303
|
m
|
|
29304
29304
|
)), ($e = o.e2ee) != null && $e.enabled && o.e2ee.manager.init(l, I), o.chat && (b = yield ps.init(
|
|
29305
29305
|
t,
|
|
@@ -29307,10 +29307,10 @@ const sn = class {
|
|
|
29307
29307
|
E,
|
|
29308
29308
|
C.self,
|
|
29309
29309
|
q.participants
|
|
29310
|
-
)), o.internals && (H = yield rh.init()), o.livestream && n.viewType ===
|
|
29310
|
+
)), o.internals && (H = yield rh.init()), o.livestream && n.viewType === Et.Livestream && Y.hasFeature(se.LIVESTREAM) && (B = new ef(
|
|
29311
29311
|
C.self,
|
|
29312
29312
|
M
|
|
29313
|
-
)), n.viewType !==
|
|
29313
|
+
)), n.viewType !== Et.Chat) {
|
|
29314
29314
|
if (o.poll && (P = yield Bg.init(
|
|
29315
29315
|
t,
|
|
29316
29316
|
C.self,
|
|
@@ -29318,11 +29318,11 @@ const sn = class {
|
|
|
29318
29318
|
)), o.recording && (F = new zg(
|
|
29319
29319
|
t,
|
|
29320
29320
|
C.self,
|
|
29321
|
-
|
|
29321
|
+
ts
|
|
29322
29322
|
)), o.stage && (R = new Wg(
|
|
29323
29323
|
t,
|
|
29324
29324
|
Ss,
|
|
29325
|
-
|
|
29325
|
+
ts,
|
|
29326
29326
|
C.self,
|
|
29327
29327
|
q.participants
|
|
29328
29328
|
)), o.plugin) {
|
|
@@ -29410,7 +29410,7 @@ var K0 = Object.defineProperty, z0 = Object.getOwnPropertyDescriptor, Y0 = (s, t
|
|
|
29410
29410
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
29411
29411
|
return r && i && K0(t, e, i), i;
|
|
29412
29412
|
}, dc, el;
|
|
29413
|
-
class Yf extends
|
|
29413
|
+
class Yf extends xt {
|
|
29414
29414
|
constructor(e, r) {
|
|
29415
29415
|
super();
|
|
29416
29416
|
f(this, dc, void 0);
|
|
@@ -29528,18 +29528,18 @@ class Yf extends Vt {
|
|
|
29528
29528
|
}
|
|
29529
29529
|
dc = /* @__PURE__ */ new WeakMap(), el = /* @__PURE__ */ new WeakMap();
|
|
29530
29530
|
Y0([
|
|
29531
|
-
|
|
29531
|
+
At({ maxInvocations: 60, period: 60 })
|
|
29532
29532
|
], Yf.prototype, "getConnectedMeetings", 1);
|
|
29533
29533
|
var Q0 = Object.defineProperty, X0 = Object.getOwnPropertyDescriptor, gh = (s, t, e, r) => {
|
|
29534
29534
|
for (var i = r > 1 ? void 0 : r ? X0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
29535
29535
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
29536
29536
|
return r && i && Q0(t, e, i), i;
|
|
29537
|
-
}, ya,
|
|
29537
|
+
}, ya, Qt, Fl, tl;
|
|
29538
29538
|
const mr = (Fl = class {
|
|
29539
29539
|
constructor(s, t, e) {
|
|
29540
29540
|
p(this, "connectedMeetings");
|
|
29541
29541
|
f(this, ya, void 0);
|
|
29542
|
-
f(this,
|
|
29542
|
+
f(this, Qt, void 0);
|
|
29543
29543
|
f(this, tl, void 0);
|
|
29544
29544
|
v(this, tl, s), v(this, ya, e), this.connectedMeetings = new Yf(s, t), this.setCurrentMeeting(t);
|
|
29545
29545
|
}
|
|
@@ -29554,7 +29554,7 @@ const mr = (Fl = class {
|
|
|
29554
29554
|
)), mr.instance;
|
|
29555
29555
|
}
|
|
29556
29556
|
setCurrentMeeting(s) {
|
|
29557
|
-
v(this,
|
|
29557
|
+
v(this, Qt, s), _e.currentMeetingId = s.meta.meetingId;
|
|
29558
29558
|
}
|
|
29559
29559
|
getConnectedMeetings() {
|
|
29560
29560
|
this.connectedMeetings.getConnectedMeetings();
|
|
@@ -29592,26 +29592,26 @@ const mr = (Fl = class {
|
|
|
29592
29592
|
Please connect with Dyte team to move you to V2 APIs & to enable connected meetings.`);
|
|
29593
29593
|
l.info("ConnectedMeetingsController::switchMeeting:: asking ui-kit to show switching breakout UI"), this.connectedMeetings.emit("changingMeeting", t);
|
|
29594
29594
|
const r = {
|
|
29595
|
-
video: a(this,
|
|
29596
|
-
audio: a(this,
|
|
29595
|
+
video: a(this, Qt).self.videoEnabled,
|
|
29596
|
+
audio: a(this, Qt).self.audioEnabled
|
|
29597
29597
|
};
|
|
29598
29598
|
try {
|
|
29599
|
-
a(this,
|
|
29599
|
+
a(this, Qt).self.cleanupEvents(), yield a(this, Qt).leave("connected-meeting");
|
|
29600
29600
|
} catch (h) {
|
|
29601
|
-
l.error(`ConnectedMeetingsController:: switchMeeting:: issues in leaving previous meeting. Meeting Id: ${(o = (n = a(this,
|
|
29601
|
+
l.error(`ConnectedMeetingsController:: switchMeeting:: issues in leaving previous meeting. Meeting Id: ${(o = (n = a(this, Qt)) == null ? void 0 : n.meta) == null ? void 0 : o.meetingId}`, { error: h });
|
|
29602
29602
|
}
|
|
29603
29603
|
_e.socketService = void 0, l.info(`ConnectedMeetingsController::switchMeeting:: initializing new meeting. Meeting Id: ${t}`);
|
|
29604
29604
|
const i = yield rD.init(j(O({}, a(this, ya)), {
|
|
29605
29605
|
cachedUserDetails: null,
|
|
29606
29606
|
defaults: j(O(O({}, a(this, ya).defaults), r), {
|
|
29607
|
-
mediaHandler: a(this,
|
|
29607
|
+
mediaHandler: a(this, Qt).self
|
|
29608
29608
|
}),
|
|
29609
29609
|
authToken: s
|
|
29610
29610
|
}));
|
|
29611
29611
|
l.info(`ConnectedMeetingsController::switchMeeting:: initialized new meeting. Meeting Id: ${(c = i == null ? void 0 : i.meta) == null ? void 0 : c.meetingId}`);
|
|
29612
29612
|
try {
|
|
29613
|
-
const { hidden: h } = a(this,
|
|
29614
|
-
i.self.setName(a(this,
|
|
29613
|
+
const { hidden: h } = a(this, Qt).self;
|
|
29614
|
+
i.self.setName(a(this, Qt).self.name), yield i.join(), h && i.self.hide();
|
|
29615
29615
|
} catch (h) {
|
|
29616
29616
|
l.error("ConnectedMeetingsController.joinRoom", { error: h });
|
|
29617
29617
|
}
|
|
@@ -29653,7 +29653,7 @@ const mr = (Fl = class {
|
|
|
29653
29653
|
parentMeeting: this.connectedMeetings.parentMeeting
|
|
29654
29654
|
});
|
|
29655
29655
|
}
|
|
29656
|
-
}, ya = /* @__PURE__ */ new WeakMap(),
|
|
29656
|
+
}, ya = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), tl = /* @__PURE__ */ new WeakMap(), p(Fl, "instance"), Fl);
|
|
29657
29657
|
let El = mr;
|
|
29658
29658
|
gh([
|
|
29659
29659
|
y.trace("ConnectedMeetingsController.getConnectedMeetings")
|