@cloudflare/realtimekit 1.1.8-staging.1 → 1.2.0-staging.2
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/browser.js +9 -9
- package/dist/index.cjs.js +9 -9
- package/dist/index.es.js +533 -532
- package/dist/index.rn.js +9 -9
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3177,17 +3177,17 @@ class ReflectionBinaryReader {
|
|
|
3177
3177
|
case "scalar":
|
|
3178
3178
|
case "enum":
|
|
3179
3179
|
let T = field.kind == "enum" ? ScalarType.INT32 : field.T;
|
|
3180
|
-
let
|
|
3180
|
+
let L = field.kind == "scalar" ? field.L : void 0;
|
|
3181
3181
|
if (repeated) {
|
|
3182
3182
|
let arr = target[localName];
|
|
3183
3183
|
if (wireType == WireType.LengthDelimited && T != ScalarType.STRING && T != ScalarType.BYTES) {
|
|
3184
3184
|
let e = reader.uint32() + reader.pos;
|
|
3185
3185
|
while (reader.pos < e)
|
|
3186
|
-
arr.push(this.scalar(reader, T,
|
|
3186
|
+
arr.push(this.scalar(reader, T, L));
|
|
3187
3187
|
} else
|
|
3188
|
-
arr.push(this.scalar(reader, T,
|
|
3188
|
+
arr.push(this.scalar(reader, T, L));
|
|
3189
3189
|
} else
|
|
3190
|
-
target[localName] = this.scalar(reader, T,
|
|
3190
|
+
target[localName] = this.scalar(reader, T, L);
|
|
3191
3191
|
break;
|
|
3192
3192
|
case "message":
|
|
3193
3193
|
if (repeated) {
|
|
@@ -4507,7 +4507,7 @@ var a = (s, t, e) => (au(s, t, "read from private field"), e ? e.call(s) : t.get
|
|
|
4507
4507
|
throw TypeError("Cannot add the same private member more than once");
|
|
4508
4508
|
t instanceof WeakSet ? t.add(s) : t.set(s, e);
|
|
4509
4509
|
}, m = (s, t, e, r) => (au(s, t, "write to private field"), r ? r.call(s, e) : t.set(s, e), e);
|
|
4510
|
-
var
|
|
4510
|
+
var V = (s, t, e) => (au(s, t, "access private method"), e), tp = (s, t, e) => tv(ev(s), e, t);
|
|
4511
4511
|
var u = (s, t, e) => new Promise((r, i) => {
|
|
4512
4512
|
var n = (d) => {
|
|
4513
4513
|
try {
|
|
@@ -4568,9 +4568,9 @@ const av = (s) => {
|
|
|
4568
4568
|
}), window.addEventListener("online", () => {
|
|
4569
4569
|
s.info("window::online");
|
|
4570
4570
|
}));
|
|
4571
|
-
},
|
|
4572
|
-
Chrome:
|
|
4573
|
-
Chromium:
|
|
4571
|
+
}, Lo = "chrome", zg = "opera", Yg = "firefox", Qg = "iexplorer", Xg = "safari", Zg = "nwjs", em = "electron", tm = "react-native", Sh = "unknown", wd = {
|
|
4572
|
+
Chrome: Lo,
|
|
4573
|
+
Chromium: Lo,
|
|
4574
4574
|
Opera: zg,
|
|
4575
4575
|
Firefox: Yg,
|
|
4576
4576
|
"Internet Explorer": Qg,
|
|
@@ -4584,9 +4584,9 @@ function nv() {
|
|
|
4584
4584
|
if (s.match(/Chrome/) && !s.match(/Edge/))
|
|
4585
4585
|
if (s.match(/Edg(A?)/)) {
|
|
4586
4586
|
const e = s.match(/Chrome\/([\d.]+)/)[1];
|
|
4587
|
-
Number.parseInt(e, 10) > 72 && (t.name =
|
|
4587
|
+
Number.parseInt(e, 10) > 72 && (t.name = Lo, t.version = e);
|
|
4588
4588
|
} else
|
|
4589
|
-
t.name =
|
|
4589
|
+
t.name = Lo, t.version = s.match(/Chrome\/([\d.]+)/)[1];
|
|
4590
4590
|
return t;
|
|
4591
4591
|
}
|
|
4592
4592
|
function ov() {
|
|
@@ -4663,7 +4663,7 @@ class uv {
|
|
|
4663
4663
|
return this._name;
|
|
4664
4664
|
}
|
|
4665
4665
|
isChrome() {
|
|
4666
|
-
return this._name ===
|
|
4666
|
+
return this._name === Lo;
|
|
4667
4667
|
}
|
|
4668
4668
|
isOpera() {
|
|
4669
4669
|
return this._name === zg;
|
|
@@ -4818,10 +4818,10 @@ var ut = {}, pv = {
|
|
|
4818
4818
|
set exports(s) {
|
|
4819
4819
|
ut = s;
|
|
4820
4820
|
}
|
|
4821
|
-
},
|
|
4821
|
+
}, Va = typeof Reflect == "object" ? Reflect : null, sp = Va && typeof Va.apply == "function" ? Va.apply : function(t, e, r) {
|
|
4822
4822
|
return Function.prototype.apply.call(t, e, r);
|
|
4823
4823
|
}, hd;
|
|
4824
|
-
|
|
4824
|
+
Va && typeof Va.ownKeys == "function" ? hd = Va.ownKeys : Object.getOwnPropertySymbols ? hd = function(t) {
|
|
4825
4825
|
return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t));
|
|
4826
4826
|
} : hd = function(t) {
|
|
4827
4827
|
return Object.getOwnPropertyNames(t);
|
|
@@ -5542,7 +5542,7 @@ class Nv extends vh {
|
|
|
5542
5542
|
super(t, Sr.isReflexive);
|
|
5543
5543
|
}
|
|
5544
5544
|
}
|
|
5545
|
-
class
|
|
5545
|
+
class Lv {
|
|
5546
5546
|
constructor() {
|
|
5547
5547
|
h(this, "ipInformation", null);
|
|
5548
5548
|
}
|
|
@@ -5574,7 +5574,7 @@ class Vv {
|
|
|
5574
5574
|
this.ipInformation = null;
|
|
5575
5575
|
}
|
|
5576
5576
|
}
|
|
5577
|
-
const yh = new
|
|
5577
|
+
const yh = new Lv(), np = [
|
|
5578
5578
|
{
|
|
5579
5579
|
urls: "turn:turn.dyte.in:443?transport=tcp",
|
|
5580
5580
|
username: "dyte",
|
|
@@ -5865,7 +5865,7 @@ class Pm extends ut {
|
|
|
5865
5865
|
outboundVideoRtpId: [],
|
|
5866
5866
|
outboundAudioRtpId: []
|
|
5867
5867
|
});
|
|
5868
|
-
const
|
|
5868
|
+
const L = {
|
|
5869
5869
|
bytesSent: y.bytesSent,
|
|
5870
5870
|
packetsSent: y.packetsSent,
|
|
5871
5871
|
nackCount: y.nackCount,
|
|
@@ -5899,13 +5899,13 @@ class Pm extends ut {
|
|
|
5899
5899
|
retransmittedPacketsSent: b.retransmittedPacketsSent,
|
|
5900
5900
|
scalabilityMode: b.scalabilityMode,
|
|
5901
5901
|
powerEfficientEncoder: b.powerEfficientEncoder
|
|
5902
|
-
},
|
|
5902
|
+
}, L);
|
|
5903
5903
|
d.outboundVideoRtp.set(I.id, $e), d.producerStreamMap.get(C).outboundVideoRtpId.push(I.id), this.processOutboundProducerVideoStats(C, ie, $e);
|
|
5904
5904
|
} else if (y.mediaType === "audio" || y.kind === "audio") {
|
|
5905
5905
|
const b = y, $e = D({
|
|
5906
5906
|
retransmittedBytesSent: b.retransmittedBytesSent,
|
|
5907
5907
|
retransmittedPacketsSent: b.retransmittedPacketsSent
|
|
5908
|
-
},
|
|
5908
|
+
}, L);
|
|
5909
5909
|
d.outboundAudioRtp.set(I.id, $e), d.producerStreamMap.get(C).outboundAudioRtpId.push(I.id), this.processOutboundProducerAudioStats(C, ie, $e);
|
|
5910
5910
|
}
|
|
5911
5911
|
} else
|
|
@@ -5955,28 +5955,28 @@ class Pm extends ut {
|
|
|
5955
5955
|
jitterBufferTargetDelay: y.jitterBufferTargetDelay || 0
|
|
5956
5956
|
};
|
|
5957
5957
|
if (y.mediaType === "video" || y.kind === "video") {
|
|
5958
|
-
const
|
|
5959
|
-
frameHeight:
|
|
5960
|
-
frameWidth:
|
|
5961
|
-
framesDecoded:
|
|
5962
|
-
framesDropped:
|
|
5963
|
-
framesPerSecond:
|
|
5964
|
-
framesReceived:
|
|
5965
|
-
keyFramesDecoded:
|
|
5966
|
-
firCount:
|
|
5967
|
-
decoderImplementation:
|
|
5968
|
-
pliCount:
|
|
5969
|
-
totalProcessingDelay:
|
|
5970
|
-
qpSum:
|
|
5971
|
-
totalAssemblyTime:
|
|
5972
|
-
totalDecodeTime:
|
|
5973
|
-
totalFreezesDuration:
|
|
5974
|
-
totalInterFrameDelay:
|
|
5975
|
-
totalPausesDuration:
|
|
5976
|
-
totalSquaredInterFrameDelay:
|
|
5977
|
-
freezeCount:
|
|
5978
|
-
pauseCount:
|
|
5979
|
-
powerEfficientDecoder:
|
|
5958
|
+
const L = y, b = D({
|
|
5959
|
+
frameHeight: L.frameHeight,
|
|
5960
|
+
frameWidth: L.frameWidth,
|
|
5961
|
+
framesDecoded: L.framesDecoded,
|
|
5962
|
+
framesDropped: L.framesDropped,
|
|
5963
|
+
framesPerSecond: L.framesPerSecond,
|
|
5964
|
+
framesReceived: L.framesReceived,
|
|
5965
|
+
keyFramesDecoded: L.keyFramesDecoded,
|
|
5966
|
+
firCount: L.firCount,
|
|
5967
|
+
decoderImplementation: L.decoderImplementation,
|
|
5968
|
+
pliCount: L.pliCount,
|
|
5969
|
+
totalProcessingDelay: L.totalProcessingDelay,
|
|
5970
|
+
qpSum: L.qpSum || 0,
|
|
5971
|
+
totalAssemblyTime: L.totalAssemblyTime || 0,
|
|
5972
|
+
totalDecodeTime: L.totalDecodeTime || 0,
|
|
5973
|
+
totalFreezesDuration: L.totalFreezesDuration || 0,
|
|
5974
|
+
totalInterFrameDelay: L.totalInterFrameDelay || 0,
|
|
5975
|
+
totalPausesDuration: L.totalPausesDuration || 0,
|
|
5976
|
+
totalSquaredInterFrameDelay: L.totalSquaredInterFrameDelay || 0,
|
|
5977
|
+
freezeCount: L.freezeCount || 0,
|
|
5978
|
+
pauseCount: L.pauseCount || 0,
|
|
5979
|
+
powerEfficientDecoder: L.powerEfficientDecoder
|
|
5980
5980
|
}, Me);
|
|
5981
5981
|
b.score = Tm({
|
|
5982
5982
|
frameWidth: b.frameWidth || 0,
|
|
@@ -6000,19 +6000,19 @@ class Pm extends ut {
|
|
|
6000
6000
|
bitrate: ((b.bytesReceived || 0) - (((F = this.videoConsumerToStatsMap.get(C)) == null ? void 0 : F.bytesReceived) || 0)) * 8 / 7
|
|
6001
6001
|
}), this.videoConsumerToStatsMap.set(C, b), d.inboundVideoRtp.set(I.id, b), d.consumerStreamMap.get(C).inboundVideoRtpId.push(I.id), this.processInboundConsumerVideoStats(C, ie, b);
|
|
6002
6002
|
} else if (y.mediaType === "audio" || y.kind === "audio") {
|
|
6003
|
-
const
|
|
6004
|
-
audioLevel:
|
|
6005
|
-
concealedSamples:
|
|
6006
|
-
concealmentEvents:
|
|
6007
|
-
totalAudioEnergy:
|
|
6008
|
-
totalSamplesDuration:
|
|
6009
|
-
totalSamplesReceived:
|
|
6010
|
-
fecPacketsDiscarded:
|
|
6011
|
-
fecPacketsReceived:
|
|
6012
|
-
insertedSamplesForDeceleration:
|
|
6013
|
-
removedSamplesForAcceleration:
|
|
6014
|
-
silentConcealedSamples:
|
|
6015
|
-
playoutId:
|
|
6003
|
+
const L = y, b = D({
|
|
6004
|
+
audioLevel: L.audioLevel,
|
|
6005
|
+
concealedSamples: L.concealedSamples,
|
|
6006
|
+
concealmentEvents: L.concealmentEvents,
|
|
6007
|
+
totalAudioEnergy: L.totalAudioEnergy,
|
|
6008
|
+
totalSamplesDuration: L.totalSamplesDuration,
|
|
6009
|
+
totalSamplesReceived: L.totalSamplesReceived,
|
|
6010
|
+
fecPacketsDiscarded: L.fecPacketsDiscarded || 0,
|
|
6011
|
+
fecPacketsReceived: L.fecPacketsReceived || 0,
|
|
6012
|
+
insertedSamplesForDeceleration: L.insertedSamplesForDeceleration || 0,
|
|
6013
|
+
removedSamplesForAcceleration: L.removedSamplesForAcceleration || 0,
|
|
6014
|
+
silentConcealedSamples: L.silentConcealedSamples || 0,
|
|
6015
|
+
playoutId: L.playoutId
|
|
6016
6016
|
}, Me);
|
|
6017
6017
|
b.score = ym({
|
|
6018
6018
|
concealmentEvents: (b.concealmentEvents || 0) - (((K = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : K.concealmentEvents) || 0),
|
|
@@ -6037,7 +6037,7 @@ class Pm extends ut {
|
|
|
6037
6037
|
}
|
|
6038
6038
|
}
|
|
6039
6039
|
if (d.producerStreamMap.forEach((I, y) => {
|
|
6040
|
-
var C, U, ie, Me,
|
|
6040
|
+
var C, U, ie, Me, L, b, $e, Cr, Rr, Fs, Xn, Zn, eo, to, so, ro, io, ao, no, oo, co, lo, uo;
|
|
6041
6041
|
if (I.outboundVideoRtpId.length > 0) {
|
|
6042
6042
|
const ue = [];
|
|
6043
6043
|
I.outboundVideoRtpId.forEach((ru) => {
|
|
@@ -6050,7 +6050,7 @@ class Pm extends ut {
|
|
|
6050
6050
|
jitter: ((C = se.remoteData) == null ? void 0 : C.jitter) || 0,
|
|
6051
6051
|
isScreenShare: this.screenShareProducers.has(y),
|
|
6052
6052
|
packetsSent: (se.packetsSent || 0) - (((U = this.videoProducerToStatsMap.get(y)) == null ? void 0 : U.packetsSent) || 0),
|
|
6053
|
-
packetsLost: (((ie = se.remoteData) == null ? void 0 : ie.packetsLost) || 0) - (((
|
|
6053
|
+
packetsLost: (((ie = se.remoteData) == null ? void 0 : ie.packetsLost) || 0) - (((L = (Me = this.videoProducerToStatsMap.get(y)) == null ? void 0 : Me.remoteData) == null ? void 0 : L.packetsLost) || 0),
|
|
6054
6054
|
framesEncoded: (se.framesEncoded || 0) - (((b = this.videoProducerToStatsMap.get(y)) == null ? void 0 : b.framesEncoded) || 0)
|
|
6055
6055
|
}), T.set(y, {
|
|
6056
6056
|
score: +(se.score * 10).toFixed(),
|
|
@@ -6331,7 +6331,7 @@ class Pm extends ut {
|
|
|
6331
6331
|
});
|
|
6332
6332
|
}
|
|
6333
6333
|
}
|
|
6334
|
-
class
|
|
6334
|
+
class Vv extends Pm {
|
|
6335
6335
|
}
|
|
6336
6336
|
class Cm extends Pm {
|
|
6337
6337
|
constructor() {
|
|
@@ -6498,7 +6498,7 @@ class Cm extends Pm {
|
|
|
6498
6498
|
outboundVideoRtpId: [],
|
|
6499
6499
|
outboundAudioRtpId: []
|
|
6500
6500
|
});
|
|
6501
|
-
const
|
|
6501
|
+
const L = {
|
|
6502
6502
|
bytesSent: y.bytesSent,
|
|
6503
6503
|
packetsSent: y.packetsSent,
|
|
6504
6504
|
nackCount: y.nackCount,
|
|
@@ -6532,13 +6532,13 @@ class Cm extends Pm {
|
|
|
6532
6532
|
retransmittedPacketsSent: b.retransmittedPacketsSent,
|
|
6533
6533
|
scalabilityMode: b.scalabilityMode,
|
|
6534
6534
|
powerEfficientEncoder: b.powerEfficientEncoder
|
|
6535
|
-
},
|
|
6535
|
+
}, L);
|
|
6536
6536
|
d.outboundVideoRtp.set(I.id, $e), d.producerStreamMap.get(C).outboundVideoRtpId.push(I.id), this.processOutboundProducerVideoStats(C, ie, $e);
|
|
6537
6537
|
} else if (y.mediaType === "audio" || y.kind === "audio") {
|
|
6538
6538
|
const b = y, $e = D({
|
|
6539
6539
|
retransmittedBytesSent: b.retransmittedBytesSent,
|
|
6540
6540
|
retransmittedPacketsSent: b.retransmittedPacketsSent
|
|
6541
|
-
},
|
|
6541
|
+
}, L);
|
|
6542
6542
|
d.outboundAudioRtp.set(I.id, $e), d.producerStreamMap.get(C).outboundAudioRtpId.push(I.id), this.processOutboundProducerAudioStats(C, ie, $e);
|
|
6543
6543
|
}
|
|
6544
6544
|
} else
|
|
@@ -6588,28 +6588,28 @@ class Cm extends Pm {
|
|
|
6588
6588
|
jitterBufferTargetDelay: y.jitterBufferTargetDelay || 0
|
|
6589
6589
|
};
|
|
6590
6590
|
if (y.mediaType === "video" || y.kind === "video") {
|
|
6591
|
-
const
|
|
6592
|
-
frameHeight:
|
|
6593
|
-
frameWidth:
|
|
6594
|
-
framesDecoded:
|
|
6595
|
-
framesDropped:
|
|
6596
|
-
framesPerSecond:
|
|
6597
|
-
framesReceived:
|
|
6598
|
-
keyFramesDecoded:
|
|
6599
|
-
firCount:
|
|
6600
|
-
decoderImplementation:
|
|
6601
|
-
pliCount:
|
|
6602
|
-
totalProcessingDelay:
|
|
6603
|
-
qpSum:
|
|
6604
|
-
totalAssemblyTime:
|
|
6605
|
-
totalDecodeTime:
|
|
6606
|
-
totalFreezesDuration:
|
|
6607
|
-
totalInterFrameDelay:
|
|
6608
|
-
totalPausesDuration:
|
|
6609
|
-
totalSquaredInterFrameDelay:
|
|
6610
|
-
freezeCount:
|
|
6611
|
-
pauseCount:
|
|
6612
|
-
powerEfficientDecoder:
|
|
6591
|
+
const L = y, b = D({
|
|
6592
|
+
frameHeight: L.frameHeight,
|
|
6593
|
+
frameWidth: L.frameWidth,
|
|
6594
|
+
framesDecoded: L.framesDecoded,
|
|
6595
|
+
framesDropped: L.framesDropped ? L.framesDropped : L.droppedFrames,
|
|
6596
|
+
framesPerSecond: L.framesPerSecond ? L.framesPerSecond : L.framerateMean,
|
|
6597
|
+
framesReceived: L.framesReceived,
|
|
6598
|
+
keyFramesDecoded: L.keyFramesDecoded,
|
|
6599
|
+
firCount: L.firCount,
|
|
6600
|
+
decoderImplementation: L.decoderImplementation,
|
|
6601
|
+
pliCount: L.pliCount,
|
|
6602
|
+
totalProcessingDelay: L.totalProcessingDelay,
|
|
6603
|
+
qpSum: L.qpSum || 0,
|
|
6604
|
+
totalAssemblyTime: L.totalAssemblyTime || 0,
|
|
6605
|
+
totalDecodeTime: L.totalDecodeTime || 0,
|
|
6606
|
+
totalFreezesDuration: L.totalFreezesDuration || 0,
|
|
6607
|
+
totalInterFrameDelay: L.totalInterFrameDelay || 0,
|
|
6608
|
+
totalPausesDuration: L.totalPausesDuration || 0,
|
|
6609
|
+
totalSquaredInterFrameDelay: L.totalSquaredInterFrameDelay || 0,
|
|
6610
|
+
freezeCount: L.freezeCount || 0,
|
|
6611
|
+
pauseCount: L.pauseCount || 0,
|
|
6612
|
+
powerEfficientDecoder: L.powerEfficientDecoder
|
|
6613
6613
|
}, Me);
|
|
6614
6614
|
b.score = Tm({
|
|
6615
6615
|
frameWidth: b.frameWidth || 0,
|
|
@@ -6633,19 +6633,19 @@ class Cm extends Pm {
|
|
|
6633
6633
|
bitrate: ((b.bytesReceived || 0) - (((F = this.videoConsumerToStatsMap.get(C)) == null ? void 0 : F.bytesReceived) || 0)) * 8 / 7
|
|
6634
6634
|
}), this.videoConsumerToStatsMap.set(C, b), d.inboundVideoRtp.set(I.id, b), d.consumerStreamMap.get(C).inboundVideoRtpId.push(I.id), this.processInboundConsumerVideoStats(C, ie, b);
|
|
6635
6635
|
} else if (y.mediaType === "audio" || y.kind === "audio") {
|
|
6636
|
-
const
|
|
6637
|
-
audioLevel:
|
|
6638
|
-
concealedSamples:
|
|
6639
|
-
concealmentEvents:
|
|
6640
|
-
totalAudioEnergy:
|
|
6641
|
-
totalSamplesDuration:
|
|
6642
|
-
totalSamplesReceived:
|
|
6643
|
-
fecPacketsDiscarded:
|
|
6644
|
-
fecPacketsReceived:
|
|
6645
|
-
insertedSamplesForDeceleration:
|
|
6646
|
-
removedSamplesForAcceleration:
|
|
6647
|
-
silentConcealedSamples:
|
|
6648
|
-
playoutId:
|
|
6636
|
+
const L = y, b = D({
|
|
6637
|
+
audioLevel: L.audioLevel,
|
|
6638
|
+
concealedSamples: L.concealedSamples,
|
|
6639
|
+
concealmentEvents: L.concealmentEvents,
|
|
6640
|
+
totalAudioEnergy: L.totalAudioEnergy,
|
|
6641
|
+
totalSamplesDuration: L.totalSamplesDuration,
|
|
6642
|
+
totalSamplesReceived: L.totalSamplesReceived,
|
|
6643
|
+
fecPacketsDiscarded: L.fecPacketsDiscarded || 0,
|
|
6644
|
+
fecPacketsReceived: L.fecPacketsReceived || 0,
|
|
6645
|
+
insertedSamplesForDeceleration: L.insertedSamplesForDeceleration || 0,
|
|
6646
|
+
removedSamplesForAcceleration: L.removedSamplesForAcceleration || 0,
|
|
6647
|
+
silentConcealedSamples: L.silentConcealedSamples || 0,
|
|
6648
|
+
playoutId: L.playoutId
|
|
6649
6649
|
}, Me);
|
|
6650
6650
|
b.score = ym({
|
|
6651
6651
|
concealmentEvents: (b.concealmentEvents || 0) - (((K = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : K.concealmentEvents) || 0),
|
|
@@ -6670,7 +6670,7 @@ class Cm extends Pm {
|
|
|
6670
6670
|
}
|
|
6671
6671
|
}
|
|
6672
6672
|
if (d.producerStreamMap.forEach((I, y) => {
|
|
6673
|
-
var C, U, ie, Me,
|
|
6673
|
+
var C, U, ie, Me, L, b, $e, Cr, Rr, Fs, Xn, Zn, eo, to, so, ro, io, ao, no, oo, co, lo, uo;
|
|
6674
6674
|
if (I.outboundVideoRtpId.length > 0) {
|
|
6675
6675
|
const ue = [];
|
|
6676
6676
|
I.outboundVideoRtpId.forEach((ru) => {
|
|
@@ -6683,7 +6683,7 @@ class Cm extends Pm {
|
|
|
6683
6683
|
jitter: ((C = se.remoteData) == null ? void 0 : C.jitter) || 0,
|
|
6684
6684
|
isScreenShare: this.screenShareProducers.has(y),
|
|
6685
6685
|
packetsSent: (se.packetsSent || 0) - (((U = this.videoProducerToStatsMap.get(y)) == null ? void 0 : U.packetsSent) || 0),
|
|
6686
|
-
packetsLost: (((ie = se.remoteData) == null ? void 0 : ie.packetsLost) || 0) - (((
|
|
6686
|
+
packetsLost: (((ie = se.remoteData) == null ? void 0 : ie.packetsLost) || 0) - (((L = (Me = this.videoProducerToStatsMap.get(y)) == null ? void 0 : Me.remoteData) == null ? void 0 : L.packetsLost) || 0),
|
|
6687
6687
|
framesEncoded: (se.framesEncoded || 0) - (((b = this.videoProducerToStatsMap.get(y)) == null ? void 0 : b.framesEncoded) || 0)
|
|
6688
6688
|
}), T.set(y, {
|
|
6689
6689
|
score: +(se.score * 10).toFixed(),
|
|
@@ -6840,7 +6840,7 @@ const Z = (s, t) => (e, r, i) => {
|
|
|
6840
6840
|
o.value instanceof Function && Object.defineProperty(e.prototype, n, cp(o, s, t));
|
|
6841
6841
|
}
|
|
6842
6842
|
};
|
|
6843
|
-
var
|
|
6843
|
+
var Q = globalThis && globalThis.__decorate || function(s, t, e, r) {
|
|
6844
6844
|
var i = arguments.length, n = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, o;
|
|
6845
6845
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
6846
6846
|
n = Reflect.decorate(s, t, e, r);
|
|
@@ -6849,7 +6849,7 @@ var Y = globalThis && globalThis.__decorate || function(s, t, e, r) {
|
|
|
6849
6849
|
(o = s[c]) && (n = (i < 3 ? o(n) : i > 3 ? o(t, e, n) : o(t, e)) || n);
|
|
6850
6850
|
return i > 3 && n && Object.defineProperty(t, e, n), n;
|
|
6851
6851
|
};
|
|
6852
|
-
const
|
|
6852
|
+
const X = console;
|
|
6853
6853
|
let J = class extends ut {
|
|
6854
6854
|
constructor(e = "https://api.testingv3.dyte.in", r = "Blink", i = bo.PROD, n, o, c, d) {
|
|
6855
6855
|
super();
|
|
@@ -6871,7 +6871,7 @@ let J = class extends ut {
|
|
|
6871
6871
|
h(this, "currentUserMediaStates", {});
|
|
6872
6872
|
switch (this.env = i, this.apiHostnames = d, this.logger = o, this.peerId = c, this.eventHandler = new _v({ logger: o, peerId: c, apiHostnames: d }), this.logger.debug("callStats::engineName: ", { engineName: r }), r) {
|
|
6873
6873
|
case "Blink":
|
|
6874
|
-
this.measurements = new
|
|
6874
|
+
this.measurements = new Vv();
|
|
6875
6875
|
break;
|
|
6876
6876
|
case "Gecko":
|
|
6877
6877
|
this.measurements = new Cm();
|
|
@@ -7284,158 +7284,158 @@ let J = class extends ut {
|
|
|
7284
7284
|
});
|
|
7285
7285
|
}
|
|
7286
7286
|
};
|
|
7287
|
-
|
|
7288
|
-
Z(TypeError, (s, t) =>
|
|
7287
|
+
Q([
|
|
7288
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7289
7289
|
], J.prototype, "registerIceServers", null);
|
|
7290
|
-
|
|
7291
|
-
Z(TypeError, (s, t) =>
|
|
7290
|
+
Q([
|
|
7291
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7292
7292
|
], J.prototype, "registerConsumer", null);
|
|
7293
|
-
|
|
7294
|
-
Z(TypeError, (s, t) =>
|
|
7293
|
+
Q([
|
|
7294
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7295
7295
|
], J.prototype, "registerProducer", null);
|
|
7296
|
-
|
|
7297
|
-
Z(TypeError, (s, t) =>
|
|
7296
|
+
Q([
|
|
7297
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7298
7298
|
], J.prototype, "sendConsumerSharedMediaStateEvent", null);
|
|
7299
|
-
|
|
7300
|
-
Z(TypeError, (s, t) =>
|
|
7299
|
+
Q([
|
|
7300
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7301
7301
|
], J.prototype, "registerProducingTransport", null);
|
|
7302
|
-
|
|
7303
|
-
Z(TypeError, (s, t) =>
|
|
7302
|
+
Q([
|
|
7303
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7304
7304
|
], J.prototype, "registerConsumingTransport", null);
|
|
7305
|
-
|
|
7306
|
-
Z(TypeError, (s, t) =>
|
|
7305
|
+
Q([
|
|
7306
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7307
7307
|
], J.prototype, "deRegisterConsumer", null);
|
|
7308
|
-
|
|
7309
|
-
Z(TypeError, (s, t) =>
|
|
7308
|
+
Q([
|
|
7309
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7310
7310
|
], J.prototype, "deRegisterProducer", null);
|
|
7311
|
-
|
|
7312
|
-
Z(TypeError, (s, t) =>
|
|
7311
|
+
Q([
|
|
7312
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7313
7313
|
], J.prototype, "disconnectConsumingTransport", null);
|
|
7314
|
-
|
|
7315
|
-
Z(TypeError, (s, t) =>
|
|
7314
|
+
Q([
|
|
7315
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7316
7316
|
], J.prototype, "disconnectProducingTransport", null);
|
|
7317
|
-
|
|
7318
|
-
Z(TypeError, (s, t) =>
|
|
7317
|
+
Q([
|
|
7318
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7319
7319
|
], J.prototype, "sendPreCallTestBeginEvent", null);
|
|
7320
|
-
|
|
7321
|
-
Z(TypeError, (s, t) =>
|
|
7320
|
+
Q([
|
|
7321
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7322
7322
|
], J.prototype, "sendScreenShareToggleEvent", null);
|
|
7323
|
-
|
|
7324
|
-
Z(TypeError, (s, t) =>
|
|
7323
|
+
Q([
|
|
7324
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7325
7325
|
], J.prototype, "sendScreenShareRequestedEvent", null);
|
|
7326
|
-
|
|
7327
|
-
Z(TypeError, (s, t) =>
|
|
7326
|
+
Q([
|
|
7327
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7328
7328
|
], J.prototype, "sendActiveSpeakerEvent", null);
|
|
7329
|
-
|
|
7330
|
-
Z(TypeError, (s, t) =>
|
|
7329
|
+
Q([
|
|
7330
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7331
7331
|
], J.prototype, "devices", null);
|
|
7332
|
-
|
|
7333
|
-
Z(TypeError, (s, t) =>
|
|
7332
|
+
Q([
|
|
7333
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7334
7334
|
], J.prototype, "selectedDevice", null);
|
|
7335
|
-
|
|
7336
|
-
Z(TypeError, (s, t) =>
|
|
7335
|
+
Q([
|
|
7336
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7337
7337
|
], J.prototype, "mediaPermission", null);
|
|
7338
|
-
|
|
7339
|
-
Z(TypeError, (s, t) =>
|
|
7338
|
+
Q([
|
|
7339
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7340
7340
|
], J.prototype, "mediaPlaybackFailed", null);
|
|
7341
|
-
|
|
7342
|
-
Z(TypeError, (s, t) =>
|
|
7341
|
+
Q([
|
|
7342
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7343
7343
|
], J.prototype, "mediaTrackMuted", null);
|
|
7344
|
-
|
|
7345
|
-
Z(TypeError, (s, t) =>
|
|
7344
|
+
Q([
|
|
7345
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7346
7346
|
], J.prototype, "tabChanged", null);
|
|
7347
|
-
|
|
7348
|
-
Z(TypeError, (s, t) =>
|
|
7347
|
+
Q([
|
|
7348
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7349
7349
|
], J.prototype, "browserBackgrounded", null);
|
|
7350
|
-
|
|
7351
|
-
Z(TypeError, (s, t) =>
|
|
7350
|
+
Q([
|
|
7351
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7352
7352
|
], J.prototype, "browserForegrounded", null);
|
|
7353
|
-
|
|
7354
|
-
Z(TypeError, (s, t) =>
|
|
7353
|
+
Q([
|
|
7354
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7355
7355
|
], J.prototype, "legacySwitch", null);
|
|
7356
|
-
|
|
7357
|
-
Z(TypeError, (s, t) =>
|
|
7356
|
+
Q([
|
|
7357
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7358
7358
|
], J.prototype, "getPreCallTestResults", null);
|
|
7359
|
-
|
|
7360
|
-
Z(TypeError, (s, t) =>
|
|
7359
|
+
Q([
|
|
7360
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7361
7361
|
], J.prototype, "sendCallJoinBeginEvent", null);
|
|
7362
|
-
|
|
7363
|
-
Z(TypeError, (s, t) =>
|
|
7362
|
+
Q([
|
|
7363
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7364
7364
|
], J.prototype, "sendNetworkQualityTestBeginEvent", null);
|
|
7365
|
-
|
|
7366
|
-
Z(TypeError, (s, t) =>
|
|
7365
|
+
Q([
|
|
7366
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7367
7367
|
], J.prototype, "sendWebSocketConnectedEvent", null);
|
|
7368
|
-
|
|
7369
|
-
Z(TypeError, (s, t) =>
|
|
7368
|
+
Q([
|
|
7369
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7370
7370
|
], J.prototype, "sendTransportConnectedEvent", null);
|
|
7371
|
-
|
|
7372
|
-
Z(TypeError, (s, t) =>
|
|
7371
|
+
Q([
|
|
7372
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7373
7373
|
], J.prototype, "sendAudioToggleEvent", null);
|
|
7374
|
-
|
|
7375
|
-
Z(TypeError, (s, t) =>
|
|
7374
|
+
Q([
|
|
7375
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7376
7376
|
], J.prototype, "sendVideoToggleEvent", null);
|
|
7377
|
-
|
|
7378
|
-
Z(TypeError, (s, t) =>
|
|
7377
|
+
Q([
|
|
7378
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7379
7379
|
], J.prototype, "sendParticipantRoleToggleEvent", null);
|
|
7380
|
-
|
|
7381
|
-
Z(TypeError, (s, t) =>
|
|
7380
|
+
Q([
|
|
7381
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7382
7382
|
], J.prototype, "startPingStats", null);
|
|
7383
|
-
|
|
7384
|
-
Z(TypeError, (s, t) =>
|
|
7383
|
+
Q([
|
|
7384
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7385
7385
|
], J.prototype, "stopPingStats", null);
|
|
7386
|
-
|
|
7387
|
-
Z(TypeError, (s, t) =>
|
|
7386
|
+
Q([
|
|
7387
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7388
7388
|
], J.prototype, "sendPingStatsEvent", null);
|
|
7389
|
-
|
|
7390
|
-
Z(TypeError, (s, t) =>
|
|
7389
|
+
Q([
|
|
7390
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7391
7391
|
], J.prototype, "sendIVSPlayerRebufferEvent", null);
|
|
7392
|
-
|
|
7393
|
-
Z(TypeError, (s, t) =>
|
|
7392
|
+
Q([
|
|
7393
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7394
7394
|
], J.prototype, "sendIVSPlayerAudioBlockEvent", null);
|
|
7395
|
-
|
|
7396
|
-
Z(TypeError, (s, t) =>
|
|
7395
|
+
Q([
|
|
7396
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7397
7397
|
], J.prototype, "sendIVSPlayerPlaybackBlockedEvent", null);
|
|
7398
|
-
|
|
7399
|
-
Z(TypeError, (s, t) =>
|
|
7398
|
+
Q([
|
|
7399
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7400
7400
|
], J.prototype, "sendIVSPlayerNetworkUnavailableEvent", null);
|
|
7401
|
-
|
|
7402
|
-
Z(TypeError, (s, t) =>
|
|
7401
|
+
Q([
|
|
7402
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7403
7403
|
], J.prototype, "sendIVSPlayerInitializedEvent", null);
|
|
7404
|
-
|
|
7405
|
-
Z(TypeError, (s, t) =>
|
|
7404
|
+
Q([
|
|
7405
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7406
7406
|
], J.prototype, "sendIVSPlayerWorkerErrorEvent", null);
|
|
7407
|
-
|
|
7408
|
-
Z(TypeError, (s, t) =>
|
|
7407
|
+
Q([
|
|
7408
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7409
7409
|
], J.prototype, "sendIVSPlayerErrorEvent", null);
|
|
7410
|
-
|
|
7411
|
-
Z(TypeError, (s, t) =>
|
|
7410
|
+
Q([
|
|
7411
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7412
7412
|
], J.prototype, "sendIVSPlayerRecoverableErrorEvent", null);
|
|
7413
|
-
|
|
7414
|
-
Z(TypeError, (s, t) =>
|
|
7413
|
+
Q([
|
|
7414
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7415
7415
|
], J.prototype, "sendIVSPlayerAnalyticsEvent", null);
|
|
7416
|
-
|
|
7417
|
-
Z(TypeError, (s, t) =>
|
|
7416
|
+
Q([
|
|
7417
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7418
7418
|
], J.prototype, "sendIVSPlayerPlaybackRateChangedEvent", null);
|
|
7419
|
-
|
|
7420
|
-
Z(TypeError, (s, t) =>
|
|
7419
|
+
Q([
|
|
7420
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7421
7421
|
], J.prototype, "sendIVSPlayerQualityChanged", null);
|
|
7422
|
-
|
|
7423
|
-
Z(TypeError, (s, t) =>
|
|
7422
|
+
Q([
|
|
7423
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7424
7424
|
], J.prototype, "sendPlayerLiveLatency", null);
|
|
7425
|
-
|
|
7426
|
-
Z(TypeError, (s, t) =>
|
|
7425
|
+
Q([
|
|
7426
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7427
7427
|
], J.prototype, "sendDisconnectEvent", null);
|
|
7428
|
-
|
|
7429
|
-
Z(TypeError, (s, t) =>
|
|
7428
|
+
Q([
|
|
7429
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7430
7430
|
], J.prototype, "sendReconnectEvent", null);
|
|
7431
|
-
|
|
7432
|
-
Z(TypeError, (s, t) =>
|
|
7431
|
+
Q([
|
|
7432
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7433
7433
|
], J.prototype, "expectedVideoResolution", null);
|
|
7434
|
-
|
|
7435
|
-
Z(TypeError, (s, t) =>
|
|
7434
|
+
Q([
|
|
7435
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7436
7436
|
], J.prototype, "expectedScreenshareResolution", null);
|
|
7437
|
-
J =
|
|
7438
|
-
Uv(TypeError, (s, t) =>
|
|
7437
|
+
J = Q([
|
|
7438
|
+
Uv(TypeError, (s, t) => X.error(t, s))
|
|
7439
7439
|
], J);
|
|
7440
7440
|
const $v = J;
|
|
7441
7441
|
class Rm extends ut {
|
|
@@ -7906,7 +7906,7 @@ function Sa(s, t) {
|
|
|
7906
7906
|
return Ry(e) ? e : void 0;
|
|
7907
7907
|
}
|
|
7908
7908
|
var by = Sa(Cs, "Map");
|
|
7909
|
-
const
|
|
7909
|
+
const Vo = by;
|
|
7910
7910
|
var ky = Sa(Object, "create");
|
|
7911
7911
|
const xo = ky;
|
|
7912
7912
|
function Iy() {
|
|
@@ -7925,10 +7925,10 @@ function Ny(s) {
|
|
|
7925
7925
|
}
|
|
7926
7926
|
return Oy.call(t, s) ? t[s] : void 0;
|
|
7927
7927
|
}
|
|
7928
|
-
var
|
|
7928
|
+
var Ly = Object.prototype, Vy = Ly.hasOwnProperty;
|
|
7929
7929
|
function xy(s) {
|
|
7930
7930
|
var t = this.__data__;
|
|
7931
|
-
return xo ? t[s] !== void 0 :
|
|
7931
|
+
return xo ? t[s] !== void 0 : Vy.call(t, s);
|
|
7932
7932
|
}
|
|
7933
7933
|
var Uy = "__lodash_hash_undefined__";
|
|
7934
7934
|
function $y(s, t) {
|
|
@@ -7950,7 +7950,7 @@ ha.prototype.set = $y;
|
|
|
7950
7950
|
function Fy() {
|
|
7951
7951
|
this.size = 0, this.__data__ = {
|
|
7952
7952
|
hash: new ha(),
|
|
7953
|
-
map: new (
|
|
7953
|
+
map: new (Vo || Tr)(),
|
|
7954
7954
|
string: new ha()
|
|
7955
7955
|
};
|
|
7956
7956
|
}
|
|
@@ -7993,7 +7993,7 @@ function Jy(s, t) {
|
|
|
7993
7993
|
var e = this.__data__;
|
|
7994
7994
|
if (e instanceof Tr) {
|
|
7995
7995
|
var r = e.__data__;
|
|
7996
|
-
if (!
|
|
7996
|
+
if (!Vo || r.length < Wy - 1)
|
|
7997
7997
|
return r.push([s, t]), this.size = ++e.size, this;
|
|
7998
7998
|
e = this.__data__ = new va(r);
|
|
7999
7999
|
}
|
|
@@ -8080,7 +8080,7 @@ function Dm(s) {
|
|
|
8080
8080
|
var uT = "[object Arguments]", hT = "[object Array]", pT = "[object Boolean]", gT = "[object Date]", mT = "[object Error]", fT = "[object Function]", ST = "[object Map]", vT = "[object Number]", yT = "[object Object]", TT = "[object RegExp]", ET = "[object Set]", _T = "[object String]", PT = "[object WeakMap]", CT = "[object ArrayBuffer]", RT = "[object DataView]", wT = "[object Float32Array]", bT = "[object Float64Array]", kT = "[object Int8Array]", IT = "[object Int16Array]", AT = "[object Int32Array]", MT = "[object Uint8Array]", DT = "[object Uint8ClampedArray]", OT = "[object Uint16Array]", NT = "[object Uint32Array]", ye = {};
|
|
8081
8081
|
ye[wT] = ye[bT] = ye[kT] = ye[IT] = ye[AT] = ye[MT] = ye[DT] = ye[OT] = ye[NT] = true;
|
|
8082
8082
|
ye[uT] = ye[hT] = ye[CT] = ye[pT] = ye[RT] = ye[gT] = ye[mT] = ye[fT] = ye[ST] = ye[vT] = ye[yT] = ye[TT] = ye[ET] = ye[_T] = ye[PT] = false;
|
|
8083
|
-
function
|
|
8083
|
+
function LT(s) {
|
|
8084
8084
|
return $s(s) && Dm(s.length) && !!ye[ma(s)];
|
|
8085
8085
|
}
|
|
8086
8086
|
function _h(s) {
|
|
@@ -8088,7 +8088,7 @@ function _h(s) {
|
|
|
8088
8088
|
return s(t);
|
|
8089
8089
|
};
|
|
8090
8090
|
}
|
|
8091
|
-
var Om = typeof exports == "object" && exports && !exports.nodeType && exports, ko = Om && typeof module == "object" && module && !module.nodeType && module,
|
|
8091
|
+
var Om = typeof exports == "object" && exports && !exports.nodeType && exports, ko = Om && typeof module == "object" && module && !module.nodeType && module, VT = ko && ko.exports === Om, ou = VT && wm.process, xT = function() {
|
|
8092
8092
|
try {
|
|
8093
8093
|
var s = ko && ko.require && ko.require("util").types;
|
|
8094
8094
|
return s || ou && ou.binding && ou.binding("util");
|
|
@@ -8096,7 +8096,7 @@ var Om = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
8096
8096
|
}
|
|
8097
8097
|
}();
|
|
8098
8098
|
const qn = xT;
|
|
8099
|
-
var gp = qn && qn.isTypedArray, UT = gp ? _h(gp) :
|
|
8099
|
+
var gp = qn && qn.isTypedArray, UT = gp ? _h(gp) : LT;
|
|
8100
8100
|
const ql = UT;
|
|
8101
8101
|
var $T = Object.prototype, FT = $T.hasOwnProperty;
|
|
8102
8102
|
function Nm(s, t) {
|
|
@@ -8110,15 +8110,15 @@ function jl(s) {
|
|
|
8110
8110
|
var t = s && s.constructor, e = typeof t == "function" && t.prototype || HT;
|
|
8111
8111
|
return s === e;
|
|
8112
8112
|
}
|
|
8113
|
-
function
|
|
8113
|
+
function Lm(s, t) {
|
|
8114
8114
|
return function(e) {
|
|
8115
8115
|
return s(t(e));
|
|
8116
8116
|
};
|
|
8117
8117
|
}
|
|
8118
|
-
var BT =
|
|
8118
|
+
var BT = Lm(Object.keys, Object);
|
|
8119
8119
|
const qT = BT;
|
|
8120
8120
|
var jT = Object.prototype, GT = jT.hasOwnProperty;
|
|
8121
|
-
function
|
|
8121
|
+
function Vm(s) {
|
|
8122
8122
|
if (!jl(s))
|
|
8123
8123
|
return qT(s);
|
|
8124
8124
|
var t = [];
|
|
@@ -8130,7 +8130,7 @@ function Gc(s) {
|
|
|
8130
8130
|
return s != null && Dm(s.length) && !Th(s);
|
|
8131
8131
|
}
|
|
8132
8132
|
function Ph(s) {
|
|
8133
|
-
return Gc(s) ? Nm(s) :
|
|
8133
|
+
return Gc(s) ? Nm(s) : Vm(s);
|
|
8134
8134
|
}
|
|
8135
8135
|
function WT(s, t) {
|
|
8136
8136
|
return s && jc(t, Ph(t), s);
|
|
@@ -8194,7 +8194,7 @@ function Hm(s, t) {
|
|
|
8194
8194
|
s[i + e] = t[e];
|
|
8195
8195
|
return s;
|
|
8196
8196
|
}
|
|
8197
|
-
var iE =
|
|
8197
|
+
var iE = Lm(Object.getPrototypeOf, Object);
|
|
8198
8198
|
const Rh = iE;
|
|
8199
8199
|
var aE = Object.getOwnPropertySymbols, nE = aE ? function(s) {
|
|
8200
8200
|
for (var t = []; s; )
|
|
@@ -8223,8 +8223,8 @@ var uE = Sa(Cs, "Set");
|
|
|
8223
8223
|
const Cu = uE;
|
|
8224
8224
|
var hE = Sa(Cs, "WeakMap");
|
|
8225
8225
|
const Ru = hE;
|
|
8226
|
-
var yp = "[object Map]", pE = "[object Object]", Tp = "[object Promise]", Ep = "[object Set]", _p = "[object WeakMap]", Pp = "[object DataView]", gE = fa(_u), mE = fa(
|
|
8227
|
-
(_u && oi(new _u(new ArrayBuffer(1))) != Pp ||
|
|
8226
|
+
var yp = "[object Map]", pE = "[object Object]", Tp = "[object Promise]", Ep = "[object Set]", _p = "[object WeakMap]", Pp = "[object DataView]", gE = fa(_u), mE = fa(Vo), fE = fa(Pu), SE = fa(Cu), vE = fa(Ru), oi = ma;
|
|
8227
|
+
(_u && oi(new _u(new ArrayBuffer(1))) != Pp || Vo && oi(new Vo()) != yp || Pu && oi(Pu.resolve()) != Tp || Cu && oi(new Cu()) != Ep || Ru && oi(new Ru()) != _p) && (oi = function(s) {
|
|
8228
8228
|
var t = ma(s), e = t == pE ? s.constructor : void 0, r = e ? fa(e) : "";
|
|
8229
8229
|
if (r)
|
|
8230
8230
|
switch (r) {
|
|
@@ -8270,16 +8270,16 @@ function jm(s, t) {
|
|
|
8270
8270
|
var e = t ? wh(s.buffer) : s.buffer;
|
|
8271
8271
|
return new s.constructor(e, s.byteOffset, s.length);
|
|
8272
8272
|
}
|
|
8273
|
-
var bE = "[object Boolean]", kE = "[object Date]", IE = "[object Map]", AE = "[object Number]", ME = "[object RegExp]", DE = "[object Set]", OE = "[object String]", NE = "[object Symbol]",
|
|
8273
|
+
var bE = "[object Boolean]", kE = "[object Date]", IE = "[object Map]", AE = "[object Number]", ME = "[object RegExp]", DE = "[object Set]", OE = "[object String]", NE = "[object Symbol]", LE = "[object ArrayBuffer]", VE = "[object DataView]", xE = "[object Float32Array]", UE = "[object Float64Array]", $E = "[object Int8Array]", FE = "[object Int16Array]", HE = "[object Int32Array]", BE = "[object Uint8Array]", qE = "[object Uint8ClampedArray]", jE = "[object Uint16Array]", GE = "[object Uint32Array]";
|
|
8274
8274
|
function WE(s, t, e) {
|
|
8275
8275
|
var r = s.constructor;
|
|
8276
8276
|
switch (t) {
|
|
8277
|
-
case
|
|
8277
|
+
case LE:
|
|
8278
8278
|
return wh(s);
|
|
8279
8279
|
case bE:
|
|
8280
8280
|
case kE:
|
|
8281
8281
|
return new r(+s);
|
|
8282
|
-
case
|
|
8282
|
+
case VE:
|
|
8283
8283
|
return PE(s, e);
|
|
8284
8284
|
case xE:
|
|
8285
8285
|
case UE:
|
|
@@ -8384,12 +8384,12 @@ function D_(s) {
|
|
|
8384
8384
|
var O_ = Object.defineProperty, N_ = (s, t) => {
|
|
8385
8385
|
for (var e in t)
|
|
8386
8386
|
O_(s, e, { get: t[e], enumerable: true });
|
|
8387
|
-
},
|
|
8388
|
-
N_(
|
|
8389
|
-
permissions: () =>
|
|
8387
|
+
}, L_ = {};
|
|
8388
|
+
N_(L_, {
|
|
8389
|
+
permissions: () => V_,
|
|
8390
8390
|
theme: () => x_
|
|
8391
8391
|
});
|
|
8392
|
-
var Mt = /* @__PURE__ */ ((s) => (s.GroupCall = "GROUP_CALL", s.Webinar = "WEBINAR", s.AudioRoom = "AUDIO_ROOM", s.Livestream = "LIVESTREAM", s.Chat = "CHAT", s))(Mt || {}), j = /* @__PURE__ */ ((s) => (s.Allowed = "ALLOWED", s.NotAllowed = "NOT_ALLOWED", s.CanRequest = "CAN_REQUEST", s))(j || {}),
|
|
8392
|
+
var Mt = /* @__PURE__ */ ((s) => (s.GroupCall = "GROUP_CALL", s.Webinar = "WEBINAR", s.AudioRoom = "AUDIO_ROOM", s.Livestream = "LIVESTREAM", s.Chat = "CHAT", s))(Mt || {}), j = /* @__PURE__ */ ((s) => (s.Allowed = "ALLOWED", s.NotAllowed = "NOT_ALLOWED", s.CanRequest = "CAN_REQUEST", s))(j || {}), V_ = {
|
|
8393
8393
|
view_type: "GROUP_CALL",
|
|
8394
8394
|
accept_waiting_requests: false,
|
|
8395
8395
|
accept_present_requests: false,
|
|
@@ -9253,7 +9253,7 @@ function NP(s) {
|
|
|
9253
9253
|
e[++t] = r;
|
|
9254
9254
|
}), e;
|
|
9255
9255
|
}
|
|
9256
|
-
var
|
|
9256
|
+
var LP = 1, VP = 2, xP = "[object Boolean]", UP = "[object Date]", $P = "[object Error]", FP = "[object Map]", HP = "[object Number]", BP = "[object RegExp]", qP = "[object Set]", jP = "[object String]", GP = "[object Symbol]", WP = "[object ArrayBuffer]", JP = "[object DataView]", Op = ti ? ti.prototype : void 0, cu = Op ? Op.valueOf : void 0;
|
|
9257
9257
|
function KP(s, t, e, r, i, n, o) {
|
|
9258
9258
|
switch (e) {
|
|
9259
9259
|
case JP:
|
|
@@ -9274,13 +9274,13 @@ function KP(s, t, e, r, i, n, o) {
|
|
|
9274
9274
|
case FP:
|
|
9275
9275
|
var c = OP;
|
|
9276
9276
|
case qP:
|
|
9277
|
-
var d = r &
|
|
9277
|
+
var d = r & LP;
|
|
9278
9278
|
if (c || (c = NP), s.size != t.size && !d)
|
|
9279
9279
|
return false;
|
|
9280
9280
|
var l = o.get(s);
|
|
9281
9281
|
if (l)
|
|
9282
9282
|
return l == t;
|
|
9283
|
-
r |=
|
|
9283
|
+
r |= VP, o.set(s, t);
|
|
9284
9284
|
var p = rf(c(s), c(t), r, i, n, o);
|
|
9285
9285
|
return o.delete(s), p;
|
|
9286
9286
|
case GP:
|
|
@@ -9321,9 +9321,9 @@ function XP(s, t, e, r, i, n) {
|
|
|
9321
9321
|
}
|
|
9322
9322
|
return n.delete(s), n.delete(t), P;
|
|
9323
9323
|
}
|
|
9324
|
-
var ZP = 1, Np = "[object Arguments]",
|
|
9324
|
+
var ZP = 1, Np = "[object Arguments]", Lp = "[object Array]", td = "[object Object]", eC = Object.prototype, Vp = eC.hasOwnProperty;
|
|
9325
9325
|
function tC(s, t, e, r, i, n) {
|
|
9326
|
-
var o = si(s), c = si(t), d = o ?
|
|
9326
|
+
var o = si(s), c = si(t), d = o ? Lp : jn(s), l = c ? Lp : jn(t);
|
|
9327
9327
|
d = d == Np ? td : d, l = l == Np ? td : l;
|
|
9328
9328
|
var p = d == td, f = l == td, S = d == l;
|
|
9329
9329
|
if (S && Bn(s)) {
|
|
@@ -9334,7 +9334,7 @@ function tC(s, t, e, r, i, n) {
|
|
|
9334
9334
|
if (S && !p)
|
|
9335
9335
|
return n || (n = new Us()), o || ql(s) ? rf(s, t, e, r, i, n) : KP(s, t, d, e, r, i, n);
|
|
9336
9336
|
if (!(e & ZP)) {
|
|
9337
|
-
var T = p &&
|
|
9337
|
+
var T = p && Vp.call(s, "__wrapped__"), _ = f && Vp.call(t, "__wrapped__");
|
|
9338
9338
|
if (T || _) {
|
|
9339
9339
|
var P = T ? s.value() : s, w = _ ? t.value() : t;
|
|
9340
9340
|
return n || (n = new Us()), i(P, w, e, r, n);
|
|
@@ -9455,7 +9455,7 @@ function fC(s) {
|
|
|
9455
9455
|
if (t == hC || t == pC)
|
|
9456
9456
|
return !s.size;
|
|
9457
9457
|
if (jl(s))
|
|
9458
|
-
return !
|
|
9458
|
+
return !Vm(s).length;
|
|
9459
9459
|
for (var e in s)
|
|
9460
9460
|
if (mC.call(s, e))
|
|
9461
9461
|
return false;
|
|
@@ -9469,7 +9469,7 @@ var vC = yP(function(s, t, e) {
|
|
|
9469
9469
|
});
|
|
9470
9470
|
const br = vC;
|
|
9471
9471
|
var Iu = /* @__PURE__ */ ((s) => (s.PARTICIPANT = "PARTICIPANT", s.PEER = "PEER", s.CLIENT = "CLIENT", s))(Iu || {});
|
|
9472
|
-
const
|
|
9472
|
+
const Y = {
|
|
9473
9473
|
PROPAGATE_KICK_ALL: "propagate_kick_across_rooms",
|
|
9474
9474
|
REFRESH_ID_ON_DISCONNECTION: "refresh_id_on_disconnection",
|
|
9475
9475
|
SIMULCAST: "simulcast",
|
|
@@ -9535,7 +9535,8 @@ const X = {
|
|
|
9535
9535
|
PRECREATE_PRODUCERS: "precreate_producers",
|
|
9536
9536
|
DISABLE_OPUS_DTX_CF: "disable_opus_dtx_cf",
|
|
9537
9537
|
ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS: "enable_audio_activity_debug_logs",
|
|
9538
|
-
NEW_SYNC_CONSUMERS: "new_sync_consumers"
|
|
9538
|
+
NEW_SYNC_CONSUMERS: "new_sync_consumers",
|
|
9539
|
+
DISABLE_LAYER_SWITCH: "disable_layer_switch"
|
|
9539
9540
|
};
|
|
9540
9541
|
function gd(s) {
|
|
9541
9542
|
const t = {};
|
|
@@ -9548,8 +9549,8 @@ function yC(s) {
|
|
|
9548
9549
|
}
|
|
9549
9550
|
function TC(s, t) {
|
|
9550
9551
|
var e;
|
|
9551
|
-
if (s != null && s.getValue("flagsmith").hasFeature(
|
|
9552
|
-
let r = ((e = s.getValue("flagsmith").getValue(
|
|
9552
|
+
if (s != null && s.getValue("flagsmith").hasFeature(Y.LOG_LEVEL)) {
|
|
9553
|
+
let r = ((e = s.getValue("flagsmith").getValue(Y.LOG_LEVEL)) == null ? void 0 : e.toString()) || "all";
|
|
9553
9554
|
if (r = r.toLowerCase().trim(), r === "off")
|
|
9554
9555
|
return false;
|
|
9555
9556
|
if (r !== "all") {
|
|
@@ -9717,7 +9718,7 @@ const CC = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d=
|
|
|
9717
9718
|
return n.value = function(...d) {
|
|
9718
9719
|
var S;
|
|
9719
9720
|
const l = this == null ? void 0 : this.telemetry;
|
|
9720
|
-
if (!l || !l.initialized || navigator.isReactNative || !l.tracingEnabled || (S = mr.getContext(l.meetingMetadata.peerId)) != null && S.getValue("flagsmith").hasFeature(
|
|
9721
|
+
if (!l || !l.initialized || navigator.isReactNative || !l.tracingEnabled || (S = mr.getContext(l.meetingMetadata.peerId)) != null && S.getValue("flagsmith").hasFeature(Y.SKIP_OTEL_TRACES))
|
|
9721
9722
|
return o.apply(this, d);
|
|
9722
9723
|
l.addLogInCurrentSpan("info", t, e);
|
|
9723
9724
|
const p = performance.now(), f = o.apply(this, d);
|
|
@@ -10627,7 +10628,7 @@ class NC extends MessageType {
|
|
|
10627
10628
|
}
|
|
10628
10629
|
}
|
|
10629
10630
|
const df = new NC();
|
|
10630
|
-
class
|
|
10631
|
+
class LC extends MessageType {
|
|
10631
10632
|
constructor() {
|
|
10632
10633
|
super("media.HeaderExtension", [
|
|
10633
10634
|
{
|
|
@@ -10646,7 +10647,7 @@ class VC extends MessageType {
|
|
|
10646
10647
|
]);
|
|
10647
10648
|
}
|
|
10648
10649
|
}
|
|
10649
|
-
const
|
|
10650
|
+
const VC = new LC();
|
|
10650
10651
|
class xC extends MessageType {
|
|
10651
10652
|
constructor() {
|
|
10652
10653
|
super("media.Fingerprint", [
|
|
@@ -11027,7 +11028,7 @@ class nR extends MessageType {
|
|
|
11027
11028
|
constructor() {
|
|
11028
11029
|
super("media.RtpCapability", [
|
|
11029
11030
|
{ no: 1, name: "codecs", kind: "message", repeat: 1, T: () => df },
|
|
11030
|
-
{ no: 2, name: "header_extensions", kind: "message", repeat: 1, T: () =>
|
|
11031
|
+
{ no: 2, name: "header_extensions", kind: "message", repeat: 1, T: () => VC }
|
|
11031
11032
|
]);
|
|
11032
11033
|
}
|
|
11033
11034
|
}
|
|
@@ -11414,7 +11415,7 @@ class NR extends MessageType {
|
|
|
11414
11415
|
}
|
|
11415
11416
|
}
|
|
11416
11417
|
new NR();
|
|
11417
|
-
class
|
|
11418
|
+
class LR extends MessageType {
|
|
11418
11419
|
constructor() {
|
|
11419
11420
|
super("media.edge.ProducerCloseRequest", [
|
|
11420
11421
|
{
|
|
@@ -11434,7 +11435,7 @@ class VR extends MessageType {
|
|
|
11434
11435
|
]);
|
|
11435
11436
|
}
|
|
11436
11437
|
}
|
|
11437
|
-
const
|
|
11438
|
+
const VR = new LR();
|
|
11438
11439
|
class xR extends MessageType {
|
|
11439
11440
|
constructor() {
|
|
11440
11441
|
super("media.edge.ConsumerCloseRequest", [
|
|
@@ -11996,7 +11997,7 @@ class Nw extends MessageType {
|
|
|
11996
11997
|
}
|
|
11997
11998
|
}
|
|
11998
11999
|
new Nw();
|
|
11999
|
-
class
|
|
12000
|
+
class Lw extends MessageType {
|
|
12000
12001
|
constructor() {
|
|
12001
12002
|
super("media.edge.PeerProducerCreateBroadcastResponse", [
|
|
12002
12003
|
{
|
|
@@ -12009,7 +12010,7 @@ class Vw extends MessageType {
|
|
|
12009
12010
|
]);
|
|
12010
12011
|
}
|
|
12011
12012
|
}
|
|
12012
|
-
const
|
|
12013
|
+
const Vw = new Lw();
|
|
12013
12014
|
class xw extends MessageType {
|
|
12014
12015
|
constructor() {
|
|
12015
12016
|
super("media.edge.PeerProducerToggleBroadcastResponse", [
|
|
@@ -12269,10 +12270,10 @@ var Nu;
|
|
|
12269
12270
|
(function(s) {
|
|
12270
12271
|
s[s.NONE = 0] = "NONE", s[s.RECORDER = 1] = "RECORDER", s[s.LIVESTREAMER = 2] = "LIVESTREAMER";
|
|
12271
12272
|
})(Nu || (Nu = {}));
|
|
12272
|
-
var
|
|
12273
|
+
var Lu;
|
|
12273
12274
|
(function(s) {
|
|
12274
12275
|
s[s.PEERS = 0] = "PEERS", s[s.ROOMS = 1] = "ROOMS";
|
|
12275
|
-
})(
|
|
12276
|
+
})(Lu || (Lu = {}));
|
|
12276
12277
|
var Nd;
|
|
12277
12278
|
(function(s) {
|
|
12278
12279
|
s[s.HIVE = 0] = "HIVE", s[s.CHAT = 1] = "CHAT", s[s.PING = 2] = "PING";
|
|
@@ -12775,7 +12776,7 @@ class Nb extends MessageType {
|
|
|
12775
12776
|
}
|
|
12776
12777
|
}
|
|
12777
12778
|
new Nb();
|
|
12778
|
-
class
|
|
12779
|
+
class Lb extends MessageType {
|
|
12779
12780
|
constructor() {
|
|
12780
12781
|
super("socket.room.DisableRoomPayload", [
|
|
12781
12782
|
{
|
|
@@ -12788,11 +12789,11 @@ class Vb extends MessageType {
|
|
|
12788
12789
|
]);
|
|
12789
12790
|
}
|
|
12790
12791
|
}
|
|
12791
|
-
const
|
|
12792
|
+
const Vb = new Lb();
|
|
12792
12793
|
class xb extends MessageType {
|
|
12793
12794
|
constructor() {
|
|
12794
12795
|
super("socket.room.DisableConnectedRoomsRequest", [
|
|
12795
|
-
{ no: 1, name: "payloads", kind: "message", repeat: 1, T: () =>
|
|
12796
|
+
{ no: 1, name: "payloads", kind: "message", repeat: 1, T: () => Vb }
|
|
12796
12797
|
]);
|
|
12797
12798
|
}
|
|
12798
12799
|
}
|
|
@@ -13012,7 +13013,7 @@ class sk extends MessageType {
|
|
|
13012
13013
|
repeat: 2,
|
|
13013
13014
|
T: 9
|
|
13014
13015
|
},
|
|
13015
|
-
{ no: 5, name: "broadcast_type", kind: "enum", opt: true, T: () => ["socket.room.BroadcastType",
|
|
13016
|
+
{ no: 5, name: "broadcast_type", kind: "enum", opt: true, T: () => ["socket.room.BroadcastType", Lu, "BROADCAST_TYPE_"] }
|
|
13016
13017
|
]);
|
|
13017
13018
|
}
|
|
13018
13019
|
}
|
|
@@ -13127,10 +13128,10 @@ class lk extends MessageType {
|
|
|
13127
13128
|
}
|
|
13128
13129
|
}
|
|
13129
13130
|
const eg = new lk();
|
|
13130
|
-
var
|
|
13131
|
+
var Vu;
|
|
13131
13132
|
(function(s) {
|
|
13132
13133
|
s[s.NONE = 0] = "NONE", s[s.SKIP = 1] = "SKIP", s[s.ON_PRIVILEGED_USER_ENTRY = 2] = "ON_PRIVILEGED_USER_ENTRY", s[s.SKIP_ON_ACCEPT = 3] = "SKIP_ON_ACCEPT";
|
|
13133
|
-
})(
|
|
13134
|
+
})(Vu || (Vu = {}));
|
|
13134
13135
|
var Qr;
|
|
13135
13136
|
(function(s) {
|
|
13136
13137
|
s[s.NONE = 0] = "NONE", s[s.ALLOWED = 1] = "ALLOWED", s[s.NOT_ALLOWED = 2] = "NOT_ALLOWED", s[s.CAN_REQUEST = 3] = "CAN_REQUEST";
|
|
@@ -13393,7 +13394,7 @@ class wk extends MessageType {
|
|
|
13393
13394
|
opt: true,
|
|
13394
13395
|
T: 8
|
|
13395
13396
|
},
|
|
13396
|
-
{ no: 16, name: "waiting_room_type", kind: "enum", opt: true, T: () => ["socket.preset.WaitingRoomType",
|
|
13397
|
+
{ no: 16, name: "waiting_room_type", kind: "enum", opt: true, T: () => ["socket.preset.WaitingRoomType", Vu, "WAITING_ROOM_TYPE_"] },
|
|
13397
13398
|
{
|
|
13398
13399
|
no: 17,
|
|
13399
13400
|
name: "is_recorder",
|
|
@@ -13497,15 +13498,15 @@ class Nk extends MessageType {
|
|
|
13497
13498
|
]);
|
|
13498
13499
|
}
|
|
13499
13500
|
}
|
|
13500
|
-
const
|
|
13501
|
-
class
|
|
13501
|
+
const Lk = new Nk();
|
|
13502
|
+
class Vk extends MessageType {
|
|
13502
13503
|
constructor() {
|
|
13503
13504
|
super("socket.preset.UpdatePeersPresetResponse", [
|
|
13504
13505
|
{ no: 1, name: "update_peers_presets", kind: "message", repeat: 1, T: () => Tf }
|
|
13505
13506
|
]);
|
|
13506
13507
|
}
|
|
13507
13508
|
}
|
|
13508
|
-
const tg = new
|
|
13509
|
+
const tg = new Vk();
|
|
13509
13510
|
class xk extends MessageType {
|
|
13510
13511
|
constructor() {
|
|
13511
13512
|
super("socket.preset.PeerUserIDMap", [
|
|
@@ -14254,7 +14255,7 @@ class OI extends MessageType {
|
|
|
14254
14255
|
}
|
|
14255
14256
|
}
|
|
14256
14257
|
const NI = new OI();
|
|
14257
|
-
class
|
|
14258
|
+
class LI extends MessageType {
|
|
14258
14259
|
constructor() {
|
|
14259
14260
|
super("socket.plugin.RemovePluginRequest", [
|
|
14260
14261
|
{
|
|
@@ -14272,7 +14273,7 @@ class VI extends MessageType {
|
|
|
14272
14273
|
]);
|
|
14273
14274
|
}
|
|
14274
14275
|
}
|
|
14275
|
-
const
|
|
14276
|
+
const VI = new LI();
|
|
14276
14277
|
class xI extends MessageType {
|
|
14277
14278
|
constructor() {
|
|
14278
14279
|
super("socket.plugin.EnablePluginForRoomRequest", [
|
|
@@ -15007,7 +15008,7 @@ class NA extends MessageType {
|
|
|
15007
15008
|
}
|
|
15008
15009
|
}
|
|
15009
15010
|
new NA();
|
|
15010
|
-
class
|
|
15011
|
+
class LA extends MessageType {
|
|
15011
15012
|
constructor() {
|
|
15012
15013
|
super("common.BaseHubMessage", [
|
|
15013
15014
|
{
|
|
@@ -15084,15 +15085,15 @@ class VA extends MessageType {
|
|
|
15084
15085
|
]);
|
|
15085
15086
|
}
|
|
15086
15087
|
}
|
|
15087
|
-
const Uu = new
|
|
15088
|
-
class
|
|
15088
|
+
const Uu = new LA();
|
|
15089
|
+
class VA extends MessageType {
|
|
15089
15090
|
constructor() {
|
|
15090
15091
|
super("common.BulkedHubMessage", [
|
|
15091
15092
|
{ no: 1, name: "messages", kind: "message", repeat: 1, T: () => Uu }
|
|
15092
15093
|
]);
|
|
15093
15094
|
}
|
|
15094
15095
|
}
|
|
15095
|
-
new
|
|
15096
|
+
new VA();
|
|
15096
15097
|
class xA extends MessageType {
|
|
15097
15098
|
constructor() {
|
|
15098
15099
|
super("common.CFWorkersResponse", [
|
|
@@ -15656,11 +15657,11 @@ function Rf(s) {
|
|
|
15656
15657
|
t[r] = s[e];
|
|
15657
15658
|
}), t;
|
|
15658
15659
|
}
|
|
15659
|
-
function
|
|
15660
|
+
function Ld(s, t = {}) {
|
|
15660
15661
|
return s == null ? {} : (Object.getOwnPropertyNames(s).forEach((e) => {
|
|
15661
15662
|
if (typeof s[e] != "function") {
|
|
15662
15663
|
if (typeof s[e] == "object") {
|
|
15663
|
-
|
|
15664
|
+
Ld(s[e], t[e] = {});
|
|
15664
15665
|
return;
|
|
15665
15666
|
}
|
|
15666
15667
|
t[e] = s[e];
|
|
@@ -15895,7 +15896,7 @@ class jt extends aM {
|
|
|
15895
15896
|
var n, o, c, d, l, p, f;
|
|
15896
15897
|
if (this.pluginInformation)
|
|
15897
15898
|
return this.pluginInformation;
|
|
15898
|
-
const { plugins: e } = (yield this.requests.get("/v2/plugins/user")).data.data, r = ((o = (n = this.context.getValue("flagsmith").getValue(
|
|
15899
|
+
const { plugins: e } = (yield this.requests.get("/v2/plugins/user")).data.data, r = ((o = (n = this.context.getValue("flagsmith").getValue(Y.V1_PLUGINS)) == null ? void 0 : n.toString()) == null ? void 0 : o.split(",")) || [], i = e.reduce(
|
|
15899
15900
|
(S, T) => (S[r.includes(T.id) ? "v1" : "v2"].push(B(D({}, T), { name: T.name.replace("v2", "") })), S),
|
|
15900
15901
|
{ v1: [], v2: [] }
|
|
15901
15902
|
);
|
|
@@ -15943,7 +15944,7 @@ class jt extends aM {
|
|
|
15943
15944
|
filename: e,
|
|
15944
15945
|
expiry: typeof i == "number" ? i : void 0
|
|
15945
15946
|
};
|
|
15946
|
-
this.context.getValue("flagsmith").hasFeature(
|
|
15947
|
+
this.context.getValue("flagsmith").hasFeature(Y.FEAT_CHAT_SDK) && (n.viewType = r);
|
|
15947
15948
|
const { getLocation: o, putLocation: c } = (yield this.requests.post("/v1/meetings/genPreSignedUploadUrl", n)).data.data;
|
|
15948
15949
|
return {
|
|
15949
15950
|
getLocation: o,
|
|
@@ -16611,7 +16612,7 @@ let Qe = (kg = class extends qt {
|
|
|
16611
16612
|
}
|
|
16612
16613
|
searchMessages(r) {
|
|
16613
16614
|
return u(this, arguments, function* (t, e = {}) {
|
|
16614
|
-
if (!a(this, Ti).getValue("flagsmith").hasFeature(
|
|
16615
|
+
if (!a(this, Ti).getValue("flagsmith").hasFeature(Y.FEAT_CHAT_SDK_SEARCH))
|
|
16615
16616
|
throw new R("searchMessages is temporarily disabled!", "0506");
|
|
16616
16617
|
return (yield a(this, Fe).searchMessages(t, e)).map(Es.formatSocketServiceMessage);
|
|
16617
16618
|
});
|
|
@@ -16781,7 +16782,7 @@ const ci = (Ig = class {
|
|
|
16781
16782
|
}
|
|
16782
16783
|
getChatMessages() {
|
|
16783
16784
|
return u(this, null, function* () {
|
|
16784
|
-
if (this.self.config.viewType === "LIVESTREAM" || this.self.config.viewType === "CHAT" || a(this, Dr).getValue("flagsmith").hasFeature(
|
|
16785
|
+
if (this.self.config.viewType === "LIVESTREAM" || this.self.config.viewType === "CHAT" || a(this, Dr).getValue("flagsmith").hasFeature(Y.FEAT_PAGINATED_CHAT))
|
|
16785
16786
|
return;
|
|
16786
16787
|
const s = yield this.chatSocketHandler.getChatMessages();
|
|
16787
16788
|
if (!(s != null && s.payload))
|
|
@@ -17502,17 +17503,17 @@ class ii extends qt {
|
|
|
17502
17503
|
"2006"
|
|
17503
17504
|
);
|
|
17504
17505
|
if (a(this, ae).permissions.stageAccess === j.Allowed) {
|
|
17505
|
-
|
|
17506
|
+
V(this, Ya, vd).call(this, "ACCEPTED_TO_JOIN_STAGE");
|
|
17506
17507
|
return;
|
|
17507
17508
|
}
|
|
17508
|
-
a(this, Yt).requestAccess(),
|
|
17509
|
+
a(this, Yt).requestAccess(), V(this, Ya, vd).call(this, "REQUESTED_TO_JOIN_STAGE");
|
|
17509
17510
|
});
|
|
17510
17511
|
}
|
|
17511
17512
|
cancelRequestAccess() {
|
|
17512
17513
|
return u(this, null, function* () {
|
|
17513
17514
|
if (!a(this, ae).permissions.stageEnabled)
|
|
17514
17515
|
throw this.logger.error("DyteStage::stage_disabled"), new R("Stage is disabled", "2003");
|
|
17515
|
-
a(this, Yt).cancelRequestAccess(),
|
|
17516
|
+
a(this, Yt).cancelRequestAccess(), V(this, Ya, vd).call(this, "OFF_STAGE");
|
|
17516
17517
|
});
|
|
17517
17518
|
}
|
|
17518
17519
|
grantAccess(e) {
|
|
@@ -17637,17 +17638,17 @@ function Nh(s) {
|
|
|
17637
17638
|
return "OFF_STAGE";
|
|
17638
17639
|
}
|
|
17639
17640
|
}
|
|
17640
|
-
var NM = Object.defineProperty,
|
|
17641
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
17641
|
+
var NM = Object.defineProperty, LM = Object.getOwnPropertyDescriptor, VM = (s, t, e, r) => {
|
|
17642
|
+
for (var i = r > 1 ? void 0 : r ? LM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
17642
17643
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
17643
17644
|
return r && i && NM(t, e, i), i;
|
|
17644
|
-
},
|
|
17645
|
+
}, Lr, Pi, Vr, Jo, ft;
|
|
17645
17646
|
class Nf {
|
|
17646
17647
|
constructor(t, e, r, i, n) {
|
|
17647
17648
|
h(this, "stage");
|
|
17648
|
-
g(this, Vr, void 0);
|
|
17649
|
-
g(this, Pi, void 0);
|
|
17650
17649
|
g(this, Lr, void 0);
|
|
17650
|
+
g(this, Pi, void 0);
|
|
17651
|
+
g(this, Vr, void 0);
|
|
17651
17652
|
g(this, Jo, 0);
|
|
17652
17653
|
g(this, ft, void 0);
|
|
17653
17654
|
m(this, ft, t), this.stage = new ii(
|
|
@@ -17656,7 +17657,7 @@ class Nf {
|
|
|
17656
17657
|
n,
|
|
17657
17658
|
e,
|
|
17658
17659
|
r
|
|
17659
|
-
), m(this,
|
|
17660
|
+
), m(this, Vr, e), m(this, Lr, i), m(this, Pi, n), this.setupEvents();
|
|
17660
17661
|
}
|
|
17661
17662
|
get telemetry() {
|
|
17662
17663
|
return a(this, ft).getValue("telemetry");
|
|
@@ -17667,17 +17668,17 @@ class Nf {
|
|
|
17667
17668
|
setupEvents() {
|
|
17668
17669
|
a(this, ft).subscribe("stageStatus", (t) => {
|
|
17669
17670
|
this.stage.emit("stageStatusUpdate", t);
|
|
17670
|
-
}), a(this,
|
|
17671
|
-
a(this,
|
|
17672
|
-
}), a(this,
|
|
17673
|
-
t !== void 0 && (t.peerId === a(this,
|
|
17674
|
-
}), a(this,
|
|
17675
|
-
a(this,
|
|
17676
|
-
}), a(this,
|
|
17671
|
+
}), a(this, Vr).on(x.grantStageAccess, () => {
|
|
17672
|
+
a(this, Lr).permissions.stageAccess !== j.Allowed && (this.stage.emit("stageRequestApproved"), this.setStageStatus("ACCEPTED_TO_JOIN_STAGE"));
|
|
17673
|
+
}), a(this, Vr).on(x.peerStageStatusUpdate, (t) => {
|
|
17674
|
+
t !== void 0 && (t.peerId === a(this, Lr).id ? this.selfStageStatusHandler(t) : this.peerStageStatusHandler(t));
|
|
17675
|
+
}), a(this, Vr).on(x.denyStageAccess, () => {
|
|
17676
|
+
a(this, Lr).permissions.stageAccess !== j.Allowed && (this.stage.emit("stageRequestRejected"), this.setStageStatus("OFF_STAGE"));
|
|
17677
|
+
}), a(this, Vr).on(
|
|
17677
17678
|
x.getStageRequests,
|
|
17678
17679
|
(t) => u(this, null, function* () {
|
|
17679
17680
|
var r;
|
|
17680
|
-
if (a(this,
|
|
17681
|
+
if (a(this, Lr).permissions.stageAccess !== j.Allowed)
|
|
17681
17682
|
return;
|
|
17682
17683
|
const e = (r = t == null ? void 0 : t.stageRequests) != null ? r : [];
|
|
17683
17684
|
yield a(this, ft).getValue("peerSessionStore").emitAsync(k.GET_STAGE_REQUESTS, e), a(this, Jo) < e.length && e.length > 0 && this.stage.emit("newStageRequest", { count: e.length }), m(this, Jo, e.length), this.stage.emit("stageAccessRequestUpdate", e);
|
|
@@ -17746,8 +17747,8 @@ class Nf {
|
|
|
17746
17747
|
});
|
|
17747
17748
|
}
|
|
17748
17749
|
}
|
|
17749
|
-
|
|
17750
|
-
|
|
17750
|
+
Lr = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), Jo = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap();
|
|
17751
|
+
VM([
|
|
17751
17752
|
E.trace("DyteStage.setupEvents")
|
|
17752
17753
|
], Nf.prototype, "setupEvents", 1);
|
|
17753
17754
|
var xM = Object.defineProperty, UM = Object.getOwnPropertyDescriptor, Wl = (s, t, e, r) => {
|
|
@@ -17769,8 +17770,8 @@ const Ie = {
|
|
|
17769
17770
|
stageStatusUpdate: 25,
|
|
17770
17771
|
peerStageStatusUpdate: 26
|
|
17771
17772
|
};
|
|
17772
|
-
var at, Ut, Qa, Xa, Ks, Za, xr, en,
|
|
17773
|
-
let Wn = (
|
|
17773
|
+
var at, Ut, Qa, Xa, Ks, Za, xr, en, Lg;
|
|
17774
|
+
let Wn = (Lg = class extends Jn {
|
|
17774
17775
|
constructor(t, {
|
|
17775
17776
|
baseURL: e,
|
|
17776
17777
|
createdAt: r,
|
|
@@ -17943,13 +17944,13 @@ let Wn = (Vg = class extends Jn {
|
|
|
17943
17944
|
});
|
|
17944
17945
|
d ? (c = a(this, Qa).joined.get(r.peerId), a(this, Ut).id === d && (c = l)) : c = l, this.sendIframeEvent({
|
|
17945
17946
|
type: Ie.getPeer,
|
|
17946
|
-
payload: { peer: c &&
|
|
17947
|
+
payload: { peer: c && Ld(c) },
|
|
17947
17948
|
uuid: e.uuid
|
|
17948
17949
|
});
|
|
17949
17950
|
break;
|
|
17950
17951
|
}
|
|
17951
17952
|
case Ie.getPeers: {
|
|
17952
|
-
const c = a(this, Qa).joined.toArray().map((d) =>
|
|
17953
|
+
const c = a(this, Qa).joined.toArray().map((d) => Ld(d));
|
|
17953
17954
|
this.sendIframeEvent({
|
|
17954
17955
|
type: Ie.getPeers,
|
|
17955
17956
|
payload: { peers: c },
|
|
@@ -18105,7 +18106,7 @@ let Wn = (Vg = class extends Jn {
|
|
|
18105
18106
|
}), m(this, Ks, void 0)));
|
|
18106
18107
|
});
|
|
18107
18108
|
}
|
|
18108
|
-
}, at = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), Qa = /* @__PURE__ */ new WeakMap(), Xa = /* @__PURE__ */ new WeakMap(), Ks = /* @__PURE__ */ new WeakMap(), Za = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(),
|
|
18109
|
+
}, at = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), Qa = /* @__PURE__ */ new WeakMap(), Xa = /* @__PURE__ */ new WeakMap(), Ks = /* @__PURE__ */ new WeakMap(), Za = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), Lg);
|
|
18109
18110
|
Wl([
|
|
18110
18111
|
Dt({ maxInvocations: 5, period: 1 })
|
|
18111
18112
|
], Wn.prototype, "sendData", 1);
|
|
@@ -18119,7 +18120,7 @@ Wn = Wl([
|
|
|
18119
18120
|
ht("0600")
|
|
18120
18121
|
], Wn);
|
|
18121
18122
|
var Ne, Ci;
|
|
18122
|
-
class
|
|
18123
|
+
class Lf extends Map {
|
|
18123
18124
|
constructor(e, r = void 0) {
|
|
18124
18125
|
const {
|
|
18125
18126
|
onAddEvent: i,
|
|
@@ -18205,7 +18206,7 @@ class Vf extends Map {
|
|
|
18205
18206
|
}
|
|
18206
18207
|
}
|
|
18207
18208
|
Ne = /* @__PURE__ */ new WeakMap(), Ci = /* @__PURE__ */ new WeakMap();
|
|
18208
|
-
class ug extends
|
|
18209
|
+
class ug extends Lf {
|
|
18209
18210
|
constructor(t) {
|
|
18210
18211
|
super({
|
|
18211
18212
|
onAddEvent: "pluginAdded",
|
|
@@ -18238,8 +18239,8 @@ var BM = Object.defineProperty, qM = Object.getOwnPropertyDescriptor, Jl = (s, t
|
|
|
18238
18239
|
for (var i = r > 1 ? void 0 : r ? qM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
18239
18240
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
18240
18241
|
return r && i && BM(t, e, i), i;
|
|
18241
|
-
}, Qt, tn, ls,
|
|
18242
|
-
const
|
|
18242
|
+
}, Qt, tn, ls, Vg;
|
|
18243
|
+
const Vf = (Vg = class {
|
|
18243
18244
|
constructor(s, t, e, r) {
|
|
18244
18245
|
h(this, "plugins");
|
|
18245
18246
|
g(this, Qt, void 0);
|
|
@@ -18267,7 +18268,7 @@ const Lf = (Lg = class {
|
|
|
18267
18268
|
c
|
|
18268
18269
|
);
|
|
18269
18270
|
l.all.add(f);
|
|
18270
|
-
}), new
|
|
18271
|
+
}), new Vf(
|
|
18271
18272
|
s,
|
|
18272
18273
|
e,
|
|
18273
18274
|
r,
|
|
@@ -18429,7 +18430,7 @@ const Lf = (Lg = class {
|
|
|
18429
18430
|
this.broadcastIframeEvent(Ie.chatMessage, { message: t });
|
|
18430
18431
|
}
|
|
18431
18432
|
), a(this, ls).getValue("peerSessionStore").on(k.PEER_JOINED_INTERNAL, (s) => {
|
|
18432
|
-
const t =
|
|
18433
|
+
const t = Ld(s);
|
|
18433
18434
|
this.broadcastIframeEvent(Ie.peerJoined, t);
|
|
18434
18435
|
}), a(this, ls).getValue("peerSessionStore").on(k.PEER_CLOSED, (s) => {
|
|
18435
18436
|
this.broadcastIframeEvent(Ie.peerLeft, s);
|
|
@@ -18439,8 +18440,8 @@ const Lf = (Lg = class {
|
|
|
18439
18440
|
this.broadcastIframeEvent(Ie.stageStatusUpdate, s);
|
|
18440
18441
|
});
|
|
18441
18442
|
}
|
|
18442
|
-
}, Qt = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), ls = /* @__PURE__ */ new WeakMap(),
|
|
18443
|
-
let Kc =
|
|
18443
|
+
}, Qt = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), ls = /* @__PURE__ */ new WeakMap(), Vg);
|
|
18444
|
+
let Kc = Vf;
|
|
18444
18445
|
Jl([
|
|
18445
18446
|
E.trace("PluginController.getRoomPlugins")
|
|
18446
18447
|
], Kc.prototype, "getRoomPlugins", 1);
|
|
@@ -18583,17 +18584,17 @@ let ga = (xg = class extends qt {
|
|
|
18583
18584
|
}
|
|
18584
18585
|
stop(t) {
|
|
18585
18586
|
return u(this, null, function* () {
|
|
18586
|
-
yield
|
|
18587
|
+
yield V(this, an, yd).call(this, "stop", ["RECORDING", "PAUSED"], t);
|
|
18587
18588
|
});
|
|
18588
18589
|
}
|
|
18589
18590
|
pause(t) {
|
|
18590
18591
|
return u(this, null, function* () {
|
|
18591
|
-
yield
|
|
18592
|
+
yield V(this, an, yd).call(this, "pause", ["RECORDING"], t);
|
|
18592
18593
|
});
|
|
18593
18594
|
}
|
|
18594
18595
|
resume(t) {
|
|
18595
18596
|
return u(this, null, function* () {
|
|
18596
|
-
yield
|
|
18597
|
+
yield V(this, an, yd).call(this, "resume", ["PAUSED"], t);
|
|
18597
18598
|
});
|
|
18598
18599
|
}
|
|
18599
18600
|
}, sn = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakSet(), yd = function(t, e, r) {
|
|
@@ -18734,7 +18735,7 @@ class YM {
|
|
|
18734
18735
|
}
|
|
18735
18736
|
}
|
|
18736
18737
|
wi = /* @__PURE__ */ new WeakMap();
|
|
18737
|
-
class
|
|
18738
|
+
class Lh {
|
|
18738
18739
|
constructor(t, e, r) {
|
|
18739
18740
|
h(this, "logger");
|
|
18740
18741
|
h(this, "features");
|
|
@@ -18743,18 +18744,18 @@ class Vh {
|
|
|
18743
18744
|
this.logger = t, this.features = e, this.browserSpecs = Te, this.callStats = r;
|
|
18744
18745
|
}
|
|
18745
18746
|
static init(t) {
|
|
18746
|
-
return new
|
|
18747
|
+
return new Lh(t.getValue("logger"), new YM(t), t.getValue("callstats"));
|
|
18747
18748
|
}
|
|
18748
18749
|
}
|
|
18749
|
-
class
|
|
18750
|
+
class Vh {
|
|
18750
18751
|
constructor(t) {
|
|
18751
18752
|
h(this, "internals");
|
|
18752
18753
|
this.internals = t;
|
|
18753
18754
|
}
|
|
18754
18755
|
static init(t) {
|
|
18755
18756
|
return u(this, null, function* () {
|
|
18756
|
-
const e =
|
|
18757
|
-
return new
|
|
18757
|
+
const e = Lh.init(t);
|
|
18758
|
+
return new Vh(e);
|
|
18758
18759
|
});
|
|
18759
18760
|
}
|
|
18760
18761
|
}
|
|
@@ -19342,8 +19343,8 @@ const hg = {
|
|
|
19342
19343
|
var c;
|
|
19343
19344
|
const e = "getSettings" in t && t.getSettings().width || "getConstraints" in t && t.getConstraints().width || "originalSettings" in t && ((c = t.originalSettings) == null ? void 0 : c.width);
|
|
19344
19345
|
let r = s0;
|
|
19345
|
-
s.getValue("flagsmith").hasFeature(
|
|
19346
|
-
|
|
19346
|
+
s.getValue("flagsmith").hasFeature(Y.OVERRIDE_HIVE_SIMULCAST_DYNAMIC) && (r = JSON.parse(s.getValue("flagsmith").getValue(
|
|
19347
|
+
Y.OVERRIDE_HIVE_SIMULCAST_DYNAMIC
|
|
19347
19348
|
)));
|
|
19348
19349
|
const i = r.map(([d]) => d).sort((d, l) => d - l);
|
|
19349
19350
|
let n = Number.MAX_VALUE, o = 0;
|
|
@@ -19373,8 +19374,8 @@ class n0 {
|
|
|
19373
19374
|
const t2 = (l = a(this, ki)) == null ? void 0 : l.screenshare, e2 = (f = (p = t2 == null ? void 0 : t2.width) == null ? void 0 : p.max) != null ? f : 1920, r = (T = (S = t2 == null ? void 0 : t2.height) == null ? void 0 : S.max) != null ? T : 1080, i = (P = (_ = t2 == null ? void 0 : t2.frameRate) == null ? void 0 : _.max) != null ? P : 5;
|
|
19374
19375
|
let n = (A = (w = t2 == null ? void 0 : t2.frameRate) == null ? void 0 : w.ideal) != null ? A : 5;
|
|
19375
19376
|
const o = t2 == null ? void 0 : t2.displaySurface, c = t2 == null ? void 0 : t2.selfBrowserSurface;
|
|
19376
|
-
a(this, As).getValue("flagsmith").getValue(
|
|
19377
|
-
(N = a(this, As).getValue("flagsmith").getValue(
|
|
19377
|
+
a(this, As).getValue("flagsmith").getValue(Y.VAL_MIN_FRAMERATE) && (n = parseInt(
|
|
19378
|
+
(N = a(this, As).getValue("flagsmith").getValue(Y.VAL_MIN_FRAMERATE)) == null ? void 0 : N.toString(),
|
|
19378
19379
|
10
|
|
19379
19380
|
));
|
|
19380
19381
|
let d = {
|
|
@@ -19385,9 +19386,9 @@ class n0 {
|
|
|
19385
19386
|
max: i
|
|
19386
19387
|
}
|
|
19387
19388
|
};
|
|
19388
|
-
if (a(this, As).getValue("flagsmith").hasFeature(
|
|
19389
|
+
if (a(this, As).getValue("flagsmith").hasFeature(Y.SCREENSHARE_CONSTRAINTS)) {
|
|
19389
19390
|
const $ = (H = a(this, As).getValue("flagsmith").getValue(
|
|
19390
|
-
|
|
19391
|
+
Y.SCREENSHARE_CONSTRAINTS
|
|
19391
19392
|
)) == null ? void 0 : H.toString();
|
|
19392
19393
|
d = JSON.parse($);
|
|
19393
19394
|
}
|
|
@@ -19418,9 +19419,9 @@ class n0 {
|
|
|
19418
19419
|
let i = hg.vga;
|
|
19419
19420
|
if (typeof r == "string" ? i = hg[r] : r !== void 0 && (i.height.ideal = r.height.ideal, i.width.ideal = r.width.ideal), i.frameRate = {
|
|
19420
19421
|
ideal: (c = (o = i.frameRate) == null ? void 0 : o.ideal) != null ? c : 24
|
|
19421
|
-
}, Te.isChromiumBased() && (i.frameRate.max = 30), a(this, As).getValue("flagsmith").hasFeature(
|
|
19422
|
+
}, Te.isChromiumBased() && (i.frameRate.max = 30), a(this, As).getValue("flagsmith").hasFeature(Y.VIDEO_CONSTRAINTS)) {
|
|
19422
19423
|
const l = (d = a(this, As).getValue("flagsmith").getValue(
|
|
19423
|
-
|
|
19424
|
+
Y.VIDEO_CONSTRAINTS
|
|
19424
19425
|
)) == null ? void 0 : d.toString();
|
|
19425
19426
|
i = JSON.parse(l);
|
|
19426
19427
|
}
|
|
@@ -19473,21 +19474,21 @@ var c0 = Object.defineProperty, d0 = Object.getOwnPropertyDescriptor, bs = (s, t
|
|
|
19473
19474
|
for (var i = r > 1 ? void 0 : r ? d0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
19474
19475
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
19475
19476
|
return r && i && c0(t, e, i), i;
|
|
19476
|
-
}, nn, Zt,
|
|
19477
|
+
}, nn, Zt, Le, Ug;
|
|
19477
19478
|
let Bt = (Ug = class extends o0 {
|
|
19478
19479
|
constructor(t, e) {
|
|
19479
19480
|
super();
|
|
19480
19481
|
h(this, "availableDevices");
|
|
19481
19482
|
g(this, nn, void 0);
|
|
19482
19483
|
g(this, Zt, void 0);
|
|
19483
|
-
g(this,
|
|
19484
|
-
m(this,
|
|
19484
|
+
g(this, Le, void 0);
|
|
19485
|
+
m(this, Le, t), m(this, Zt, new n0(t, e)), m(this, nn, new AbortController()), this.availableDevices = [], this.getAvailableDevices();
|
|
19485
19486
|
}
|
|
19486
19487
|
get telemetry() {
|
|
19487
|
-
return a(this,
|
|
19488
|
+
return a(this, Le).getValue("telemetry");
|
|
19488
19489
|
}
|
|
19489
19490
|
get logger() {
|
|
19490
|
-
return a(this,
|
|
19491
|
+
return a(this, Le).getValue("logger");
|
|
19491
19492
|
}
|
|
19492
19493
|
get constraintsBuilder() {
|
|
19493
19494
|
return a(this, Zt);
|
|
@@ -19500,7 +19501,7 @@ let Bt = (Ug = class extends o0 {
|
|
|
19500
19501
|
}
|
|
19501
19502
|
handlePermissionErrors(t, e) {
|
|
19502
19503
|
const r = cd(t, e.name, e.message);
|
|
19503
|
-
return this.permissions[t] = r, a(this,
|
|
19504
|
+
return this.permissions[t] = r, a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_ERROR, {
|
|
19504
19505
|
message: r,
|
|
19505
19506
|
constraints: e.constraints,
|
|
19506
19507
|
kind: t
|
|
@@ -19524,14 +19525,14 @@ let Bt = (Ug = class extends o0 {
|
|
|
19524
19525
|
});
|
|
19525
19526
|
const n = i.getAudioTracks()[0];
|
|
19526
19527
|
let o = i.getVideoTracks()[0];
|
|
19527
|
-
if (this.permissions.audio = "ACCEPTED", this.permissions.video = "ACCEPTED", a(this,
|
|
19528
|
+
if (this.permissions.audio = "ACCEPTED", this.permissions.video = "ACCEPTED", a(this, Le).getValue("flagsmith").hasFeature(Y.OBS_QUALITY) && o.label.includes("OBS Virtual")) {
|
|
19528
19529
|
const l = (yield this.getVideoInputDevices()).find((p) => p.label.includes("OBS Virtual"));
|
|
19529
19530
|
o = yield this.getVideoTrack(l.deviceId);
|
|
19530
19531
|
}
|
|
19531
|
-
return a(this,
|
|
19532
|
+
return a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
|
|
19532
19533
|
message: this.permissions.audio,
|
|
19533
19534
|
kind: "audio"
|
|
19534
|
-
}), a(this,
|
|
19535
|
+
}), a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
|
|
19535
19536
|
message: this.permissions.video,
|
|
19536
19537
|
kind: "video"
|
|
19537
19538
|
}), { audioTrack: n, videoTrack: o };
|
|
@@ -19544,7 +19545,7 @@ let Bt = (Ug = class extends o0 {
|
|
|
19544
19545
|
return u(this, null, function* () {
|
|
19545
19546
|
let r = yield this.getAudioInputDevices();
|
|
19546
19547
|
if (r.length === 0)
|
|
19547
|
-
throw this.permissions.audio = "NO_DEVICES_AVAILABLE", a(this,
|
|
19548
|
+
throw this.permissions.audio = "NO_DEVICES_AVAILABLE", a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
|
|
19548
19549
|
message: this.permissions.audio,
|
|
19549
19550
|
kind: "audio"
|
|
19550
19551
|
}), new R("No audio devices available", "1606");
|
|
@@ -19584,7 +19585,7 @@ let Bt = (Ug = class extends o0 {
|
|
|
19584
19585
|
});
|
|
19585
19586
|
try {
|
|
19586
19587
|
const n = yield i(e);
|
|
19587
|
-
return n.enabled = !t, this.permissions.audio !== "ACCEPTED" && (this.permissions.audio = "ACCEPTED", a(this,
|
|
19588
|
+
return n.enabled = !t, this.permissions.audio !== "ACCEPTED" && (this.permissions.audio = "ACCEPTED", a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
|
|
19588
19589
|
message: this.permissions.audio,
|
|
19589
19590
|
kind: "audio"
|
|
19590
19591
|
})), n;
|
|
@@ -19596,9 +19597,9 @@ let Bt = (Ug = class extends o0 {
|
|
|
19596
19597
|
getVideoTrack(t) {
|
|
19597
19598
|
return u(this, null, function* () {
|
|
19598
19599
|
var c;
|
|
19599
|
-
const e = a(this,
|
|
19600
|
+
const e = a(this, Le).getValue("flagsmith").hasFeature(Y.OBS_QUALITY), r = (c = yield this.getCurrentDeviceLabel(t)) == null ? void 0 : c.includes("OBS Virtual"), i = e && r, n = yield this.getVideoInputDevices();
|
|
19600
19601
|
if (n.length === 0)
|
|
19601
|
-
throw this.permissions.video = "NO_DEVICES_AVAILABLE", a(this,
|
|
19602
|
+
throw this.permissions.video = "NO_DEVICES_AVAILABLE", a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
|
|
19602
19603
|
message: this.permissions.video,
|
|
19603
19604
|
kind: "video"
|
|
19604
19605
|
}), new R("No video devices available", "1607");
|
|
@@ -19649,7 +19650,7 @@ let Bt = (Ug = class extends o0 {
|
|
|
19649
19650
|
});
|
|
19650
19651
|
try {
|
|
19651
19652
|
const d = a(this, Zt).getVideoConstraints(t), l = yield o(d);
|
|
19652
|
-
return this.permissions.video !== "ACCEPTED" && (this.permissions.video = "ACCEPTED", a(this,
|
|
19653
|
+
return this.permissions.video !== "ACCEPTED" && (this.permissions.video = "ACCEPTED", a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
|
|
19653
19654
|
message: this.permissions.video,
|
|
19654
19655
|
kind: "video"
|
|
19655
19656
|
})), l;
|
|
@@ -19664,7 +19665,7 @@ let Bt = (Ug = class extends o0 {
|
|
|
19664
19665
|
try {
|
|
19665
19666
|
this.logger.info("getDisplayMediaWithoutTimeout::requesting_display_media", {
|
|
19666
19667
|
constraints: JSON.stringify(e)
|
|
19667
|
-
}), a(this,
|
|
19668
|
+
}), a(this, Le).getValue("callstats").screenShareRequested();
|
|
19668
19669
|
const r = yield navigator.mediaDevices.getDisplayMedia(
|
|
19669
19670
|
e
|
|
19670
19671
|
);
|
|
@@ -19677,7 +19678,7 @@ let Bt = (Ug = class extends o0 {
|
|
|
19677
19678
|
r.name,
|
|
19678
19679
|
r.message
|
|
19679
19680
|
), n = new Su(r.name, r.message, e), o = { video: true };
|
|
19680
|
-
if (SC(e, o) || !a(this,
|
|
19681
|
+
if (SC(e, o) || !a(this, Le).getValue("flagsmith").hasFeature(Y.SCREEENSHARE_CONSTRAINTS_RETRY))
|
|
19681
19682
|
throw n;
|
|
19682
19683
|
if (i === "COULD_NOT_START")
|
|
19683
19684
|
return t(o);
|
|
@@ -19686,7 +19687,7 @@ let Bt = (Ug = class extends o0 {
|
|
|
19686
19687
|
});
|
|
19687
19688
|
try {
|
|
19688
19689
|
const e = a(this, Zt).getScreenShareConstraints(), r = yield t(e);
|
|
19689
|
-
return this.permissions.screenshare !== "ACCEPTED" && (this.permissions.screenshare = "ACCEPTED", a(this,
|
|
19690
|
+
return this.permissions.screenshare !== "ACCEPTED" && (this.permissions.screenshare = "ACCEPTED", a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
|
|
19690
19691
|
message: this.permissions.screenshare,
|
|
19691
19692
|
kind: "screenshare"
|
|
19692
19693
|
})), {
|
|
@@ -19764,14 +19765,14 @@ let Bt = (Ug = class extends o0 {
|
|
|
19764
19765
|
devices: JSON.stringify(o)
|
|
19765
19766
|
});
|
|
19766
19767
|
const f = [...d.added, ...d.removed];
|
|
19767
|
-
f.some((S) => S.kind === "audioinput") && a(this,
|
|
19768
|
+
f.some((S) => S.kind === "audioinput") && a(this, Le).getValue("callstats").devices("AUDIO", o == null ? void 0 : o.filter((S) => S.kind === "audioinput")), f.some((S) => S.kind === "videoinput") && a(this, Le).getValue("callstats").devices("VIDEO", o == null ? void 0 : o.filter((S) => S.kind === "videoinput")), f.some((S) => S.kind === "audiooutput") && a(this, Le).getValue("callstats").devices("SPEAKER", o == null ? void 0 : o.filter((S) => S.kind === "audiooutput")), t(e, d, false);
|
|
19768
19769
|
}
|
|
19769
19770
|
}),
|
|
19770
19771
|
{ signal: a(this, nn).signal }
|
|
19771
19772
|
);
|
|
19772
19773
|
});
|
|
19773
19774
|
}
|
|
19774
|
-
}, nn = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(),
|
|
19775
|
+
}, nn = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Ug);
|
|
19775
19776
|
bs([
|
|
19776
19777
|
E.trace("WebMediaInterface.destruct")
|
|
19777
19778
|
], Bt.prototype, "destruct", 1);
|
|
@@ -19918,7 +19919,7 @@ var f0 = Object.defineProperty, S0 = Object.getOwnPropertyDescriptor, $f = (s, t
|
|
|
19918
19919
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
19919
19920
|
return r && i && f0(t, e, i), i;
|
|
19920
19921
|
};
|
|
19921
|
-
let
|
|
19922
|
+
let Vd = class extends Jn {
|
|
19922
19923
|
constructor(t, e, r, i) {
|
|
19923
19924
|
var o;
|
|
19924
19925
|
const n = t.getValue("logger");
|
|
@@ -20033,7 +20034,7 @@ let Ld = class extends Jn {
|
|
|
20033
20034
|
}
|
|
20034
20035
|
addMiddleware(t) {
|
|
20035
20036
|
return u(this, null, function* () {
|
|
20036
|
-
if (Te.isWebKitBased() && !$_.hasFeature(
|
|
20037
|
+
if (Te.isWebKitBased() && !$_.hasFeature(Y.ALLOW_SAFARI_MEDIA_MIDDLEWARES))
|
|
20037
20038
|
return {
|
|
20038
20039
|
success: false,
|
|
20039
20040
|
message: "Middlewares are not supported in this WebKit engine based browser."
|
|
@@ -20101,11 +20102,11 @@ let Ld = class extends Jn {
|
|
|
20101
20102
|
};
|
|
20102
20103
|
$f([
|
|
20103
20104
|
E.trace("BaseMediaHandler.unmuteTrack")
|
|
20104
|
-
],
|
|
20105
|
-
|
|
20105
|
+
], Vd.prototype, "unmuteTrack", 1);
|
|
20106
|
+
Vd = $f([
|
|
20106
20107
|
ht("1600")
|
|
20107
|
-
],
|
|
20108
|
-
const Ff =
|
|
20108
|
+
], Vd);
|
|
20109
|
+
const Ff = Vd;
|
|
20109
20110
|
var v0 = Object.defineProperty, y0 = Object.getOwnPropertyDescriptor, Uh = (s, t, e, r) => {
|
|
20110
20111
|
for (var i = r > 1 ? void 0 : r ? y0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
20111
20112
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
@@ -20817,7 +20818,7 @@ class Yn {
|
|
|
20817
20818
|
}
|
|
20818
20819
|
update(t, e, r = true) {
|
|
20819
20820
|
return u(this, null, function* () {
|
|
20820
|
-
|
|
20821
|
+
V(this, Kd, qf).call(this, t, e, r);
|
|
20821
20822
|
});
|
|
20822
20823
|
}
|
|
20823
20824
|
delete(t, e = true, r = false) {
|
|
@@ -20922,7 +20923,7 @@ Qc([
|
|
|
20922
20923
|
Dt(zn, "bulkRateLimitConfig")
|
|
20923
20924
|
], Yn.prototype, "bulkDelete", 1);
|
|
20924
20925
|
var Ai, Mi, tc, zu, sc, Fr, zd, jf;
|
|
20925
|
-
class
|
|
20926
|
+
class L0 {
|
|
20926
20927
|
constructor(t, e) {
|
|
20927
20928
|
g(this, tc);
|
|
20928
20929
|
g(this, zd);
|
|
@@ -20931,7 +20932,7 @@ class V0 {
|
|
|
20931
20932
|
g(this, Mi, "");
|
|
20932
20933
|
g(this, sc, void 0);
|
|
20933
20934
|
g(this, Fr, /* @__PURE__ */ new Map());
|
|
20934
|
-
m(this, Ai, e), m(this, Mi, t.getValue("meetingId")), m(this, sc, t),
|
|
20935
|
+
m(this, Ai, e), m(this, Mi, t.getValue("meetingId")), m(this, sc, t), V(this, zd, jf).call(this);
|
|
20935
20936
|
}
|
|
20936
20937
|
create(t) {
|
|
20937
20938
|
const e = new Yn(
|
|
@@ -21014,10 +21015,10 @@ function gi(s) {
|
|
|
21014
21015
|
}
|
|
21015
21016
|
} : {};
|
|
21016
21017
|
}
|
|
21017
|
-
var
|
|
21018
|
+
var V0 = Object.defineProperty, x0 = Object.getOwnPropertyDescriptor, Qn = (s, t, e, r) => {
|
|
21018
21019
|
for (var i = r > 1 ? void 0 : r ? x0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
21019
21020
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
21020
|
-
return r && i &&
|
|
21021
|
+
return r && i && V0(t, e, i), i;
|
|
21021
21022
|
};
|
|
21022
21023
|
const U0 = 0.8, $0 = 1.2;
|
|
21023
21024
|
var pn, gn, $t, Di, vo, Hr, wa, Oi, yo, Yd, Gf, Qs, rc, Br, Ni, To, Xs, Qd, ic, Yu, Xd, Wf, Zd, Jf, $g;
|
|
@@ -21095,7 +21096,7 @@ let yr = ($g = class extends qt {
|
|
|
21095
21096
|
this.id = o, this.userId = c, this.name = d, this.device = l, this.picture = p, this.isHost = f, this.flags = S, this.manualProducerConfig = EC, m(this, gn, _ != null ? _ : "ON_STAGE"), this.customParticipantId = P != null ? P : T, this.audioEnabled = !w, this.audioTrack = A, this.videoEnabled = N, this.videoTrack = H, this.screenShareTracks = {
|
|
21096
21097
|
audio: void 0,
|
|
21097
21098
|
video: void 0
|
|
21098
|
-
}, this.producers = $ != null ? $ : [], this.presetName = F == null ? void 0 : F.preset_name, m(this, pn, false), m(this, Qs, r), m(this, rc, i), this.setupEvents(), this.updateVideo = this.updateVideo.bind(this),
|
|
21099
|
+
}, this.producers = $ != null ? $ : [], this.presetName = F == null ? void 0 : F.preset_name, m(this, pn, false), m(this, Qs, r), m(this, rc, i), this.setupEvents(), this.updateVideo = this.updateVideo.bind(this), V(this, ic, Yu).call(this);
|
|
21099
21100
|
}
|
|
21100
21101
|
get clientSpecificId() {
|
|
21101
21102
|
return this.customParticipantId;
|
|
@@ -21125,7 +21126,7 @@ let yr = ($g = class extends qt {
|
|
|
21125
21126
|
});
|
|
21126
21127
|
}
|
|
21127
21128
|
setupEvents() {
|
|
21128
|
-
this.on("videoUpdate",
|
|
21129
|
+
this.on("videoUpdate", V(this, ic, Yu)), a(this, Hr, wa) && (this.on("audioUpdate", V(this, Xd, Wf)), this.on("screenShareUpdate", V(this, Zd, Jf)));
|
|
21129
21130
|
}
|
|
21130
21131
|
pin() {
|
|
21131
21132
|
return u(this, null, function* () {
|
|
@@ -21297,7 +21298,7 @@ Qn([
|
|
|
21297
21298
|
yr = Qn([
|
|
21298
21299
|
ht("1200")
|
|
21299
21300
|
], yr);
|
|
21300
|
-
class mi extends
|
|
21301
|
+
class mi extends Lf {
|
|
21301
21302
|
constructor(t, e) {
|
|
21302
21303
|
const {
|
|
21303
21304
|
onAddEvent: r = "participantJoined",
|
|
@@ -21422,13 +21423,13 @@ var q0 = Object.defineProperty, j0 = Object.getOwnPropertyDescriptor, Wt = (s, t
|
|
|
21422
21423
|
return r && i && q0(t, e, i), i;
|
|
21423
21424
|
};
|
|
21424
21425
|
const G0 = ["ACTIVE_GRID", "PAGINATED", "MANUAL"];
|
|
21425
|
-
var
|
|
21426
|
+
var Ve, Li, Eo, Vi, _o, mn, Td, xi, wt, Fg;
|
|
21426
21427
|
let Pt = (Fg = class extends qt {
|
|
21427
21428
|
constructor(t, e, r) {
|
|
21428
21429
|
const i = t.getValue("logger");
|
|
21429
21430
|
super(i);
|
|
21430
|
-
g(this, Vi);
|
|
21431
21431
|
g(this, Li);
|
|
21432
|
+
g(this, Vi);
|
|
21432
21433
|
g(this, mn);
|
|
21433
21434
|
h(this, "waitlisted");
|
|
21434
21435
|
h(this, "joined");
|
|
@@ -21437,7 +21438,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21437
21438
|
h(this, "audioSubscribed");
|
|
21438
21439
|
h(this, "pinned");
|
|
21439
21440
|
h(this, "all");
|
|
21440
|
-
g(this,
|
|
21441
|
+
g(this, Ve, void 0);
|
|
21441
21442
|
g(this, xi, void 0);
|
|
21442
21443
|
g(this, wt, void 0);
|
|
21443
21444
|
h(this, "rateLimitConfig", {
|
|
@@ -21448,10 +21449,10 @@ let Pt = (Fg = class extends qt {
|
|
|
21448
21449
|
h(this, "currentPage");
|
|
21449
21450
|
h(this, "lastActiveSpeaker");
|
|
21450
21451
|
h(this, "selectedPeers", Kf);
|
|
21451
|
-
m(this,
|
|
21452
|
+
m(this, Ve, t), m(this, xi, e), m(this, wt, r), this.waitlisted = new mi(i), this.joined = new mi(i), this.videoSubscribed = new mi(i), this.audioSubscribed = new mi(i), this.active = this.videoSubscribed, this.pinned = new mi(i), this.all = new F0(i), this.viewMode = "ACTIVE_GRID", this.currentPage = 0, this.setupEvents();
|
|
21452
21453
|
}
|
|
21453
21454
|
get pip() {
|
|
21454
|
-
return a(this,
|
|
21455
|
+
return a(this, Ve).getValue("pip");
|
|
21455
21456
|
}
|
|
21456
21457
|
get rateLimits() {
|
|
21457
21458
|
return this.rateLimitConfig;
|
|
@@ -21460,17 +21461,17 @@ let Pt = (Fg = class extends qt {
|
|
|
21460
21461
|
this.rateLimitConfig.maxInvocations = t, this.rateLimitConfig.period = e;
|
|
21461
21462
|
}
|
|
21462
21463
|
get telemetry() {
|
|
21463
|
-
return a(this,
|
|
21464
|
+
return a(this, Ve).getValue("telemetry");
|
|
21464
21465
|
}
|
|
21465
21466
|
setupEvents() {
|
|
21466
|
-
a(this,
|
|
21467
|
+
a(this, Ve).getValue("peerSessionStore").on(k.E2EE_ACTIVE_CONSUMER, ({ peerId: e }) => {
|
|
21467
21468
|
var r;
|
|
21468
|
-
((r = a(this,
|
|
21469
|
+
((r = a(this, Ve).getValue("modules").e2ee) == null ? void 0 : r.enabled) !== true && this.emit("media_decode_error", {
|
|
21469
21470
|
reason: `Got encrypted media for participantId ${e}, but encryption wasn't enabled in init.defaults`,
|
|
21470
21471
|
code: "1702"
|
|
21471
21472
|
});
|
|
21472
21473
|
});
|
|
21473
|
-
const t = a(this,
|
|
21474
|
+
const t = a(this, Ve).getValue("audioPlayback");
|
|
21474
21475
|
t && this.audioSubscribed.on("participantLeft", (e) => {
|
|
21475
21476
|
t.removeParticipantTrack(e.id);
|
|
21476
21477
|
});
|
|
@@ -21480,12 +21481,12 @@ let Pt = (Fg = class extends qt {
|
|
|
21480
21481
|
}
|
|
21481
21482
|
get maxActiveParticipantsCount() {
|
|
21482
21483
|
var t;
|
|
21483
|
-
return (t = a(this,
|
|
21484
|
+
return (t = a(this, Ve)) == null ? void 0 : t.getValue("maxPreferredStreams");
|
|
21484
21485
|
}
|
|
21485
21486
|
setMaxActiveParticipantsCount(t) {
|
|
21486
21487
|
if (t < 0 || t > 24)
|
|
21487
21488
|
throw new R("0 <= Max active participants count limit <= 24", "1203");
|
|
21488
|
-
a(this,
|
|
21489
|
+
a(this, Ve).setValue("maxPreferredStreams", t), a(this, mn, Td) && a(this, Ve).getValue("peerSessionStore").emit(k.UPDATE_ACTIVE);
|
|
21489
21490
|
}
|
|
21490
21491
|
get pageCount() {
|
|
21491
21492
|
if (this.viewMode === "PAGINATED") {
|
|
@@ -21498,7 +21499,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21498
21499
|
}
|
|
21499
21500
|
acceptWaitingRoomRequest(t) {
|
|
21500
21501
|
var r, i;
|
|
21501
|
-
if (!a(this,
|
|
21502
|
+
if (!a(this, Vi, _o))
|
|
21502
21503
|
throw new R(
|
|
21503
21504
|
"Can`t accept waiting room request without joining room",
|
|
21504
21505
|
"1205"
|
|
@@ -21518,7 +21519,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21518
21519
|
rejectWaitingRoomRequest(t) {
|
|
21519
21520
|
return u(this, null, function* () {
|
|
21520
21521
|
var r, i;
|
|
21521
|
-
if (!a(this,
|
|
21522
|
+
if (!a(this, Vi, _o))
|
|
21522
21523
|
throw new R(
|
|
21523
21524
|
"Can`t reject waiting room request without joining room",
|
|
21524
21525
|
"1205"
|
|
@@ -21559,7 +21560,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21559
21560
|
"Manual Subscription is not enabled for your Organization. Please contact support.",
|
|
21560
21561
|
"1208"
|
|
21561
21562
|
);
|
|
21562
|
-
this.viewMode = t, t === "PAGINATED" ? (this.currentPage = 1, a(this,
|
|
21563
|
+
this.viewMode = t, t === "PAGINATED" ? (this.currentPage = 1, a(this, Ve).getValue("peerSessionStore").emit(k.UPDATE_ACTIVE, { page: this.currentPage })) : t === "ACTIVE_GRID" && (this.currentPage = 0, a(this, Ve).getValue("peerSessionStore").emit(k.UPDATE_ACTIVE)), this.emit("viewModeChanged", {
|
|
21563
21564
|
viewMode: t,
|
|
21564
21565
|
currentPage: this.currentPage,
|
|
21565
21566
|
pageCount: this.pageCount
|
|
@@ -21607,7 +21608,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21607
21608
|
i.push(c);
|
|
21608
21609
|
}
|
|
21609
21610
|
}
|
|
21610
|
-
}), yield a(this,
|
|
21611
|
+
}), yield a(this, Li, Eo).createConsumers(i);
|
|
21611
21612
|
});
|
|
21612
21613
|
}
|
|
21613
21614
|
unsubscribe(r) {
|
|
@@ -21651,7 +21652,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21651
21652
|
i.push(c);
|
|
21652
21653
|
}
|
|
21653
21654
|
}
|
|
21654
|
-
}), yield a(this,
|
|
21655
|
+
}), yield a(this, Li, Eo).closeConsumers(i);
|
|
21655
21656
|
});
|
|
21656
21657
|
}
|
|
21657
21658
|
getPeerIdsForCurrentPage() {
|
|
@@ -21685,7 +21686,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21685
21686
|
}), this.viewMode === "PAGINATED") {
|
|
21686
21687
|
if (!Number.isInteger(t))
|
|
21687
21688
|
throw this.logger.error("DyteParticipants::invalid_page_number"), new R(`Invalid page: ${t}. Page must be an integer and greater than 0 and less than or equal to .pageCount`, "1202");
|
|
21688
|
-
this.currentPage = t, a(this,
|
|
21689
|
+
this.currentPage = t, a(this, Ve).getValue("peerSessionStore").emit(k.UPDATE_ACTIVE, { page: t }), this.emit("pageChanged", {
|
|
21689
21690
|
viewMode: this.viewMode,
|
|
21690
21691
|
currentPage: this.currentPage,
|
|
21691
21692
|
pageCount: this.pageCount
|
|
@@ -21700,7 +21701,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21700
21701
|
}), !a(this, mn, Td))
|
|
21701
21702
|
throw new R("Can`t disable all audio without joining room", "1205");
|
|
21702
21703
|
if (a(this, xi).permissions.canAllowParticipantAudio)
|
|
21703
|
-
return a(this,
|
|
21704
|
+
return a(this, Li, Eo).muteAll(t);
|
|
21704
21705
|
throw this.logger.error("DyteParticipants::unauthorized_disable_all_audio", {
|
|
21705
21706
|
actions: { disableAllAudio: { allowUnmute: t } }
|
|
21706
21707
|
}), new R(
|
|
@@ -21714,7 +21715,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21714
21715
|
if (this.logger.info("DyteParticipants::disable_all_video"), !a(this, mn, Td))
|
|
21715
21716
|
throw new R("Can`t disable all video without joining room", "1205");
|
|
21716
21717
|
if (a(this, xi).permissions.canAllowParticipantVideo)
|
|
21717
|
-
return a(this,
|
|
21718
|
+
return a(this, Li, Eo).muteAllVideo();
|
|
21718
21719
|
throw this.logger.error("DyteParticipants::unauthorized_disable_all_video"), new R(
|
|
21719
21720
|
"Unauthorized: User does not have permission to disable peer video.",
|
|
21720
21721
|
"1201"
|
|
@@ -21733,27 +21734,27 @@ let Pt = (Fg = class extends qt {
|
|
|
21733
21734
|
}
|
|
21734
21735
|
kick(t) {
|
|
21735
21736
|
return u(this, null, function* () {
|
|
21736
|
-
yield a(this,
|
|
21737
|
+
yield a(this, Ve).getValue("peerSessionStore").emitAsync(k.KICK_PEER, {
|
|
21737
21738
|
peerId: t
|
|
21738
21739
|
});
|
|
21739
21740
|
});
|
|
21740
21741
|
}
|
|
21741
21742
|
kickAll() {
|
|
21742
21743
|
return u(this, null, function* () {
|
|
21743
|
-
if (this.logger.info("DyteParticipants::kick_all"), a(this,
|
|
21744
|
+
if (this.logger.info("DyteParticipants::kick_all"), a(this, Ve).getValue("viewType") !== "LIVESTREAM" && !a(this, Vi, _o))
|
|
21744
21745
|
throw new R("Can`t kick all without joining room", "1205");
|
|
21745
21746
|
if (!a(this, xi).permissions.kickParticipant)
|
|
21746
21747
|
throw this.logger.error("DyteParticipants::unauthorized_kick_all"), new R(
|
|
21747
21748
|
"Unauthorized: User does not have permission to kick peers.",
|
|
21748
21749
|
"1201"
|
|
21749
21750
|
);
|
|
21750
|
-
const e = a(this,
|
|
21751
|
+
const e = a(this, Ve).getValue("flagsmith").hasFeature(Y.PROPAGATE_KICK_ALL);
|
|
21751
21752
|
a(this, wt).kickAll(e);
|
|
21752
21753
|
});
|
|
21753
21754
|
}
|
|
21754
21755
|
broadcastMessage(t, e, r) {
|
|
21755
21756
|
return u(this, null, function* () {
|
|
21756
|
-
if (this.logger.info("DyteParticipants::broadcastMessage"), !a(this,
|
|
21757
|
+
if (this.logger.info("DyteParticipants::broadcastMessage"), !a(this, Vi, _o))
|
|
21757
21758
|
throw new R("Can`t broadcast message without joining room", "1205");
|
|
21758
21759
|
if (!(t != null && t.trim()))
|
|
21759
21760
|
throw new R("`type` must be a non-empty string.", "1209");
|
|
@@ -21791,14 +21792,14 @@ let Pt = (Fg = class extends qt {
|
|
|
21791
21792
|
return a(this, wt).getRoomPeersNonPaginated();
|
|
21792
21793
|
});
|
|
21793
21794
|
}
|
|
21794
|
-
},
|
|
21795
|
-
return a(this,
|
|
21796
|
-
},
|
|
21795
|
+
}, Ve = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakSet(), Eo = function() {
|
|
21796
|
+
return a(this, Ve).getValue("roomNodeClient");
|
|
21797
|
+
}, Vi = /* @__PURE__ */ new WeakSet(), _o = function() {
|
|
21797
21798
|
var t;
|
|
21798
|
-
return ((t = a(this,
|
|
21799
|
+
return ((t = a(this, Ve).getValue("connectionHandler")) == null ? void 0 : t.socketJoined) === true;
|
|
21799
21800
|
}, mn = /* @__PURE__ */ new WeakSet(), Td = function() {
|
|
21800
21801
|
var t;
|
|
21801
|
-
return ((t = a(this,
|
|
21802
|
+
return ((t = a(this, Ve).getValue("connectionHandler")) == null ? void 0 : t.mediaJoined) === true;
|
|
21802
21803
|
}, xi = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Fg);
|
|
21803
21804
|
Wt([
|
|
21804
21805
|
E.trace("DyteParticipants.setViewMode")
|
|
@@ -21924,7 +21925,7 @@ const ba = (Hg = class {
|
|
|
21924
21925
|
x.getWaitingRoomRequests,
|
|
21925
21926
|
this.waitingRoomRequestHandler.bind(this)
|
|
21926
21927
|
), this.context.getValue("peerSessionStore").on(k.SOCKET_PEERS, (s) => u(this, null, function* () {
|
|
21927
|
-
const t = this.context.getValue("flagsmith").hasFeature(
|
|
21928
|
+
const t = this.context.getValue("flagsmith").hasFeature(Y.DEBUG_SOCKET_JOIN);
|
|
21928
21929
|
if (t) {
|
|
21929
21930
|
const e = s && (s == null ? void 0 : s.length) < 20 ? {
|
|
21930
21931
|
peers: JSON.stringify(s.map((r) => r.peerId))
|
|
@@ -21937,7 +21938,7 @@ const ba = (Hg = class {
|
|
|
21937
21938
|
})), this.roomSocketHandler.on(
|
|
21938
21939
|
this.events.peerJoinedBroadcast,
|
|
21939
21940
|
({ participant: s }) => {
|
|
21940
|
-
this.context.getValue("flagsmith").hasFeature(
|
|
21941
|
+
this.context.getValue("flagsmith").hasFeature(Y.DEBUG_SOCKET_JOIN) && this.logger.info("events.peerJoinedBroadcast", { peers: s.peerId }), this.onMediaJoined(
|
|
21941
21942
|
s.peerId,
|
|
21942
21943
|
s.producerStates,
|
|
21943
21944
|
s.capabilities
|
|
@@ -21946,7 +21947,7 @@ const ba = (Hg = class {
|
|
|
21946
21947
|
), this.roomSocketHandler.on(
|
|
21947
21948
|
this.events.selfJoinComplete,
|
|
21948
21949
|
({ participants: s, selectedPeers: t, roomState: e }) => {
|
|
21949
|
-
if (this.context.getValue("flagsmith").hasFeature(
|
|
21950
|
+
if (this.context.getValue("flagsmith").hasFeature(Y.DEBUG_SOCKET_JOIN)) {
|
|
21950
21951
|
const n = s && (s == null ? void 0 : s.length) < 20 ? {
|
|
21951
21952
|
peers: JSON.stringify(s.map((o) => o.peerId))
|
|
21952
21953
|
} : void 0;
|
|
@@ -21964,7 +21965,7 @@ const ba = (Hg = class {
|
|
|
21964
21965
|
k.MAX_SPATIAL_LAYER_CHANGE,
|
|
21965
21966
|
({ peerId: s, maxSpatialLayer: t }) => {
|
|
21966
21967
|
const e = this.videoPeerConsumerMap.get(s);
|
|
21967
|
-
e && (this.maxSpatialLayerUpdates.set(e, t), this.updateConsumerSpatialLayers());
|
|
21968
|
+
e && (this.context.getValue("flagsmith").hasFeature(Y.DISABLE_LAYER_SWITCH) || (this.maxSpatialLayerUpdates.set(e, t), this.updateConsumerSpatialLayers()));
|
|
21968
21969
|
}
|
|
21969
21970
|
), this.context.getValue("peerSessionStore").on(
|
|
21970
21971
|
k.NEW_PRODUCER,
|
|
@@ -22188,8 +22189,8 @@ const ba = (Hg = class {
|
|
|
22188
22189
|
}
|
|
22189
22190
|
m(this, Ui, true), m(this, fn, false);
|
|
22190
22191
|
let s = [], t = [];
|
|
22191
|
-
if (this.context.getValue("flagsmith").hasFeature(
|
|
22192
|
-
const n = [], o = this.participants.videoSubscribed.toArray().reduce((P, w) => w.
|
|
22192
|
+
if (this.context.getValue("flagsmith").hasFeature(Y.NEW_SYNC_CONSUMERS)) {
|
|
22193
|
+
const n = [], o = this.participants.videoSubscribed.toArray().reduce((P, w) => w.producers.some((A) => A.kind === "video") ? (n.push(w.id), P.set(w.id, w)) : P, /* @__PURE__ */ new Map()), c = [], d = this.participants.audioSubscribed.toArray().reduce((P, w) => w.producers.some((A) => A.kind === "audio") ? (c.push(w.id), P.set(w.id, w)) : P, /* @__PURE__ */ new Map()), [l, p] = ba.mapDiff(
|
|
22193
22194
|
a(this, er),
|
|
22194
22195
|
o
|
|
22195
22196
|
);
|
|
@@ -22289,7 +22290,7 @@ const ba = (Hg = class {
|
|
|
22289
22290
|
producingPeerId: s,
|
|
22290
22291
|
mimeType: i.mimeType
|
|
22291
22292
|
}));
|
|
22292
|
-
}), this.roomNodeClient.handlePeerCapabilities(s, e), this.context.getValue("flagsmith").hasFeature(
|
|
22293
|
+
}), this.roomNodeClient.handlePeerCapabilities(s, e), this.context.getValue("flagsmith").hasFeature(Y.FORCE_VIDEO_CODEC) || this.roomNodeClient.shareWebcam(this.self.videoTrack), this.context.getValue("peerSessionStore").emit(k.UPDATE_ACTIVE);
|
|
22293
22294
|
}
|
|
22294
22295
|
updateParticipantsMapMinReplacement(s, t) {
|
|
22295
22296
|
const e = Array.from(s.keys()), r = new Map(s), i = new Set(t), n = [];
|
|
@@ -22339,7 +22340,7 @@ const ba = (Hg = class {
|
|
|
22339
22340
|
setupEventsGlobal() {
|
|
22340
22341
|
this.roomSocketHandler.on(x.joinRoom, ({ peer: s }) => {
|
|
22341
22342
|
if (!s.waitlisted) {
|
|
22342
|
-
const t = this.context.getValue("flagsmith").hasFeature(
|
|
22343
|
+
const t = this.context.getValue("flagsmith").hasFeature(Y.DEBUG_SOCKET_JOIN);
|
|
22343
22344
|
t && this.logger.info("Processing socket join", { peers: s.peerId }), this.onParticipantJoined(this.fromSocketService(s)), t && this.logger.info("Processed socket join", { peers: s.peerId });
|
|
22344
22345
|
}
|
|
22345
22346
|
}), this.roomSocketHandler.on(x.leaveRoom, (s) => {
|
|
@@ -22718,7 +22719,7 @@ const ba = (Hg = class {
|
|
|
22718
22719
|
rtpReceiver: c,
|
|
22719
22720
|
localId: d
|
|
22720
22721
|
}), n.screenShare) {
|
|
22721
|
-
e === "video" ? l.screenShareTracks.video = i : e === "audio" && (l.screenShareTracks.audio = i), (!r || this.self.permissions.isRecorder || this.context.getValue("flagsmith").hasFeature(
|
|
22722
|
+
e === "video" ? l.screenShareTracks.video = i : e === "audio" && (l.screenShareTracks.audio = i), (!r || this.self.permissions.isRecorder || this.context.getValue("flagsmith").hasFeature(Y.SCREEENSHARE_ERR_HACK)) && l.setScreenShareEnabled(true), n.supportsRemoteControl && (l.supportsRemoteControl = true), this.participants.broadcastMessage("screenshareConsumerCreated", {
|
|
22722
22723
|
producerId: o,
|
|
22723
22724
|
peerId: t,
|
|
22724
22725
|
screenShare: true,
|
|
@@ -22827,7 +22828,7 @@ Ea([
|
|
|
22827
22828
|
const he = _s(
|
|
22828
22829
|
kh().permissions
|
|
22829
22830
|
);
|
|
22830
|
-
var q, Sn, $i, el, St,
|
|
22831
|
+
var q, Sn, $i, el, St, Lt;
|
|
22831
22832
|
const Oa = class extends qt {
|
|
22832
22833
|
constructor(e, r, i, n = false) {
|
|
22833
22834
|
const o = e.getValue("logger");
|
|
@@ -22984,7 +22985,7 @@ const Oa = class extends qt {
|
|
|
22984
22985
|
get canProduceVideo() {
|
|
22985
22986
|
var r;
|
|
22986
22987
|
const e = (r = a(this, q).media.video.canProduce) != null ? r : he.media.video.canProduce;
|
|
22987
|
-
return this.stageEnabled && (a(this, St,
|
|
22988
|
+
return this.stageEnabled && (a(this, St, Lt) === "ACCEPTED_TO_JOIN_STAGE" || a(this, St, Lt) === "ON_STAGE") && e === j.CanRequest ? j.Allowed : this.stageEnabled && (a(this, St, Lt) === "OFF_STAGE" || a(this, St, Lt) === "REQUESTED_TO_JOIN_STAGE") && e === j.Allowed ? j.NotAllowed : e;
|
|
22988
22989
|
}
|
|
22989
22990
|
get produceScreenshare() {
|
|
22990
22991
|
return this.canProduceScreenshare;
|
|
@@ -22992,7 +22993,7 @@ const Oa = class extends qt {
|
|
|
22992
22993
|
get canProduceScreenshare() {
|
|
22993
22994
|
var r;
|
|
22994
22995
|
const e = (r = a(this, q).media.screenshare.canProduce) != null ? r : he.media.screenshare.canProduce;
|
|
22995
|
-
return this.stageEnabled && (a(this, St,
|
|
22996
|
+
return this.stageEnabled && (a(this, St, Lt) === "ACCEPTED_TO_JOIN_STAGE" || a(this, St, Lt) === "ON_STAGE") && e === j.CanRequest ? j.Allowed : this.stageEnabled && (a(this, St, Lt) === "OFF_STAGE" || a(this, St, Lt) === "REQUESTED_TO_JOIN_STAGE") && e === j.Allowed ? j.NotAllowed : e;
|
|
22996
22997
|
}
|
|
22997
22998
|
get produceAudio() {
|
|
22998
22999
|
return this.canProduceAudio;
|
|
@@ -23000,7 +23001,7 @@ const Oa = class extends qt {
|
|
|
23000
23001
|
get canProduceAudio() {
|
|
23001
23002
|
var r;
|
|
23002
23003
|
const e = (r = a(this, q).media.audio.canProduce) != null ? r : he.media.audio.canProduce;
|
|
23003
|
-
return this.stageEnabled && (a(this, St,
|
|
23004
|
+
return this.stageEnabled && (a(this, St, Lt) === "ACCEPTED_TO_JOIN_STAGE" || a(this, St, Lt) === "ON_STAGE") && e === j.CanRequest ? j.Allowed : this.stageEnabled && (a(this, St, Lt) === "OFF_STAGE" || a(this, St, Lt) === "REQUESTED_TO_JOIN_STAGE") && e === j.Allowed ? j.NotAllowed : e;
|
|
23004
23005
|
}
|
|
23005
23006
|
get chatPublic() {
|
|
23006
23007
|
var e, r, i;
|
|
@@ -23068,7 +23069,7 @@ const Oa = class extends qt {
|
|
|
23068
23069
|
}
|
|
23069
23070
|
};
|
|
23070
23071
|
let Qu = Oa;
|
|
23071
|
-
q = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), el = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakSet(),
|
|
23072
|
+
q = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), el = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakSet(), Lt = function() {
|
|
23072
23073
|
return a(this, $i).getValue("stageStatus");
|
|
23073
23074
|
};
|
|
23074
23075
|
var us;
|
|
@@ -23407,7 +23408,7 @@ let Xe = (Bg = class extends zf {
|
|
|
23407
23408
|
h(this, "roomState", "init");
|
|
23408
23409
|
g(this, En, /* @__PURE__ */ new Set());
|
|
23409
23410
|
g(this, _n, /* @__PURE__ */ new Set());
|
|
23410
|
-
m(this, He, t), this.userId = e.id, this.name = e.name, this.picture = e.picture, this.customParticipantId = (c = e.customParticipantId) != null ? c : e.clientSpecificId, this.waitlistStatus = "none", m(this, vt, r), m(this, vn, i), this.hidden = false, m(this, yn, false), this.organizationId = e.organizationId, this.supportsRemoteControl = Te.isElectron(), this.device = Te.getDeviceInfo(), this.presetName = n, i.viewType !== Mt.Chat && this.updatePermission(), this.updateVideo = this.updateVideo.bind(this),
|
|
23411
|
+
m(this, He, t), this.userId = e.id, this.name = e.name, this.picture = e.picture, this.customParticipantId = (c = e.customParticipantId) != null ? c : e.clientSpecificId, this.waitlistStatus = "none", m(this, vt, r), m(this, vn, i), this.hidden = false, m(this, yn, false), this.organizationId = e.organizationId, this.supportsRemoteControl = Te.isElectron(), this.device = Te.getDeviceInfo(), this.presetName = n, i.viewType !== Mt.Chat && this.updatePermission(), this.updateVideo = this.updateVideo.bind(this), V(this, ac, Xu).call(this);
|
|
23411
23412
|
}
|
|
23412
23413
|
get telemetry() {
|
|
23413
23414
|
return a(this, He).getValue("telemetry");
|
|
@@ -23443,7 +23444,7 @@ let Xe = (Bg = class extends zf {
|
|
|
23443
23444
|
this.removeAllListeners("videoUpdate"), this.localMediaHandler.removeAllListeners("AUDIO_TRACK_CHANGE"), this.localMediaHandler.removeAllListeners("VIDEO_TRACK_CHANGE"), this.localMediaHandler.removeAllListeners("DEVICE_CHANGE"), this.localMediaHandler.removeAllListeners("DEVICE_LIST_UPDATED"), this.localMediaHandler.removeAllListeners("SCREENSHARE_TRACK_CHANGE"), this.localMediaHandler.removeAllListeners("SCREENSHARE_ENDED"), this.localMediaHandler.removeAllListeners("AUDIO_TRACK_SILENT"), this.localMediaHandler.removeAllListeners("FORCE_MUTE_AUDIO"), this.localMediaHandler.removeAllListeners("FORCE_MUTE_VIDEO"), a(this, vt).removeAllListeners("permissionsUpdate");
|
|
23444
23445
|
}
|
|
23445
23446
|
setupEvents() {
|
|
23446
|
-
this.on("videoUpdate",
|
|
23447
|
+
this.on("videoUpdate", V(this, ac, Xu));
|
|
23447
23448
|
const t = a(this, Tn, Ed);
|
|
23448
23449
|
t && t.onError((e) => {
|
|
23449
23450
|
this.emit("autoplayError", e);
|
|
@@ -23466,7 +23467,7 @@ let Xe = (Bg = class extends zf {
|
|
|
23466
23467
|
else if (this.videoEnabled && a(this, xe, Be))
|
|
23467
23468
|
try {
|
|
23468
23469
|
const e = yield a(this, je, Ze).shareWebcam(this.videoTrack);
|
|
23469
|
-
e && e.id !== this.videoTrack.id && a(this, He).getValue("flagsmith").hasFeature(
|
|
23470
|
+
e && e.id !== this.videoTrack.id && a(this, He).getValue("flagsmith").hasFeature(Y.EXP_RESHARE) && (yield a(this, je, Ze).shareWebcam(this.videoTrack));
|
|
23470
23471
|
} catch (e) {
|
|
23471
23472
|
this.logger.error("DyteSelf::setupEvents::failed shareWebcam", {
|
|
23472
23473
|
error: e
|
|
@@ -23705,7 +23706,7 @@ let Xe = (Bg = class extends zf {
|
|
|
23705
23706
|
if (!t)
|
|
23706
23707
|
throw new R("No device selected", "1104");
|
|
23707
23708
|
const e = this.getCurrentDevices();
|
|
23708
|
-
if (t.deviceId && (((r = e == null ? void 0 : e.audio) == null ? void 0 : r.deviceId) === t.deviceId || ((i = e == null ? void 0 : e.video) == null ? void 0 : i.deviceId) === t.deviceId || ((n = e == null ? void 0 : e.speaker) == null ? void 0 : n.deviceId) === t.deviceId) && (this.logger.warn("DyteSelf.setDevice.setting_to_in_use_device", { devices: [t] }), a(this, He).getValue("flagsmith").hasFeature(
|
|
23709
|
+
if (t.deviceId && (((r = e == null ? void 0 : e.audio) == null ? void 0 : r.deviceId) === t.deviceId || ((i = e == null ? void 0 : e.video) == null ? void 0 : i.deviceId) === t.deviceId || ((n = e == null ? void 0 : e.speaker) == null ? void 0 : n.deviceId) === t.deviceId) && (this.logger.warn("DyteSelf.setDevice.setting_to_in_use_device", { devices: [t] }), a(this, He).getValue("flagsmith").hasFeature(Y.SKIP_SETTING_IN_USE_DEVICE)))
|
|
23709
23710
|
throw new R("Cannot set device currently in use", "1106");
|
|
23710
23711
|
switch (t.kind) {
|
|
23711
23712
|
case "audioinput":
|
|
@@ -24128,7 +24129,7 @@ class eD {
|
|
|
24128
24129
|
return u(this, null, function* () {
|
|
24129
24130
|
const e = (yield a(this, ze).sendMessagePromise(
|
|
24130
24131
|
this.events.closeProducer,
|
|
24131
|
-
|
|
24132
|
+
VR.toBinary(t)
|
|
24132
24133
|
)).payload, { description: r } = vw.fromBinary(e);
|
|
24133
24134
|
return r;
|
|
24134
24135
|
});
|
|
@@ -24796,7 +24797,7 @@ class sD extends Yl {
|
|
|
24796
24797
|
g(this, Fi, void 0);
|
|
24797
24798
|
g(this, Ds, void 0);
|
|
24798
24799
|
g(this, tl, void 0);
|
|
24799
|
-
this.id = r.id, this.localId = r.localId, m(this, cc, r.handler), this.appData = r.appData, this.peerId = r.producingPeerId, this.producingTransportId = r.producingTransportId, m(this, Ds, false), this.producerId = r.producerId, this.track = r.track, m(this, Fi, (i = r.paused) != null ? i : false), this.mimeType = r.mimeType, this.transceiver = r.transceiver, this.rtpReceiver = r.rtpReceiver,
|
|
24800
|
+
this.id = r.id, this.localId = r.localId, m(this, cc, r.handler), this.appData = r.appData, this.peerId = r.producingPeerId, this.producingTransportId = r.producingTransportId, m(this, Ds, false), this.producerId = r.producerId, this.track = r.track, m(this, Fi, (i = r.paused) != null ? i : false), this.mimeType = r.mimeType, this.transceiver = r.transceiver, this.rtpReceiver = r.rtpReceiver, V(this, sl, Qf).call(this), m(this, tl, e);
|
|
24800
24801
|
}
|
|
24801
24802
|
get closed() {
|
|
24802
24803
|
return a(this, Ds);
|
|
@@ -24808,7 +24809,7 @@ class sD extends Yl {
|
|
|
24808
24809
|
return a(this, Fi);
|
|
24809
24810
|
}
|
|
24810
24811
|
close(e, r) {
|
|
24811
|
-
a(this, Ds) || (this.logger.debug(`Consumer::close() ${e ? `with reason ${e}` : ""}`, a(this, Os, kr)), m(this, Ds, true), r && (
|
|
24812
|
+
a(this, Ds) || (this.logger.debug(`Consumer::close() ${e ? `with reason ${e}` : ""}`, a(this, Os, kr)), m(this, Ds, true), r && (V(this, rl, Xf).call(this), this.transceiver.stop()), this.safeEmit("close", e));
|
|
24812
24813
|
}
|
|
24813
24814
|
getStats() {
|
|
24814
24815
|
return u(this, null, function* () {
|
|
@@ -24844,10 +24845,10 @@ cc = /* @__PURE__ */ new WeakMap(), Fi = /* @__PURE__ */ new WeakMap(), Ds = /*
|
|
|
24844
24845
|
}, dc = /* @__PURE__ */ new WeakSet(), eh = function() {
|
|
24845
24846
|
this.logger.debug('Consumer::track "ended" event', a(this, Os, kr)), this.safeEmit("trackended");
|
|
24846
24847
|
}, sl = /* @__PURE__ */ new WeakSet(), Qf = function() {
|
|
24847
|
-
this.track.addEventListener("ended",
|
|
24848
|
+
this.track.addEventListener("ended", V(this, dc, eh).bind(this));
|
|
24848
24849
|
}, rl = /* @__PURE__ */ new WeakSet(), Xf = function() {
|
|
24849
24850
|
try {
|
|
24850
|
-
this.track.removeEventListener("ended",
|
|
24851
|
+
this.track.removeEventListener("ended", V(this, dc, eh)), this.track.stop();
|
|
24851
24852
|
} catch (e) {
|
|
24852
24853
|
this.logger.error("Consumer::destroyTrack()", B(D({}, a(this, Os, kr)), {
|
|
24853
24854
|
error: e
|
|
@@ -25148,7 +25149,7 @@ Gr = /* @__PURE__ */ new WeakMap(), al = /* @__PURE__ */ new WeakMap(), Bi = /*
|
|
|
25148
25149
|
}));
|
|
25149
25150
|
const Ud = "transport closed";
|
|
25150
25151
|
var qi, ji;
|
|
25151
|
-
const
|
|
25152
|
+
const La = class extends Yl {
|
|
25152
25153
|
constructor(e, r, {
|
|
25153
25154
|
id: i,
|
|
25154
25155
|
direction: n,
|
|
@@ -25466,19 +25467,19 @@ const Va = class extends Yl {
|
|
|
25466
25467
|
closeConsumers(e, r) {
|
|
25467
25468
|
return u(this, null, function* () {
|
|
25468
25469
|
try {
|
|
25469
|
-
const i = e.map((l) => l.transceiver.mid), n =
|
|
25470
|
+
const i = e.map((l) => l.transceiver.mid), n = La.parseCodecAndFmtpMappings(
|
|
25470
25471
|
this.handler.pc.remoteDescription,
|
|
25471
25472
|
i
|
|
25472
|
-
), o =
|
|
25473
|
+
), o = La.parseHeaderExtensionMappings(
|
|
25473
25474
|
this.handler.pc.remoteDescription
|
|
25474
25475
|
);
|
|
25475
25476
|
this.logger.info("Stopping transceivers", { consumerIds: e.map(({ id: l }) => l) }), e.forEach((l) => l.close(void 0, true));
|
|
25476
25477
|
let c = yield this.handler.pc.createOffer();
|
|
25477
|
-
this.logger.info("Created offer for closing consumers", { sdp: c.sdp }), c =
|
|
25478
|
+
this.logger.info("Created offer for closing consumers", { sdp: c.sdp }), c = La.setCodecAndFmtpMappings(
|
|
25478
25479
|
c,
|
|
25479
25480
|
i,
|
|
25480
25481
|
n
|
|
25481
|
-
), c =
|
|
25482
|
+
), c = La.setHeaderExtensionMappings(
|
|
25482
25483
|
c,
|
|
25483
25484
|
o
|
|
25484
25485
|
), this.logger.info("Updated codec and fmtp mappings in close consumer offer", { sdp: c.sdp }), yield this.setLocalDescription(c), this.logger.info("Successfully set local description in close consumers");
|
|
@@ -25624,7 +25625,7 @@ const Va = class extends Yl {
|
|
|
25624
25625
|
});
|
|
25625
25626
|
}
|
|
25626
25627
|
};
|
|
25627
|
-
let th =
|
|
25628
|
+
let th = La;
|
|
25628
25629
|
qi = /* @__PURE__ */ new WeakMap(), ji = /* @__PURE__ */ new WeakMap();
|
|
25629
25630
|
function aD(s) {
|
|
25630
25631
|
if (typeof navigator == "object" && navigator.product === "ReactNative") {
|
|
@@ -25769,7 +25770,7 @@ class cD extends ut.EventEmitter {
|
|
|
25769
25770
|
a(this, Mn, _d).mediaState = {
|
|
25770
25771
|
send: { state: xa.NEW },
|
|
25771
25772
|
recv: { state: xa.NEW }
|
|
25772
|
-
}, (Gn(this.context, "forceRelay") || this.context.getValue("flagsmith").hasFeature(
|
|
25773
|
+
}, (Gn(this.context, "forceRelay") || this.context.getValue("flagsmith").hasFeature(Y.FORCE_RELAY)) && m(this, Ns, "relay"), this.logger.info(`ICE Transport Policy initially set to ${a(this, Ns)}`), V(this, pc, sh).call(this);
|
|
25773
25774
|
}
|
|
25774
25775
|
get telemetry() {
|
|
25775
25776
|
return this.context.getValue("telemetry");
|
|
@@ -25803,15 +25804,15 @@ class cD extends ut.EventEmitter {
|
|
|
25803
25804
|
}
|
|
25804
25805
|
setupTransports(e) {
|
|
25805
25806
|
return u(this, null, function* () {
|
|
25806
|
-
yield
|
|
25807
|
+
yield V(this, nl, tS).call(this, e);
|
|
25807
25808
|
let r, i;
|
|
25808
|
-
e.send && (r =
|
|
25809
|
+
e.send && (r = V(this, gc, rh).call(this, a(this, ot)).then((n) => {
|
|
25809
25810
|
try {
|
|
25810
25811
|
a(this, uc).call(this, n);
|
|
25811
25812
|
} catch (o) {
|
|
25812
25813
|
this.logger.error("Failed to run send transport callback");
|
|
25813
25814
|
}
|
|
25814
|
-
})), e.recv && (i =
|
|
25815
|
+
})), e.recv && (i = V(this, gc, rh).call(this, a(this, ct)).then((n) => {
|
|
25815
25816
|
try {
|
|
25816
25817
|
a(this, hc).call(this, n);
|
|
25817
25818
|
} catch (o) {
|
|
@@ -25830,7 +25831,7 @@ class cD extends ut.EventEmitter {
|
|
|
25830
25831
|
const { id: n, serverId: o, direction: c } = a(this, ct);
|
|
25831
25832
|
this.logger.info("Closing recv transport", { transport: { id: n, serverId: o, type: c } }), (r = a(this, ct)) == null || r.close(), (i = a(this, ct)) == null || i.removeAllListeners(), m(this, ct, void 0);
|
|
25832
25833
|
}
|
|
25833
|
-
|
|
25834
|
+
V(this, pc, sh).call(this);
|
|
25834
25835
|
}
|
|
25835
25836
|
stopAllTransports() {
|
|
25836
25837
|
this.logger.info("Closing all transports"), this.stopTransports({ send: true, recv: true });
|
|
@@ -25849,13 +25850,13 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
25849
25850
|
}, nl = /* @__PURE__ */ new WeakSet(), tS = function(e) {
|
|
25850
25851
|
return u(this, null, function* () {
|
|
25851
25852
|
var o, c, d, l, p, f, S, T;
|
|
25852
|
-
(Gn(this.context, "forceRelay") || this.context.getValue("flagsmith").hasFeature(
|
|
25853
|
+
(Gn(this.context, "forceRelay") || this.context.getValue("flagsmith").hasFeature(Y.FORCE_RELAY)) && m(this, Ns, "relay"), this.logger.info(`ICE Transport Policy set to ${a(this, Ns)}`);
|
|
25853
25854
|
const n = yield lt().getICEServers().catch((_) => (this.logger.warn(`failed to get iceservers from server: ${_.message}`), []));
|
|
25854
25855
|
if (e.send) {
|
|
25855
25856
|
const _ = this.context.getValue("flagsmith").hasFeature(
|
|
25856
|
-
|
|
25857
|
+
Y.DISABLE_OPUS_DTX_CF
|
|
25857
25858
|
);
|
|
25858
|
-
|
|
25859
|
+
V(this, cl, rS).call(this, {
|
|
25859
25860
|
iceServers: n,
|
|
25860
25861
|
additionalSettings: {
|
|
25861
25862
|
encodedInsertableStreams: (o = this.context.getValue("modules").e2ee) == null ? void 0 : o.enabled
|
|
@@ -25868,7 +25869,7 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
25868
25869
|
iceTransportPolicy: a(this, Ns)
|
|
25869
25870
|
});
|
|
25870
25871
|
}
|
|
25871
|
-
e.recv &&
|
|
25872
|
+
e.recv && V(this, dl, iS).call(this, {
|
|
25872
25873
|
iceServers: n,
|
|
25873
25874
|
additionalSettings: {
|
|
25874
25875
|
encodedInsertableStreams: (T = this.context.getValue("modules").e2ee) == null ? void 0 : T.enabled
|
|
@@ -25879,10 +25880,10 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
25879
25880
|
}, gc = /* @__PURE__ */ new WeakSet(), rh = function(e) {
|
|
25880
25881
|
return u(this, null, function* () {
|
|
25881
25882
|
const { id: r, serverId: i, direction: n } = e;
|
|
25882
|
-
|
|
25883
|
+
V(this, ll, aS).call(this, e);
|
|
25883
25884
|
try {
|
|
25884
25885
|
const o = this.context.getValue("flagsmith").hasFeature(
|
|
25885
|
-
|
|
25886
|
+
Y.ENABLE_HIVE_INFINITE_RETRIES
|
|
25886
25887
|
) ? 1 / 0 : 3;
|
|
25887
25888
|
return yield Yf((c, d) => u(this, null, function* () {
|
|
25888
25889
|
c > 0 && this.logger.debug(`Retrying transport connect, count: ${c}`, {
|
|
@@ -25891,7 +25892,7 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
25891
25892
|
try {
|
|
25892
25893
|
if (e.closed)
|
|
25893
25894
|
throw new fi("Cannot reconnect closed transport");
|
|
25894
|
-
yield
|
|
25895
|
+
yield V(this, ol, sS).call(this, e);
|
|
25895
25896
|
} catch (l) {
|
|
25896
25897
|
if (l instanceof fi) {
|
|
25897
25898
|
d(l);
|
|
@@ -25925,7 +25926,7 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
25925
25926
|
throw new fi("Transport is closed");
|
|
25926
25927
|
try {
|
|
25927
25928
|
yield e.connect(
|
|
25928
|
-
(n) =>
|
|
25929
|
+
(n) => V(this, ul, nS).call(this, i, n)
|
|
25929
25930
|
), this.logger.info(`Connected ${i} transport`, {
|
|
25930
25931
|
transport: { id: r, serverId: e.serverId, type: i }
|
|
25931
25932
|
});
|
|
@@ -25966,7 +25967,7 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
25966
25967
|
}, ll = /* @__PURE__ */ new WeakSet(), aS = function(e) {
|
|
25967
25968
|
const { direction: r, id: i } = e;
|
|
25968
25969
|
e.on("connectionstatechange", (n) => u(this, null, function* () {
|
|
25969
|
-
|
|
25970
|
+
V(this, fc, ah).call(this, { state: n, direction: r }), this.logger.info(
|
|
25970
25971
|
`Transport connection state changed for ${r} transport`,
|
|
25971
25972
|
{
|
|
25972
25973
|
transport: {
|
|
@@ -25987,13 +25988,13 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
25987
25988
|
break;
|
|
25988
25989
|
case "disconnected":
|
|
25989
25990
|
a(this, Ji)[r] = setTimeout(() => u(this, null, function* () {
|
|
25990
|
-
this.logger.warn(`${r} transport is in disconnected state, reconnecting transport`, { transport: { id: i, serverId: e.serverId, type: r } }), yield
|
|
25991
|
+
this.logger.warn(`${r} transport is in disconnected state, reconnecting transport`, { transport: { id: i, serverId: e.serverId, type: r } }), yield V(this, mc, ih).call(this, e.direction);
|
|
25991
25992
|
}), oD);
|
|
25992
25993
|
break;
|
|
25993
25994
|
case "failed":
|
|
25994
25995
|
if (e.closed)
|
|
25995
25996
|
return;
|
|
25996
|
-
o(), this.logger.warn(`${r} transport is in failed state, reconnecting transport`, { transport: { id: i, serverId: e.serverId, type: r } }), yield
|
|
25997
|
+
o(), this.logger.warn(`${r} transport is in failed state, reconnecting transport`, { transport: { id: i, serverId: e.serverId, type: r } }), yield V(this, mc, ih).call(this, e.direction);
|
|
25997
25998
|
break;
|
|
25998
25999
|
}
|
|
25999
26000
|
})), e.on("icecandidate", (n) => u(this, null, function* () {
|
|
@@ -26056,7 +26057,7 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
26056
26057
|
}, mc = /* @__PURE__ */ new WeakSet(), ih = function(e) {
|
|
26057
26058
|
return u(this, null, function* () {
|
|
26058
26059
|
switch (this.logger.info("Called reconnect transport", { transport: { type: e } }), this.stopTransports({ [e]: true }), this.context.getValue("flagsmith").hasFeature(
|
|
26059
|
-
|
|
26060
|
+
Y.HIVE_TRANSPORT_FORCE_RELAY_ON_ICE_FAILED
|
|
26060
26061
|
) && a(this, Wi).isConnected && a(this, In).transportFailureCount[e] > 2 && (this.logger.warn(`Multiple disconnections in ${e} transport, forcing relay`), m(this, Ns, "relay")), yield this.setupTransports({ [e]: true }), e) {
|
|
26061
26062
|
case "send": {
|
|
26062
26063
|
this.logger.info("Transport reconnected", { transport: a(this, ot) }), this.context.getValue("peerSessionStore").emit(k.RESET_PRODUCER_STATE);
|
|
@@ -26069,7 +26070,7 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
26069
26070
|
default:
|
|
26070
26071
|
this.logger.warn("Unknown transport direction", { transport: { type: e } });
|
|
26071
26072
|
}
|
|
26072
|
-
|
|
26073
|
+
V(this, fc, ah).call(this, {
|
|
26073
26074
|
state: xa.CONNECTED,
|
|
26074
26075
|
direction: e
|
|
26075
26076
|
});
|
|
@@ -26090,7 +26091,7 @@ class dD {
|
|
|
26090
26091
|
constructor(t, e) {
|
|
26091
26092
|
g(this, hl);
|
|
26092
26093
|
g(this, Sc, void 0);
|
|
26093
|
-
this.recvTransport = e,
|
|
26094
|
+
this.recvTransport = e, V(this, hl, oS).call(this), m(this, Sc, t);
|
|
26094
26095
|
}
|
|
26095
26096
|
get logger() {
|
|
26096
26097
|
return a(this, Sc).getValue("logger");
|
|
@@ -26219,7 +26220,7 @@ class lD {
|
|
|
26219
26220
|
throw new Error("List of producers is required");
|
|
26220
26221
|
const e = /* @__PURE__ */ new Map(), r = [];
|
|
26221
26222
|
t.forEach((d) => {
|
|
26222
|
-
const { producingPeerId: l, producerId: p, producingTransportId: f } = d, S = a(this, vc).getValue("flagsmith").hasFeature(
|
|
26223
|
+
const { producingPeerId: l, producerId: p, producingTransportId: f } = d, S = a(this, vc).getValue("flagsmith").hasFeature(Y.ENABLE_CF_SIMULCAST) ? {
|
|
26223
26224
|
simulcast: {
|
|
26224
26225
|
preferredRid: "h",
|
|
26225
26226
|
priorityOrdering: "asciibetical",
|
|
@@ -26444,9 +26445,9 @@ class uD extends cD {
|
|
|
26444
26445
|
try {
|
|
26445
26446
|
const n = yield this.sendTransport.produce(
|
|
26446
26447
|
e,
|
|
26447
|
-
|
|
26448
|
+
V(this, gl, cS).bind(this)
|
|
26448
26449
|
);
|
|
26449
|
-
return (i = e.appData) != null && i.e2ee && this.context.getValue("peerSessionStore").emit(k.E2EE_ACTIVE_PRODUCER, n),
|
|
26450
|
+
return (i = e.appData) != null && i.e2ee && this.context.getValue("peerSessionStore").emit(k.E2EE_ACTIVE_PRODUCER, n), V(this, ml, dS).call(this, n, r), n;
|
|
26450
26451
|
} catch (n) {
|
|
26451
26452
|
throw this.logger.error("Failed to create producer", { error: n }), a(this, pl).producerCreationFailureCount += 1, n;
|
|
26452
26453
|
}
|
|
@@ -26476,7 +26477,7 @@ class uD extends cD {
|
|
|
26476
26477
|
}
|
|
26477
26478
|
createConsumers(e) {
|
|
26478
26479
|
return u(this, null, function* () {
|
|
26479
|
-
a(this, On) || clearTimeout(a(this, On)), m(this, ir, a(this, ir).concat(e)), yield
|
|
26480
|
+
a(this, On) || clearTimeout(a(this, On)), m(this, ir, a(this, ir).concat(e)), yield V(this, Tc, nh).call(this);
|
|
26480
26481
|
});
|
|
26481
26482
|
}
|
|
26482
26483
|
closeConsumer(e) {
|
|
@@ -26513,14 +26514,14 @@ Ki = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), Dn = /*
|
|
|
26513
26514
|
return;
|
|
26514
26515
|
const { consumers: o, failedProducers: c } = yield this.recvTransport.consume(
|
|
26515
26516
|
n,
|
|
26516
|
-
|
|
26517
|
+
V(this, fl, lS).bind(this),
|
|
26517
26518
|
a(this, ps).negotiate.bind(a(this, ps))
|
|
26518
26519
|
);
|
|
26519
|
-
if (o.forEach(
|
|
26520
|
+
if (o.forEach(V(this, Sl, uS).bind(this)), c != null && c.length) {
|
|
26520
26521
|
this.logger.error("Failed to create consumers for producers", { producers: c });
|
|
26521
26522
|
const d = c.filter(({ errorCode: l, producerId: p }) => l === "not_found_track_error" ? (this.logger.error(`Track not found for producer: ${p}. This will not be retried.`), false) : l === "backend_error" ? (this.logger.error("Unrecoverable error: backend error"), false) : true);
|
|
26522
26523
|
m(this, ir, a(this, ir).concat(d)), m(this, On, setTimeout(
|
|
26523
|
-
|
|
26524
|
+
V(this, Tc, nh).bind(this),
|
|
26524
26525
|
e
|
|
26525
26526
|
));
|
|
26526
26527
|
}
|
|
@@ -26596,7 +26597,7 @@ Ki = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), Dn = /*
|
|
|
26596
26597
|
peerId: e.peerId
|
|
26597
26598
|
});
|
|
26598
26599
|
};
|
|
26599
|
-
var Ec, _c, Pc, Nn,
|
|
26600
|
+
var Ec, _c, Pc, Nn, Ln, Vn, Cc, Rc, xn, bt, gs, ms, zi, Yi, ar, wc, vl, hS, yl, pS, Tl, gS, El, mS;
|
|
26600
26601
|
const _l = class {
|
|
26601
26602
|
constructor({
|
|
26602
26603
|
initialEnergyThreshold: t = 0.015,
|
|
@@ -26616,8 +26617,8 @@ const _l = class {
|
|
|
26616
26617
|
g(this, _c, void 0);
|
|
26617
26618
|
g(this, Pc, void 0);
|
|
26618
26619
|
g(this, Nn, void 0);
|
|
26619
|
-
g(this, Vn, void 0);
|
|
26620
26620
|
g(this, Ln, void 0);
|
|
26621
|
+
g(this, Vn, void 0);
|
|
26621
26622
|
g(this, Cc, void 0);
|
|
26622
26623
|
g(this, Rc, void 0);
|
|
26623
26624
|
g(this, xn, void 0);
|
|
@@ -26628,15 +26629,15 @@ const _l = class {
|
|
|
26628
26629
|
g(this, Yi, 0);
|
|
26629
26630
|
g(this, ar, []);
|
|
26630
26631
|
g(this, wc, void 0);
|
|
26631
|
-
m(this, Nn, t), m(this, bt, t), m(this, Ec, e), m(this, _c, r), m(this, Pc, i), m(this,
|
|
26632
|
+
m(this, Nn, t), m(this, bt, t), m(this, Ec, e), m(this, _c, r), m(this, Pc, i), m(this, Ln, n), m(this, Vn, o), m(this, Cc, c), m(this, Rc, d), m(this, xn, l), m(this, wc, p), m(this, gs, t / 2);
|
|
26632
26633
|
}
|
|
26633
26634
|
get voiceDetected() {
|
|
26634
26635
|
return a(this, ms);
|
|
26635
26636
|
}
|
|
26636
26637
|
processAudioChunk(t) {
|
|
26637
26638
|
var o, c;
|
|
26638
|
-
const e =
|
|
26639
|
-
return
|
|
26639
|
+
const e = V(o = _l, Tl, gS).call(o, t), r = V(c = _l, El, mS).call(c, t);
|
|
26640
|
+
return V(this, vl, hS).call(this, e), e / a(this, gs) > a(this, xn) && e > a(this, bt) && r > a(this, Ec) ? (m(this, zi, a(this, zi) + 1), m(this, Yi, a(this, Pc)), a(this, zi) >= a(this, _c) && m(this, ms, true)) : (m(this, zi, 0), a(this, Yi) > 0 ? m(this, Yi, a(this, Yi) - 1) : a(this, ms) && m(this, ms, false), a(this, ms) || V(this, yl, pS).call(this, e)), { energy: e, isVoice: a(this, ms) };
|
|
26640
26641
|
}
|
|
26641
26642
|
reset() {
|
|
26642
26643
|
m(this, ms, false), m(this, zi, 0), m(this, Yi, 0), m(this, bt, a(this, Nn)), m(this, gs, a(this, Nn) / 2), m(this, ar, []);
|
|
@@ -26650,8 +26651,8 @@ const _l = class {
|
|
|
26650
26651
|
}
|
|
26651
26652
|
};
|
|
26652
26653
|
let Po = _l;
|
|
26653
|
-
Ec = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), Pc = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(),
|
|
26654
|
-
a(this, ms) ? m(this, bt, a(this,
|
|
26654
|
+
Ec = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), Pc = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), Cc = /* @__PURE__ */ new WeakMap(), Rc = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ new WeakMap(), ms = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), wc = /* @__PURE__ */ new WeakMap(), vl = /* @__PURE__ */ new WeakSet(), hS = function(t) {
|
|
26655
|
+
a(this, ms) ? m(this, bt, a(this, Vn) * a(this, bt) + (1 - a(this, Vn)) * t) : m(this, bt, a(this, Ln) * a(this, bt) + (1 - a(this, Ln)) * a(this, gs)), m(this, bt, Math.max(
|
|
26655
26656
|
a(this, Cc),
|
|
26656
26657
|
Math.min(a(this, Rc), a(this, bt))
|
|
26657
26658
|
));
|
|
@@ -26741,7 +26742,7 @@ class hD {
|
|
|
26741
26742
|
}
|
|
26742
26743
|
}
|
|
26743
26744
|
const pD = 60, gD = 400;
|
|
26744
|
-
var nr, or, fs, Ic, Qi, Un, cr, Jr, $n, dr, lr,
|
|
26745
|
+
var nr, or, fs, Ic, Qi, Un, cr, Jr, $n, dr, lr, Ls, Pl, fS, Ac, oh, Cl, SS, Rl, vS;
|
|
26745
26746
|
const No = class {
|
|
26746
26747
|
constructor(t, e) {
|
|
26747
26748
|
g(this, Pl);
|
|
@@ -26757,10 +26758,10 @@ const No = class {
|
|
|
26757
26758
|
g(this, $n, void 0);
|
|
26758
26759
|
g(this, dr, void 0);
|
|
26759
26760
|
g(this, lr, void 0);
|
|
26760
|
-
g(this,
|
|
26761
|
+
g(this, Ls, void 0);
|
|
26761
26762
|
this.reportRequest = e, m(this, dr, t), m(this, Un, new Po());
|
|
26762
26763
|
const { isReactNative: r } = navigator;
|
|
26763
|
-
m(this, lr, r ? new vg(a(this, dr)) : new yg(a(this, dr))), m(this,
|
|
26764
|
+
m(this, lr, r ? new vg(a(this, dr)) : new yg(a(this, dr))), m(this, Ls, r ? hD : ud);
|
|
26764
26765
|
}
|
|
26765
26766
|
get logger() {
|
|
26766
26767
|
return a(this, dr).getValue("logger");
|
|
@@ -26772,31 +26773,31 @@ const No = class {
|
|
|
26772
26773
|
m(this, Ic, t), a(this, lr) instanceof yg && (a(this, lr).audioTrack = t);
|
|
26773
26774
|
}
|
|
26774
26775
|
start() {
|
|
26775
|
-
this.logger.debug(`AudioActivityReporter: Starting audio activity reporter: ${a(this, fs)}`), a(this, nr) && a(this,
|
|
26776
|
+
this.logger.debug(`AudioActivityReporter: Starting audio activity reporter: ${a(this, fs)}`), a(this, nr) && a(this, Ls).clearInterval(a(this, nr)), m(this, nr, a(this, Ls).setInterval(() => u(this, null, function* () {
|
|
26776
26777
|
var i;
|
|
26777
26778
|
if (!a(this, Ic) || !a(this, fs))
|
|
26778
26779
|
return;
|
|
26779
|
-
const { energy: t } =
|
|
26780
|
+
const { energy: t } = V(this, Pl, fS).call(this), e = V(i = No, Ac, oh).call(i, t);
|
|
26780
26781
|
let r = 0.9;
|
|
26781
26782
|
a(this, $n) !== e && a(this, $n) ? r = 0.9 : e ? r = 0.3 : r = 0.5, m(this, Qi, (a(this, Qi) || 0) * (1 - r) + t * r);
|
|
26782
|
-
}), pD)), a(this, or) && a(this,
|
|
26783
|
-
|
|
26783
|
+
}), pD)), a(this, or) && a(this, Ls).clearInterval(a(this, or)), m(this, or, a(this, Ls).setInterval(
|
|
26784
|
+
V(this, Cl, SS).bind(this),
|
|
26784
26785
|
gD
|
|
26785
26786
|
));
|
|
26786
26787
|
}
|
|
26787
26788
|
stop() {
|
|
26788
26789
|
try {
|
|
26789
|
-
this.logger.debug(`AudioActivityReporter: Stopping audio activity reporter: ${a(this, fs)}`), a(this, nr) && (a(this,
|
|
26790
|
+
this.logger.debug(`AudioActivityReporter: Stopping audio activity reporter: ${a(this, fs)}`), a(this, nr) && (a(this, Ls).clearInterval(a(this, nr)), m(this, nr, void 0)), a(this, or) && (a(this, Ls).clearInterval(a(this, or)), m(this, or, void 0));
|
|
26790
26791
|
} catch (t) {
|
|
26791
26792
|
}
|
|
26792
26793
|
a(this, Un).reset(), a(this, lr) instanceof vg && a(this, lr).stop();
|
|
26793
26794
|
}
|
|
26794
26795
|
};
|
|
26795
26796
|
let Co = No;
|
|
26796
|
-
nr = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), fs = /* @__PURE__ */ new WeakMap(), Ic = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(),
|
|
26797
|
+
nr = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), fs = /* @__PURE__ */ new WeakMap(), Ic = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), Ls = /* @__PURE__ */ new WeakMap(), Pl = /* @__PURE__ */ new WeakSet(), fS = function() {
|
|
26797
26798
|
var o;
|
|
26798
|
-
const { samples: t } = a(this, lr), { energy: e, isVoice: r } = a(this, Un).processAudioChunk(t), i =
|
|
26799
|
-
return a(this, dr).getValue("flagsmith").hasFeature(
|
|
26799
|
+
const { samples: t } = a(this, lr), { energy: e, isVoice: r } = a(this, Un).processAudioChunk(t), i = V(o = No, Rl, vS).call(o, e);
|
|
26800
|
+
return a(this, dr).getValue("flagsmith").hasFeature(Y.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && this.logger.debug(
|
|
26800
26801
|
`AudioActivityReporter: producer: ${a(this, fs)}, energy: ${a(this, Qi)},
|
|
26801
26802
|
slogScale: ${i}, isVoice: ${r}, minEnergy: ${a(this, cr)},
|
|
26802
26803
|
maxEnergy: ${a(this, Jr)}`
|
|
@@ -26806,13 +26807,13 @@ nr = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), fs = /*
|
|
|
26806
26807
|
}, Cl = /* @__PURE__ */ new WeakSet(), SS = function(t = a(this, Qi)) {
|
|
26807
26808
|
var r;
|
|
26808
26809
|
if (!a(this, fs) || !t) {
|
|
26809
|
-
a(this, dr).getValue("flagsmith").hasFeature(
|
|
26810
|
+
a(this, dr).getValue("flagsmith").hasFeature(Y.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && this.logger.debug(`AudioActivityReporter: No producerId or energy to report: ${a(this, fs)}`);
|
|
26810
26811
|
return;
|
|
26811
26812
|
}
|
|
26812
26813
|
const e = {
|
|
26813
26814
|
producerId: a(this, fs),
|
|
26814
26815
|
energy: Math.round(t),
|
|
26815
|
-
silent:
|
|
26816
|
+
silent: V(r = No, Ac, oh).call(r, t)
|
|
26816
26817
|
};
|
|
26817
26818
|
m(this, $n, e.silent), this.reportRequest(e);
|
|
26818
26819
|
}, Rl = /* @__PURE__ */ new WeakSet(), vS = function(t) {
|
|
@@ -26880,14 +26881,14 @@ var SD = Object.defineProperty, vD = Object.getOwnPropertyDescriptor, le = (s, t
|
|
|
26880
26881
|
return r && i && SD(t, e, i), i;
|
|
26881
26882
|
};
|
|
26882
26883
|
const Nt = ["video/VP9", "video/VP8"];
|
|
26883
|
-
var Mc, Dc, dt, G, Fn,
|
|
26884
|
+
var Mc, Dc, dt, G, Fn, Vs, yt, Xi, Zi, ea, Oc, ss, ur, Nc, ta, sa, Tt, kt, Kr, ka, wl, TS, bl, ES, kl, _S, Lc, ch, Il, Tu, PS, Al, CS, Ml, RS, Dl, wS, tt, gt, ra, Ro, Ol, bS, Nl, kS, Ll, IS;
|
|
26884
26885
|
const yS = (Tu = class {
|
|
26885
26886
|
constructor(s, t, e) {
|
|
26886
26887
|
g(this, Kr);
|
|
26887
26888
|
g(this, wl);
|
|
26888
26889
|
g(this, bl);
|
|
26889
26890
|
g(this, kl);
|
|
26890
|
-
g(this,
|
|
26891
|
+
g(this, Lc);
|
|
26891
26892
|
g(this, Al);
|
|
26892
26893
|
g(this, Ml);
|
|
26893
26894
|
g(this, Dl);
|
|
@@ -26895,7 +26896,7 @@ const yS = (Tu = class {
|
|
|
26895
26896
|
g(this, ra);
|
|
26896
26897
|
g(this, Ol);
|
|
26897
26898
|
g(this, Nl);
|
|
26898
|
-
g(this,
|
|
26899
|
+
g(this, Ll);
|
|
26899
26900
|
h(this, "context");
|
|
26900
26901
|
h(this, "authToken");
|
|
26901
26902
|
h(this, "e2ee");
|
|
@@ -26904,7 +26905,7 @@ const yS = (Tu = class {
|
|
|
26904
26905
|
g(this, dt, void 0);
|
|
26905
26906
|
g(this, G, void 0);
|
|
26906
26907
|
g(this, Fn, void 0);
|
|
26907
|
-
g(this,
|
|
26908
|
+
g(this, Vs, void 0);
|
|
26908
26909
|
g(this, yt, void 0);
|
|
26909
26910
|
g(this, Xi, void 0);
|
|
26910
26911
|
g(this, Zi, void 0);
|
|
@@ -26928,7 +26929,7 @@ const yS = (Tu = class {
|
|
|
26928
26929
|
])), m(this, sa, /* @__PURE__ */ new Map([
|
|
26929
26930
|
["video/VP9", /* @__PURE__ */ new Set()],
|
|
26930
26931
|
["video/VP8", /* @__PURE__ */ new Set()]
|
|
26931
|
-
])), m(this,
|
|
26932
|
+
])), m(this, Vs, t), m(this, dt, r), m(this, Xi, false), m(this, G, new uD(s, r, t)), m(this, yt, a(this, G).events), m(this, ur, /* @__PURE__ */ new Set()), m(this, Tt, /* @__PURE__ */ new Map()), m(this, Zi, false), m(this, ea, new Zu(s.getValue("logger"))), t === we.CF && m(this, kt, new Co(
|
|
26932
26933
|
this.context,
|
|
26933
26934
|
a(this, G).socketHandler.audioActivity.bind(a(this, G).socketHandler)
|
|
26934
26935
|
)), this.e2ee = (n = (i = s.getValue("modules").e2ee) == null ? void 0 : i.enabled) != null ? n : false, this.handleSocketEvents(), this.handleCallstatsEvents(), m(this, Oc, Ih(
|
|
@@ -26970,7 +26971,7 @@ const yS = (Tu = class {
|
|
|
26970
26971
|
a(this, Kr, ka).mediaJoinAttempted = true, m(this, Xi, true), e && this.reset();
|
|
26971
26972
|
try {
|
|
26972
26973
|
return yield a(this, ea).push(
|
|
26973
|
-
() =>
|
|
26974
|
+
() => V(this, wl, TS).call(this, s, t, r, i),
|
|
26974
26975
|
"joinRoom"
|
|
26975
26976
|
);
|
|
26976
26977
|
} catch (c) {
|
|
@@ -26982,7 +26983,7 @@ const yS = (Tu = class {
|
|
|
26982
26983
|
return u(this, arguments, function* (s, t, e = false, r = {}) {
|
|
26983
26984
|
return a(this, ss) ? a(this, ss) : (m(this, ss, (() => u(this, null, function* () {
|
|
26984
26985
|
try {
|
|
26985
|
-
yield
|
|
26986
|
+
yield V(this, Lc, ch).call(this, s, t, e, r);
|
|
26986
26987
|
} catch (o) {
|
|
26987
26988
|
throw m(this, ss, null), o;
|
|
26988
26989
|
}
|
|
@@ -27036,7 +27037,7 @@ const yS = (Tu = class {
|
|
|
27036
27037
|
}
|
|
27037
27038
|
_shareWebcam(s, t) {
|
|
27038
27039
|
return u(this, null, function* () {
|
|
27039
|
-
const e = t === "video/VP9" ? pe.WEBCAM : pe.WEBCAM_BACKUP, r =
|
|
27040
|
+
const e = t === "video/VP9" ? pe.WEBCAM : pe.WEBCAM_BACKUP, r = V(this, tt, gt).call(this, e);
|
|
27040
27041
|
if (r) {
|
|
27041
27042
|
const p = yield r;
|
|
27042
27043
|
if (a(this, G).producers.has(p)) {
|
|
@@ -27047,9 +27048,9 @@ const yS = (Tu = class {
|
|
|
27047
27048
|
}
|
|
27048
27049
|
return this._shareWebcam(s, t);
|
|
27049
27050
|
}
|
|
27050
|
-
const i = [t].concat(Nt.filter((p) => p !== t)), n =
|
|
27051
|
-
!o && this.context.getValue("flagsmith").hasFeature(c) ? (this.logger.info(`Simulcast enabled for SFU: ${a(this,
|
|
27052
|
-
|
|
27051
|
+
const i = [t].concat(Nt.filter((p) => p !== t)), n = V(this, Ll, IS).call(this, s, i), o = Gn(this.context, "disableSimulcast"), c = a(this, Vs) === we.CF ? Y.ENABLE_CF_SIMULCAST : Y.ENABLE_HIVE_SIMULCAST;
|
|
27052
|
+
!o && this.context.getValue("flagsmith").hasFeature(c) ? (this.logger.info(`Simulcast enabled for SFU: ${a(this, Vs)}`), n.encodings = r0(this.context, s)) : this.logger.info(`Simulcast disabled for webcam producer, SFU: ${a(this, Vs)}`), this.context.getValue("flagsmith").hasFeature(Y.TRACK_HINT) && (n.track.contentHint = this.context.getValue("flagsmith").getValue(
|
|
27053
|
+
Y.TRACK_HINT
|
|
27053
27054
|
));
|
|
27054
27055
|
const d = () => {
|
|
27055
27056
|
this.logger.info("Disabling video due to the producer closure"), a(this, Tt).delete(e);
|
|
@@ -27057,7 +27058,7 @@ const yS = (Tu = class {
|
|
|
27057
27058
|
n,
|
|
27058
27059
|
d
|
|
27059
27060
|
);
|
|
27060
|
-
return
|
|
27061
|
+
return V(this, ra, Ro).call(this, e, l.then((p) => p.id)), l.then((p) => p.track);
|
|
27061
27062
|
});
|
|
27062
27063
|
}
|
|
27063
27064
|
shareWebcam(s) {
|
|
@@ -27065,7 +27066,7 @@ const yS = (Tu = class {
|
|
|
27065
27066
|
var r;
|
|
27066
27067
|
if (s === void 0)
|
|
27067
27068
|
return null;
|
|
27068
|
-
const t = (r = this.context.getValue("flagsmith").getValue(
|
|
27069
|
+
const t = (r = this.context.getValue("flagsmith").getValue(Y.FORCE_VIDEO_CODEC)) == null ? void 0 : r.toString();
|
|
27069
27070
|
if (t)
|
|
27070
27071
|
return this.logger.debug(`Calling _shareWebcam with forced video codec: ${t}`), this._shareWebcam(s, t);
|
|
27071
27072
|
const e = Nt.filter((i) => {
|
|
@@ -27101,7 +27102,7 @@ const yS = (Tu = class {
|
|
|
27101
27102
|
r,
|
|
27102
27103
|
i
|
|
27103
27104
|
);
|
|
27104
|
-
|
|
27105
|
+
V(this, ra, Ro).call(this, pe.SCREENSHARE_VIDEO, n.then((c) => c.id));
|
|
27105
27106
|
let o;
|
|
27106
27107
|
if (e) {
|
|
27107
27108
|
const c = {
|
|
@@ -27113,13 +27114,13 @@ const yS = (Tu = class {
|
|
|
27113
27114
|
supportsRemoteControl: Te.isElectron()
|
|
27114
27115
|
},
|
|
27115
27116
|
stopTracks: false,
|
|
27116
|
-
zeroRtpOnPause: a(this,
|
|
27117
|
+
zeroRtpOnPause: a(this, Vs) !== we.CF
|
|
27117
27118
|
}, d = () => {
|
|
27118
27119
|
};
|
|
27119
27120
|
o = a(this, G).createProducer(
|
|
27120
27121
|
c,
|
|
27121
27122
|
d
|
|
27122
|
-
),
|
|
27123
|
+
), V(this, ra, Ro).call(this, pe.SCREENSHARE_AUDIO, o.then((l) => l.id));
|
|
27123
27124
|
}
|
|
27124
27125
|
yield Promise.all([n, o || Promise.resolve()]), this.context.getValue("callstats").screenShareStart();
|
|
27125
27126
|
});
|
|
@@ -27129,7 +27130,7 @@ const yS = (Tu = class {
|
|
|
27129
27130
|
try {
|
|
27130
27131
|
if (s === void 0)
|
|
27131
27132
|
throw new At("track undefined");
|
|
27132
|
-
const t =
|
|
27133
|
+
const t = V(this, tt, gt).call(this, pe.MIC);
|
|
27133
27134
|
if (t) {
|
|
27134
27135
|
const n = yield t;
|
|
27135
27136
|
if (a(this, G).producers.has(n)) {
|
|
@@ -27143,13 +27144,13 @@ const yS = (Tu = class {
|
|
|
27143
27144
|
yield this.shareMic(s);
|
|
27144
27145
|
return;
|
|
27145
27146
|
}
|
|
27146
|
-
const e =
|
|
27147
|
+
const e = V(this, Nl, kS).call(this, s), r = () => {
|
|
27147
27148
|
a(this, Tt).delete(pe.MIC);
|
|
27148
27149
|
}, i = a(this, G).createProducer(
|
|
27149
27150
|
e,
|
|
27150
27151
|
r
|
|
27151
27152
|
);
|
|
27152
|
-
|
|
27153
|
+
V(this, ra, Ro).call(this, pe.MIC, i.then((n) => n.id)), yield i.then((n) => {
|
|
27153
27154
|
a(this, kt) && (a(this, kt).audioTrack = n.track, a(this, kt).producerId = n.id, a(this, kt).start());
|
|
27154
27155
|
});
|
|
27155
27156
|
} catch (t) {
|
|
@@ -27160,7 +27161,7 @@ const yS = (Tu = class {
|
|
|
27160
27161
|
pauseMic() {
|
|
27161
27162
|
return u(this, null, function* () {
|
|
27162
27163
|
var r;
|
|
27163
|
-
const s = yield
|
|
27164
|
+
const s = yield V(this, tt, gt).call(this, pe.MIC), t = a(this, G).producers.get(s);
|
|
27164
27165
|
if (!t) {
|
|
27165
27166
|
this.logger.error("pauseMic::could_not_find_mic_producer");
|
|
27166
27167
|
return;
|
|
@@ -27182,7 +27183,7 @@ const yS = (Tu = class {
|
|
|
27182
27183
|
}
|
|
27183
27184
|
pauseWebcam() {
|
|
27184
27185
|
return u(this, null, function* () {
|
|
27185
|
-
const s = yield
|
|
27186
|
+
const s = yield V(this, tt, gt).call(this, pe.WEBCAM), t = yield V(this, tt, gt).call(this, pe.WEBCAM_BACKUP), e = a(this, G).producers.get(s), r = a(this, G).producers.get(t);
|
|
27186
27187
|
if (!e && !r) {
|
|
27187
27188
|
this.logger.error("pauseWebcam::could_not_find_webcam_producer");
|
|
27188
27189
|
return;
|
|
@@ -27202,7 +27203,7 @@ const yS = (Tu = class {
|
|
|
27202
27203
|
}
|
|
27203
27204
|
resumeMic() {
|
|
27204
27205
|
return u(this, null, function* () {
|
|
27205
|
-
const s = yield
|
|
27206
|
+
const s = yield V(this, tt, gt).call(this, pe.MIC), t = a(this, G).producers.get(s);
|
|
27206
27207
|
if (!t) {
|
|
27207
27208
|
this.logger.error("resumeMic::could_not_find_mic_producer");
|
|
27208
27209
|
return;
|
|
@@ -27224,7 +27225,7 @@ const yS = (Tu = class {
|
|
|
27224
27225
|
}
|
|
27225
27226
|
resumeWebcam() {
|
|
27226
27227
|
return u(this, arguments, function* (s = pe.WEBCAM) {
|
|
27227
|
-
const t = yield
|
|
27228
|
+
const t = yield V(this, tt, gt).call(this, s), e = a(this, G).producers.get(t);
|
|
27228
27229
|
if (!e) {
|
|
27229
27230
|
this.logger.error("resumeWebcam::could_not_find_webcam_producer");
|
|
27230
27231
|
return;
|
|
@@ -27246,21 +27247,21 @@ const yS = (Tu = class {
|
|
|
27246
27247
|
}
|
|
27247
27248
|
disableWebcam(s) {
|
|
27248
27249
|
return u(this, null, function* () {
|
|
27249
|
-
const t = s === "video/VP9" ? pe.WEBCAM : pe.WEBCAM_BACKUP, e = yield
|
|
27250
|
-
|
|
27250
|
+
const t = s === "video/VP9" ? pe.WEBCAM : pe.WEBCAM_BACKUP, e = yield V(this, tt, gt).call(this, t);
|
|
27251
|
+
V(this, Ol, bS).call(this, t), e && (yield a(this, G).closeProducer(e));
|
|
27251
27252
|
});
|
|
27252
27253
|
}
|
|
27253
27254
|
disableMic() {
|
|
27254
27255
|
return u(this, null, function* () {
|
|
27255
27256
|
var t;
|
|
27256
|
-
const s = yield
|
|
27257
|
+
const s = yield V(this, tt, gt).call(this, pe.MIC);
|
|
27257
27258
|
s && (yield a(this, G).closeProducer(s)), (t = a(this, kt)) == null || t.stop(), a(this, Tt).delete(pe.MIC);
|
|
27258
27259
|
});
|
|
27259
27260
|
}
|
|
27260
27261
|
disableScreenShare() {
|
|
27261
27262
|
return u(this, null, function* () {
|
|
27262
27263
|
this.logger.info("screen_sharing_stopped"), this.context.getValue("callstats").screenShareStop();
|
|
27263
|
-
const s = yield
|
|
27264
|
+
const s = yield V(this, tt, gt).call(this, pe.SCREENSHARE_VIDEO), t = yield V(this, tt, gt).call(this, pe.SCREENSHARE_AUDIO);
|
|
27264
27265
|
s && (yield a(this, G).closeProducer(s)), t && (yield a(this, G).closeProducer(t)), a(this, ur).clear(), a(this, Tt).delete(pe.SCREENSHARE_VIDEO), a(this, Tt).delete(pe.SCREENSHARE_AUDIO);
|
|
27265
27266
|
});
|
|
27266
27267
|
}
|
|
@@ -27276,11 +27277,11 @@ const yS = (Tu = class {
|
|
|
27276
27277
|
resetVideoProducers(s, t) {
|
|
27277
27278
|
return u(this, null, function* () {
|
|
27278
27279
|
if (s) {
|
|
27279
|
-
const e = yield
|
|
27280
|
+
const e = yield V(this, tt, gt).call(this, pe.WEBCAM), r = yield V(this, tt, gt).call(this, pe.WEBCAM_BACKUP);
|
|
27280
27281
|
yield a(this, G).closeProducer(e, { stopTrack: false }), yield a(this, G).closeProducer(r, { stopTrack: false }), this.shareWebcam(s);
|
|
27281
27282
|
}
|
|
27282
27283
|
if (t) {
|
|
27283
|
-
const e = yield
|
|
27284
|
+
const e = yield V(this, tt, gt).call(this, pe.SCREENSHARE_VIDEO);
|
|
27284
27285
|
yield a(this, G).closeProducer(
|
|
27285
27286
|
e,
|
|
27286
27287
|
{ stopTrack: false }
|
|
@@ -27369,7 +27370,7 @@ const yS = (Tu = class {
|
|
|
27369
27370
|
var t, e;
|
|
27370
27371
|
if (this.mediaJoined)
|
|
27371
27372
|
try {
|
|
27372
|
-
const { participantId: r, producerState: i } =
|
|
27373
|
+
const { participantId: r, producerState: i } = Vw.fromBinary(s);
|
|
27373
27374
|
if (r === this.peerId)
|
|
27374
27375
|
return;
|
|
27375
27376
|
if (i != null && i.mimeType || (i.mimeType = i.kind === xs.AUDIO ? "audio/opus" : "video/VP8"), i.kind === xs.VIDEO && !i.screenShare && ((e = (t = a(this, Fn).receiver) == null ? void 0 : t.video) == null ? void 0 : e.codecs.findIndex(
|
|
@@ -27537,17 +27538,17 @@ const yS = (Tu = class {
|
|
|
27537
27538
|
}
|
|
27538
27539
|
}
|
|
27539
27540
|
handlePeerLeaving(s) {
|
|
27540
|
-
this.context.getValue("flagsmith").hasFeature(
|
|
27541
|
+
this.context.getValue("flagsmith").hasFeature(Y.FORCE_VIDEO_CODEC) || (a(this, ta).forEach((t) => t.delete(s)), a(this, sa).forEach((t, e) => {
|
|
27541
27542
|
t.delete(s), !(t.size !== 0 || e === Nt[0]) && this.disableWebcam(e);
|
|
27542
27543
|
}));
|
|
27543
27544
|
}
|
|
27544
|
-
}, Mc = /* @__PURE__ */ new WeakMap(), Dc = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakMap(),
|
|
27545
|
+
}, Mc = /* @__PURE__ */ new WeakMap(), Dc = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakMap(), Vs = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), Oc = /* @__PURE__ */ new WeakMap(), ss = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), Nc = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), Kr = /* @__PURE__ */ new WeakSet(), ka = function() {
|
|
27545
27546
|
return this.context.getValue("connectionHandler");
|
|
27546
27547
|
}, wl = /* @__PURE__ */ new WeakSet(), TS = function(s, t, e, r) {
|
|
27547
27548
|
return u(this, null, function* () {
|
|
27548
27549
|
m(this, Dc, s);
|
|
27549
27550
|
try {
|
|
27550
|
-
return a(this, ss) ? yield a(this, ss) : yield
|
|
27551
|
+
return a(this, ss) ? yield a(this, ss) : yield V(this, Lc, ch).call(this, s, t, e, r), V(this, kl, _S).call(this, t), { roomJoined: yield V(this, bl, ES).call(this) };
|
|
27551
27552
|
} catch (i) {
|
|
27552
27553
|
return this.logger.error("Failed to complete room join", { error: i }), { roomJoined: false };
|
|
27553
27554
|
} finally {
|
|
@@ -27587,13 +27588,13 @@ const yS = (Tu = class {
|
|
|
27587
27588
|
this.logger.error("Error reporting room joined analytics", { error: t });
|
|
27588
27589
|
}
|
|
27589
27590
|
}, 0);
|
|
27590
|
-
},
|
|
27591
|
+
}, Lc = /* @__PURE__ */ new WeakSet(), ch = function(s, t, e, r) {
|
|
27591
27592
|
return u(this, null, function* () {
|
|
27592
27593
|
var i, n;
|
|
27593
27594
|
try {
|
|
27594
|
-
(n = a(this, Nc)) != null || m(this, Nc,
|
|
27595
|
-
const o =
|
|
27596
|
-
yield
|
|
27595
|
+
(n = a(this, Nc)) != null || m(this, Nc, V(i = yS, Il, PS).call(i));
|
|
27596
|
+
const o = V(this, Al, CS).call(this);
|
|
27597
|
+
yield V(this, Ml, RS).call(this, s, t, e, o), yield a(this, G).setupTransports({ send: true, recv: true }), yield V(this, Dl, wS).call(this, r);
|
|
27597
27598
|
} catch (o) {
|
|
27598
27599
|
throw this.logger.error("Failed to initialize connection", { error: o }), o;
|
|
27599
27600
|
}
|
|
@@ -27606,7 +27607,7 @@ const yS = (Tu = class {
|
|
|
27606
27607
|
return { latitude: t, longitude: e };
|
|
27607
27608
|
}, Al = /* @__PURE__ */ new WeakSet(), CS = function() {
|
|
27608
27609
|
var e;
|
|
27609
|
-
const s = (e = this.context.getValue("flagsmith").getValue(
|
|
27610
|
+
const s = (e = this.context.getValue("flagsmith").getValue(Y.FORCE_VIDEO_CODEC)) == null ? void 0 : e.toString(), t = Z0(s);
|
|
27610
27611
|
return m(this, Fn, t), t;
|
|
27611
27612
|
}, Ml = /* @__PURE__ */ new WeakSet(), RS = function(s, t, e, r) {
|
|
27612
27613
|
return u(this, null, function* () {
|
|
@@ -27634,14 +27635,14 @@ const yS = (Tu = class {
|
|
|
27634
27635
|
{
|
|
27635
27636
|
delayTime: 1e3,
|
|
27636
27637
|
strategy: "exponential",
|
|
27637
|
-
maxRetryCount: this.context.getValue("flagsmith").hasFeature(
|
|
27638
|
+
maxRetryCount: this.context.getValue("flagsmith").hasFeature(Y.ENABLE_HIVE_INFINITE_RETRIES) ? 1 / 0 : 3
|
|
27638
27639
|
}
|
|
27639
27640
|
);
|
|
27640
27641
|
});
|
|
27641
27642
|
}, Dl = /* @__PURE__ */ new WeakSet(), wS = function(s) {
|
|
27642
27643
|
return u(this, null, function* () {
|
|
27643
|
-
if (!(a(this,
|
|
27644
|
-
|
|
27644
|
+
if (!(a(this, Vs) === we.HIVE || !this.context.getValue("flagsmith").hasFeature(
|
|
27645
|
+
Y.PRECREATE_PRODUCERS
|
|
27645
27646
|
) || !s))
|
|
27646
27647
|
try {
|
|
27647
27648
|
const e = [];
|
|
@@ -27677,9 +27678,9 @@ const yS = (Tu = class {
|
|
|
27677
27678
|
e2ee: this.e2ee
|
|
27678
27679
|
},
|
|
27679
27680
|
stopTracks: false,
|
|
27680
|
-
zeroRtpOnPause: a(this,
|
|
27681
|
+
zeroRtpOnPause: a(this, Vs) !== we.CF
|
|
27681
27682
|
};
|
|
27682
|
-
},
|
|
27683
|
+
}, Ll = /* @__PURE__ */ new WeakSet(), IS = function(s, t) {
|
|
27683
27684
|
return {
|
|
27684
27685
|
track: s,
|
|
27685
27686
|
codecOptions: t ? t.map((e) => ({
|
|
@@ -27800,7 +27801,7 @@ var yD = Object.defineProperty, TD = Object.getOwnPropertyDescriptor, _a = (s, t
|
|
|
27800
27801
|
for (var i = r > 1 ? void 0 : r ? TD(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
27801
27802
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
27802
27803
|
return r && i && yD(t, e, i), i;
|
|
27803
|
-
}, ia, Ss, te, Et,
|
|
27804
|
+
}, ia, Ss, te, Et, Vt, qg;
|
|
27804
27805
|
const DS = (qg = class {
|
|
27805
27806
|
constructor(s, t, e, r) {
|
|
27806
27807
|
g(this, Et);
|
|
@@ -27838,7 +27839,7 @@ const DS = (qg = class {
|
|
|
27838
27839
|
s.setValue("self", d);
|
|
27839
27840
|
const l = s.getValue("logger");
|
|
27840
27841
|
if (navigator.product !== "ReactNative") {
|
|
27841
|
-
const p = !s.getValue("flagsmith").hasFeature(
|
|
27842
|
+
const p = !s.getValue("flagsmith").hasFeature(Y.PRECALL_BANDWIDTH_TEST);
|
|
27842
27843
|
setTimeout(() => u(this, null, function* () {
|
|
27843
27844
|
const f = yield d.getAllDevices();
|
|
27844
27845
|
l.info("populated_full_device_list", {
|
|
@@ -27879,20 +27880,20 @@ const DS = (qg = class {
|
|
|
27879
27880
|
} = this.self;
|
|
27880
27881
|
if (e.canProduceAudio === j.Allowed && r)
|
|
27881
27882
|
try {
|
|
27882
|
-
yield a(this, Et,
|
|
27883
|
+
yield a(this, Et, Vt).shareMic(s), this.self.audioEnabled || a(this, Et, Vt).pauseMic();
|
|
27883
27884
|
} catch (d) {
|
|
27884
27885
|
this.self.disableAudio();
|
|
27885
27886
|
}
|
|
27886
27887
|
if (e.canProduceVideo === j.Allowed && i)
|
|
27887
27888
|
try {
|
|
27888
|
-
const d = yield a(this, Et,
|
|
27889
|
-
d && d.id !== t.id && a(this, te).getValue("flagsmith").hasFeature(
|
|
27889
|
+
const d = yield a(this, Et, Vt).shareWebcam(t);
|
|
27890
|
+
d && d.id !== t.id && a(this, te).getValue("flagsmith").hasFeature(Y.EXP_RESHARE) && (yield a(this, Et, Vt).shareWebcam(d)), this.self.videoEnabled || a(this, Et, Vt).pauseWebcam();
|
|
27890
27891
|
} catch (d) {
|
|
27891
27892
|
this.self.disableVideo();
|
|
27892
27893
|
}
|
|
27893
27894
|
if (e.canProduceScreenshare === j.Allowed && n)
|
|
27894
27895
|
try {
|
|
27895
|
-
yield (c = a(this, Et,
|
|
27896
|
+
yield (c = a(this, Et, Vt)) == null ? void 0 : c.shareScreen({
|
|
27896
27897
|
video: o.video,
|
|
27897
27898
|
audio: o.audio
|
|
27898
27899
|
});
|
|
@@ -27926,7 +27927,7 @@ const DS = (qg = class {
|
|
|
27926
27927
|
}
|
|
27927
27928
|
resetSelf(s) {
|
|
27928
27929
|
return u(this, null, function* () {
|
|
27929
|
-
a(this, te).getValue("callstats").callEnded(), a(this, Et,
|
|
27930
|
+
a(this, te).getValue("callstats").callEnded(), a(this, Et, Vt).reset(), s && (yield this.joinRoom(s));
|
|
27930
27931
|
});
|
|
27931
27932
|
}
|
|
27932
27933
|
setupEvents() {
|
|
@@ -27944,7 +27945,7 @@ const DS = (qg = class {
|
|
|
27944
27945
|
if (this.self.roomState === "disconnected")
|
|
27945
27946
|
return;
|
|
27946
27947
|
let { peerId: t } = this;
|
|
27947
|
-
s && a(this, te).getValue("flagsmith").hasFeature(
|
|
27948
|
+
s && a(this, te).getValue("flagsmith").hasFeature(Y.REFRESH_ID_ON_DISCONNECTION) && (t = v4()), a(this, ia).updateURL(t), a(this, te).getValue("telemetry").resetPeerId(t), lt().setHeader("dyte-tracing-id", t), mr.remapContext(t, a(this, te)), this.self.roomState = "disconnected", this.self.emit("roomLeft", { state: "disconnected" });
|
|
27948
27949
|
}), a(this, te).getValue("peerSessionStore").on(k.SOCKET_SERVICE_FAILED, () => {
|
|
27949
27950
|
this.self.roomState = "failed", this.self.emit("roomLeft", { state: "failed" });
|
|
27950
27951
|
}), a(this, Ss).on(x.waitingRoomRequestAccepted, () => {
|
|
@@ -28044,7 +28045,7 @@ const DS = (qg = class {
|
|
|
28044
28045
|
peerId: t
|
|
28045
28046
|
});
|
|
28046
28047
|
}
|
|
28047
|
-
const { canProduceAudio: l, canProduceVideo: p, canProduceScreenshare: f } = this.self.permissions, { roomJoined: S } = (d = yield (c = a(this, Et,
|
|
28048
|
+
const { canProduceAudio: l, canProduceVideo: p, canProduceScreenshare: f } = this.self.permissions, { roomJoined: S } = (d = yield (c = a(this, Et, Vt)) == null ? void 0 : c.joinRoom(
|
|
28048
28049
|
this.self.name,
|
|
28049
28050
|
r,
|
|
28050
28051
|
s,
|
|
@@ -28066,7 +28067,7 @@ const DS = (qg = class {
|
|
|
28066
28067
|
leaveMediaRoom(s) {
|
|
28067
28068
|
return u(this, null, function* () {
|
|
28068
28069
|
const t = a(this, te).getValue("viewType");
|
|
28069
|
-
s !== "connected-meeting" && (yield this.cleanupSelf()), !(s === "stageLeft" && t === Mt.Webinar) && a(this, Et,
|
|
28070
|
+
s !== "connected-meeting" && (yield this.cleanupSelf()), !(s === "stageLeft" && t === Mt.Webinar) && a(this, Et, Vt) && (a(this, Et, Vt).mediaJoined && s !== "disconnected" && (yield a(this, Et, Vt).leaveRoom()), !(s === "stageLeft" && t === Mt.Livestream) && (a(this, Et, Vt).mediaJoined = false));
|
|
28070
28071
|
});
|
|
28071
28072
|
}
|
|
28072
28073
|
cleanupSelf() {
|
|
@@ -28074,7 +28075,7 @@ const DS = (qg = class {
|
|
|
28074
28075
|
yield this.self.disableAudio(), yield this.self.disableVideo(), yield this.self.disableScreenShare(), this.self.cleanUpTracks(), this.self.destructMediaHandler(), navigator.isReactNative || this.self.removeDocumentEventListeners();
|
|
28075
28076
|
});
|
|
28076
28077
|
}
|
|
28077
|
-
}, ia = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakSet(),
|
|
28078
|
+
}, ia = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakSet(), Vt = function() {
|
|
28078
28079
|
return a(this, te).getValue("roomNodeClient");
|
|
28079
28080
|
}, qg);
|
|
28080
28081
|
let ai = DS;
|
|
@@ -28099,15 +28100,15 @@ _a([
|
|
|
28099
28100
|
_a([
|
|
28100
28101
|
E.trace("SelfController.init")
|
|
28101
28102
|
], ai, "init", 1);
|
|
28102
|
-
var
|
|
28103
|
+
var Vc;
|
|
28103
28104
|
class ED {
|
|
28104
28105
|
constructor(t) {
|
|
28105
|
-
g(this,
|
|
28106
|
-
m(this,
|
|
28106
|
+
g(this, Vc, void 0);
|
|
28107
|
+
m(this, Vc, t);
|
|
28107
28108
|
}
|
|
28108
28109
|
on(t, e) {
|
|
28109
28110
|
let r;
|
|
28110
|
-
t === x.roomPeerCount ? r = zp.fromBinary.bind(zp) : r = ng.fromBinary.bind(ng), a(this,
|
|
28111
|
+
t === x.roomPeerCount ? r = zp.fromBinary.bind(zp) : r = ng.fromBinary.bind(ng), a(this, Vc).on(t, ({ payload: i }) => {
|
|
28111
28112
|
if (t === x.roomPeerCount && !i)
|
|
28112
28113
|
return;
|
|
28113
28114
|
const n = r(i);
|
|
@@ -28115,7 +28116,7 @@ class ED {
|
|
|
28115
28116
|
});
|
|
28116
28117
|
}
|
|
28117
28118
|
}
|
|
28118
|
-
|
|
28119
|
+
Vc = /* @__PURE__ */ new WeakMap();
|
|
28119
28120
|
var xc, Uc;
|
|
28120
28121
|
class _D {
|
|
28121
28122
|
constructor(t, e) {
|
|
@@ -28502,7 +28503,7 @@ class OS {
|
|
|
28502
28503
|
});
|
|
28503
28504
|
}), this.socket.sendMessagePromise(
|
|
28504
28505
|
fd.updateUserPreset,
|
|
28505
|
-
|
|
28506
|
+
Lk.toBinary(r)
|
|
28506
28507
|
);
|
|
28507
28508
|
});
|
|
28508
28509
|
}
|
|
@@ -28755,7 +28756,7 @@ class ID {
|
|
|
28755
28756
|
removePlugin(t) {
|
|
28756
28757
|
a(this, Ge).sendMessage(
|
|
28757
28758
|
W.removePlugin,
|
|
28758
|
-
|
|
28759
|
+
VI.toBinary({ pluginId: t, staggered: false })
|
|
28759
28760
|
);
|
|
28760
28761
|
}
|
|
28761
28762
|
getActivePlugins() {
|
|
@@ -28982,11 +28983,11 @@ de.prototype.setMaxListeners = function(s) {
|
|
|
28982
28983
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + s + ".");
|
|
28983
28984
|
return this._maxListeners = s, this;
|
|
28984
28985
|
};
|
|
28985
|
-
function
|
|
28986
|
+
function LS(s) {
|
|
28986
28987
|
return s._maxListeners === void 0 ? de.defaultMaxListeners : s._maxListeners;
|
|
28987
28988
|
}
|
|
28988
28989
|
de.prototype.getMaxListeners = function() {
|
|
28989
|
-
return
|
|
28990
|
+
return LS(this);
|
|
28990
28991
|
};
|
|
28991
28992
|
de.prototype.emit = function(s) {
|
|
28992
28993
|
for (var t = [], e = 1; e < arguments.length; e++)
|
|
@@ -29013,7 +29014,7 @@ de.prototype.emit = function(s) {
|
|
|
29013
29014
|
Tg(l[e], this, t);
|
|
29014
29015
|
return true;
|
|
29015
29016
|
};
|
|
29016
|
-
function
|
|
29017
|
+
function VS(s, t, e, r) {
|
|
29017
29018
|
var i, n, o;
|
|
29018
29019
|
if (Xl(e), n = s._events, n === void 0 ? (n = s._events = /* @__PURE__ */ Object.create(null), s._eventsCount = 0) : (n.newListener !== void 0 && (s.emit(
|
|
29019
29020
|
"newListener",
|
|
@@ -29021,7 +29022,7 @@ function LS(s, t, e, r) {
|
|
|
29021
29022
|
e.listener ? e.listener : e
|
|
29022
29023
|
), n = s._events), o = n[t]), o === void 0)
|
|
29023
29024
|
o = n[t] = e, ++s._eventsCount;
|
|
29024
|
-
else if (typeof o == "function" ? o = n[t] = r ? [e, o] : [o, e] : r ? o.unshift(e) : o.push(e), i =
|
|
29025
|
+
else if (typeof o == "function" ? o = n[t] = r ? [e, o] : [o, e] : r ? o.unshift(e) : o.push(e), i = LS(s), i > 0 && o.length > i && !o.warned) {
|
|
29025
29026
|
o.warned = true;
|
|
29026
29027
|
var c = new Error("Possible EventEmitter memory leak detected. " + o.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
29027
29028
|
c.name = "MaxListenersExceededWarning", c.emitter = s, c.type = t, c.count = o.length, ND(c);
|
|
@@ -29029,18 +29030,18 @@ function LS(s, t, e, r) {
|
|
|
29029
29030
|
return s;
|
|
29030
29031
|
}
|
|
29031
29032
|
de.prototype.addListener = function(s, t) {
|
|
29032
|
-
return
|
|
29033
|
+
return VS(this, s, t, false);
|
|
29033
29034
|
};
|
|
29034
29035
|
de.prototype.on = de.prototype.addListener;
|
|
29035
29036
|
de.prototype.prependListener = function(s, t) {
|
|
29036
|
-
return
|
|
29037
|
+
return VS(this, s, t, true);
|
|
29037
29038
|
};
|
|
29038
|
-
function
|
|
29039
|
+
function LD() {
|
|
29039
29040
|
if (!this.fired)
|
|
29040
29041
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = true, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
29041
29042
|
}
|
|
29042
29043
|
function xS(s, t, e) {
|
|
29043
|
-
var r = { fired: false, wrapFn: void 0, target: s, type: t, listener: e }, i =
|
|
29044
|
+
var r = { fired: false, wrapFn: void 0, target: s, type: t, listener: e }, i = LD.bind(r);
|
|
29044
29045
|
return i.listener = e, r.wrapFn = i, i;
|
|
29045
29046
|
}
|
|
29046
29047
|
de.prototype.once = function(s, t) {
|
|
@@ -29065,7 +29066,7 @@ de.prototype.removeListener = function(s, t) {
|
|
|
29065
29066
|
}
|
|
29066
29067
|
if (i < 0)
|
|
29067
29068
|
return this;
|
|
29068
|
-
i === 0 ? e.shift() :
|
|
29069
|
+
i === 0 ? e.shift() : VD(e, i), e.length === 1 && (r[s] = e[0]), r.removeListener !== void 0 && this.emit("removeListener", s, o || t);
|
|
29069
29070
|
}
|
|
29070
29071
|
return this;
|
|
29071
29072
|
};
|
|
@@ -29125,7 +29126,7 @@ function FS(s, t) {
|
|
|
29125
29126
|
e[r] = s[r];
|
|
29126
29127
|
return e;
|
|
29127
29128
|
}
|
|
29128
|
-
function
|
|
29129
|
+
function VD(s, t) {
|
|
29129
29130
|
for (; t + 1 < s.length; t++)
|
|
29130
29131
|
s[t] = s[t + 1];
|
|
29131
29132
|
s.pop();
|
|
@@ -29481,7 +29482,7 @@ const JS = (jg = class {
|
|
|
29481
29482
|
var n;
|
|
29482
29483
|
if (!t || !e || !r)
|
|
29483
29484
|
throw new R("peerId, meetingId, or authToken can not be empty", "0404");
|
|
29484
|
-
m(this, rs, void 0), m(this, st, s), this.capabilities = i, this.roomName = e, this.authToken = r, m(this, zr,
|
|
29485
|
+
m(this, rs, void 0), m(this, st, s), this.capabilities = i, this.roomName = e, this.authToken = r, m(this, zr, V(this, Fc, mh).call(this, t)), m(this, Pe, new WD(a(this, zr), {
|
|
29485
29486
|
autoReconnect: true,
|
|
29486
29487
|
disconnectOnPingTimeout: (n = i.includes("PING")) != null ? n : false,
|
|
29487
29488
|
queueOnDisconnect: true,
|
|
@@ -29505,7 +29506,7 @@ const JS = (jg = class {
|
|
|
29505
29506
|
return a(this, st).getValue("peerId");
|
|
29506
29507
|
}
|
|
29507
29508
|
updateURL(s) {
|
|
29508
|
-
s !== this.peerId && (m(this, zr,
|
|
29509
|
+
s !== this.peerId && (m(this, zr, V(this, Fc, mh).call(this, s)), this.logger.debug("SocketService:: Connection URL updated.")), a(this, Pe).updateURL(a(this, zr));
|
|
29509
29510
|
}
|
|
29510
29511
|
static getSocketEdgeDomain(s) {
|
|
29511
29512
|
return da({ servicePrefix: "socket-edge", baseURI: s });
|
|
@@ -29540,7 +29541,7 @@ const JS = (jg = class {
|
|
|
29540
29541
|
const r = {};
|
|
29541
29542
|
return a(this, st).getValue("telemetry").injectContext(r), a(this, Pe).send(
|
|
29542
29543
|
s,
|
|
29543
|
-
e != null ? e :
|
|
29544
|
+
e != null ? e : V(this, Hc, fh).call(this),
|
|
29544
29545
|
t,
|
|
29545
29546
|
new TextEncoder().encode(JSON.stringify(r))
|
|
29546
29547
|
);
|
|
@@ -29573,7 +29574,7 @@ const JS = (jg = class {
|
|
|
29573
29574
|
Ts.errorResponse,
|
|
29574
29575
|
P
|
|
29575
29576
|
);
|
|
29576
|
-
}, l = r != null ? r :
|
|
29577
|
+
}, l = r != null ? r : V(this, Hc, fh).call(this), p = {};
|
|
29577
29578
|
a(this, st).getValue("telemetry").injectContext(p);
|
|
29578
29579
|
const S = ({
|
|
29579
29580
|
id: _,
|
|
@@ -30236,7 +30237,7 @@ const Ma = class {
|
|
|
30236
30237
|
U,
|
|
30237
30238
|
ie.self,
|
|
30238
30239
|
F.participants
|
|
30239
|
-
)), c.internals && (N = yield
|
|
30240
|
+
)), c.internals && (N = yield Vh.init(t)), c.livestream && n.viewType === Mt.Livestream && t.getValue("flagsmith").hasFeature(Y.LIVESTREAM) && ($ = new Bf(
|
|
30240
30241
|
t,
|
|
30241
30242
|
ie.self,
|
|
30242
30243
|
C
|
|
@@ -30281,7 +30282,7 @@ const Ma = class {
|
|
|
30281
30282
|
}
|
|
30282
30283
|
}
|
|
30283
30284
|
const b = {
|
|
30284
|
-
storesManager: new
|
|
30285
|
+
storesManager: new L0(t, y),
|
|
30285
30286
|
pollController: _,
|
|
30286
30287
|
selfController: ie,
|
|
30287
30288
|
metaController: Me,
|
|
@@ -30393,10 +30394,10 @@ function aO(s, t) {
|
|
|
30393
30394
|
throw new R("Invalid auth token", "0004");
|
|
30394
30395
|
}
|
|
30395
30396
|
}
|
|
30396
|
-
var Yr, aa, na, Bc,
|
|
30397
|
+
var Yr, aa, na, Bc, Vl, YS;
|
|
30397
30398
|
class nO {
|
|
30398
30399
|
constructor() {
|
|
30399
|
-
g(this,
|
|
30400
|
+
g(this, Vl);
|
|
30400
30401
|
g(this, Yr, new Audio());
|
|
30401
30402
|
g(this, aa, new MediaStream());
|
|
30402
30403
|
g(this, na, /* @__PURE__ */ new Map());
|
|
@@ -30420,7 +30421,7 @@ class nO {
|
|
|
30420
30421
|
play() {
|
|
30421
30422
|
return u(this, null, function* () {
|
|
30422
30423
|
return a(this, Yr).srcObject = a(this, aa), a(this, Yr).play().catch((t) => {
|
|
30423
|
-
|
|
30424
|
+
V(this, Vl, YS).call(this, t);
|
|
30424
30425
|
});
|
|
30425
30426
|
});
|
|
30426
30427
|
}
|
|
@@ -30428,7 +30429,7 @@ class nO {
|
|
|
30428
30429
|
m(this, Bc, t);
|
|
30429
30430
|
}
|
|
30430
30431
|
}
|
|
30431
|
-
Yr = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), Bc = /* @__PURE__ */ new WeakMap(),
|
|
30432
|
+
Yr = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), Bc = /* @__PURE__ */ new WeakMap(), Vl = /* @__PURE__ */ new WeakSet(), YS = function(t) {
|
|
30432
30433
|
var e;
|
|
30433
30434
|
(e = a(this, Bc)) == null || e.call(this, t);
|
|
30434
30435
|
};
|
|
@@ -30505,7 +30506,7 @@ let ri = (Wg = class {
|
|
|
30505
30506
|
video: true
|
|
30506
30507
|
};
|
|
30507
30508
|
return n.setValue("options", e), n.setValue("peerId", t), n.setValue("modules", o), n.setValue("sdkName", "web-core"), n.setValue("meetingId", r), n.setValue("apiBase", i.apiBase), n.setValue("baseURI", i.baseURI), n.setValue("userId", i.participantId), n.setValue("organizationId", i.orgId), n.setValue("authToken", e.authToken), n.setValue("overrides", (d = e.overrides) != null ? d : {}), n.setValue("env", PC({ baseURI: i.baseURI })), n.setValue("defaults", c), n.setValue("onError", e.onError || (() => {
|
|
30508
|
-
})), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.
|
|
30509
|
+
})), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.2.0-staging.2"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new oO()), n;
|
|
30509
30510
|
}
|
|
30510
30511
|
join() {
|
|
30511
30512
|
return u(this, null, function* () {
|