@cloudflare/realtimekit-react 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/index.cjs.js +9 -9
- package/dist/index.es.js +533 -532
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -3184,17 +3184,17 @@ class ReflectionBinaryReader {
|
|
|
3184
3184
|
case "scalar":
|
|
3185
3185
|
case "enum":
|
|
3186
3186
|
let T = field.kind == "enum" ? ScalarType.INT32 : field.T;
|
|
3187
|
-
let
|
|
3187
|
+
let L = field.kind == "scalar" ? field.L : void 0;
|
|
3188
3188
|
if (repeated) {
|
|
3189
3189
|
let arr = target[localName];
|
|
3190
3190
|
if (wireType == WireType.LengthDelimited && T != ScalarType.STRING && T != ScalarType.BYTES) {
|
|
3191
3191
|
let e = reader.uint32() + reader.pos;
|
|
3192
3192
|
while (reader.pos < e)
|
|
3193
|
-
arr.push(this.scalar(reader, T,
|
|
3193
|
+
arr.push(this.scalar(reader, T, L));
|
|
3194
3194
|
} else
|
|
3195
|
-
arr.push(this.scalar(reader, T,
|
|
3195
|
+
arr.push(this.scalar(reader, T, L));
|
|
3196
3196
|
} else
|
|
3197
|
-
target[localName] = this.scalar(reader, T,
|
|
3197
|
+
target[localName] = this.scalar(reader, T, L);
|
|
3198
3198
|
break;
|
|
3199
3199
|
case "message":
|
|
3200
3200
|
if (repeated) {
|
|
@@ -4514,7 +4514,7 @@ var a = (s, t, e) => (au(s, t, "read from private field"), e ? e.call(s) : t.get
|
|
|
4514
4514
|
throw TypeError("Cannot add the same private member more than once");
|
|
4515
4515
|
t instanceof WeakSet ? t.add(s) : t.set(s, e);
|
|
4516
4516
|
}, m = (s, t, e, r) => (au(s, t, "write to private field"), r ? r.call(s, e) : t.set(s, e), e);
|
|
4517
|
-
var
|
|
4517
|
+
var V = (s, t, e) => (au(s, t, "access private method"), e), tp = (s, t, e) => tv(ev(s), e, t);
|
|
4518
4518
|
var u = (s, t, e) => new Promise((r, i) => {
|
|
4519
4519
|
var n = (d) => {
|
|
4520
4520
|
try {
|
|
@@ -4575,9 +4575,9 @@ const av = (s) => {
|
|
|
4575
4575
|
}), window.addEventListener("online", () => {
|
|
4576
4576
|
s.info("window::online");
|
|
4577
4577
|
}));
|
|
4578
|
-
},
|
|
4579
|
-
Chrome:
|
|
4580
|
-
Chromium:
|
|
4578
|
+
}, Lo = "chrome", zg = "opera", Yg = "firefox", Qg = "iexplorer", Xg = "safari", Zg = "nwjs", em = "electron", tm = "react-native", Sh = "unknown", wd = {
|
|
4579
|
+
Chrome: Lo,
|
|
4580
|
+
Chromium: Lo,
|
|
4581
4581
|
Opera: zg,
|
|
4582
4582
|
Firefox: Yg,
|
|
4583
4583
|
"Internet Explorer": Qg,
|
|
@@ -4591,9 +4591,9 @@ function nv() {
|
|
|
4591
4591
|
if (s.match(/Chrome/) && !s.match(/Edge/))
|
|
4592
4592
|
if (s.match(/Edg(A?)/)) {
|
|
4593
4593
|
const e = s.match(/Chrome\/([\d.]+)/)[1];
|
|
4594
|
-
Number.parseInt(e, 10) > 72 && (t.name =
|
|
4594
|
+
Number.parseInt(e, 10) > 72 && (t.name = Lo, t.version = e);
|
|
4595
4595
|
} else
|
|
4596
|
-
t.name =
|
|
4596
|
+
t.name = Lo, t.version = s.match(/Chrome\/([\d.]+)/)[1];
|
|
4597
4597
|
return t;
|
|
4598
4598
|
}
|
|
4599
4599
|
function ov() {
|
|
@@ -4670,7 +4670,7 @@ class uv {
|
|
|
4670
4670
|
return this._name;
|
|
4671
4671
|
}
|
|
4672
4672
|
isChrome() {
|
|
4673
|
-
return this._name ===
|
|
4673
|
+
return this._name === Lo;
|
|
4674
4674
|
}
|
|
4675
4675
|
isOpera() {
|
|
4676
4676
|
return this._name === zg;
|
|
@@ -4825,10 +4825,10 @@ var ut = {}, pv = {
|
|
|
4825
4825
|
set exports(s) {
|
|
4826
4826
|
ut = s;
|
|
4827
4827
|
}
|
|
4828
|
-
},
|
|
4828
|
+
}, Va = typeof Reflect == "object" ? Reflect : null, sp = Va && typeof Va.apply == "function" ? Va.apply : function(t, e, r) {
|
|
4829
4829
|
return Function.prototype.apply.call(t, e, r);
|
|
4830
4830
|
}, hd;
|
|
4831
|
-
|
|
4831
|
+
Va && typeof Va.ownKeys == "function" ? hd = Va.ownKeys : Object.getOwnPropertySymbols ? hd = function(t) {
|
|
4832
4832
|
return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t));
|
|
4833
4833
|
} : hd = function(t) {
|
|
4834
4834
|
return Object.getOwnPropertyNames(t);
|
|
@@ -5549,7 +5549,7 @@ class Nv extends vh {
|
|
|
5549
5549
|
super(t, Sr.isReflexive);
|
|
5550
5550
|
}
|
|
5551
5551
|
}
|
|
5552
|
-
class
|
|
5552
|
+
class Lv {
|
|
5553
5553
|
constructor() {
|
|
5554
5554
|
h(this, "ipInformation", null);
|
|
5555
5555
|
}
|
|
@@ -5581,7 +5581,7 @@ class Vv {
|
|
|
5581
5581
|
this.ipInformation = null;
|
|
5582
5582
|
}
|
|
5583
5583
|
}
|
|
5584
|
-
const yh = new
|
|
5584
|
+
const yh = new Lv(), np = [
|
|
5585
5585
|
{
|
|
5586
5586
|
urls: "turn:turn.dyte.in:443?transport=tcp",
|
|
5587
5587
|
username: "dyte",
|
|
@@ -5872,7 +5872,7 @@ class Pm extends ut {
|
|
|
5872
5872
|
outboundVideoRtpId: [],
|
|
5873
5873
|
outboundAudioRtpId: []
|
|
5874
5874
|
});
|
|
5875
|
-
const
|
|
5875
|
+
const L = {
|
|
5876
5876
|
bytesSent: y.bytesSent,
|
|
5877
5877
|
packetsSent: y.packetsSent,
|
|
5878
5878
|
nackCount: y.nackCount,
|
|
@@ -5906,13 +5906,13 @@ class Pm extends ut {
|
|
|
5906
5906
|
retransmittedPacketsSent: b.retransmittedPacketsSent,
|
|
5907
5907
|
scalabilityMode: b.scalabilityMode,
|
|
5908
5908
|
powerEfficientEncoder: b.powerEfficientEncoder
|
|
5909
|
-
},
|
|
5909
|
+
}, L);
|
|
5910
5910
|
d.outboundVideoRtp.set(I.id, $e), d.producerStreamMap.get(C).outboundVideoRtpId.push(I.id), this.processOutboundProducerVideoStats(C, ie, $e);
|
|
5911
5911
|
} else if (y.mediaType === "audio" || y.kind === "audio") {
|
|
5912
5912
|
const b = y, $e = D({
|
|
5913
5913
|
retransmittedBytesSent: b.retransmittedBytesSent,
|
|
5914
5914
|
retransmittedPacketsSent: b.retransmittedPacketsSent
|
|
5915
|
-
},
|
|
5915
|
+
}, L);
|
|
5916
5916
|
d.outboundAudioRtp.set(I.id, $e), d.producerStreamMap.get(C).outboundAudioRtpId.push(I.id), this.processOutboundProducerAudioStats(C, ie, $e);
|
|
5917
5917
|
}
|
|
5918
5918
|
} else
|
|
@@ -5962,28 +5962,28 @@ class Pm extends ut {
|
|
|
5962
5962
|
jitterBufferTargetDelay: y.jitterBufferTargetDelay || 0
|
|
5963
5963
|
};
|
|
5964
5964
|
if (y.mediaType === "video" || y.kind === "video") {
|
|
5965
|
-
const
|
|
5966
|
-
frameHeight:
|
|
5967
|
-
frameWidth:
|
|
5968
|
-
framesDecoded:
|
|
5969
|
-
framesDropped:
|
|
5970
|
-
framesPerSecond:
|
|
5971
|
-
framesReceived:
|
|
5972
|
-
keyFramesDecoded:
|
|
5973
|
-
firCount:
|
|
5974
|
-
decoderImplementation:
|
|
5975
|
-
pliCount:
|
|
5976
|
-
totalProcessingDelay:
|
|
5977
|
-
qpSum:
|
|
5978
|
-
totalAssemblyTime:
|
|
5979
|
-
totalDecodeTime:
|
|
5980
|
-
totalFreezesDuration:
|
|
5981
|
-
totalInterFrameDelay:
|
|
5982
|
-
totalPausesDuration:
|
|
5983
|
-
totalSquaredInterFrameDelay:
|
|
5984
|
-
freezeCount:
|
|
5985
|
-
pauseCount:
|
|
5986
|
-
powerEfficientDecoder:
|
|
5965
|
+
const L = y, b = D({
|
|
5966
|
+
frameHeight: L.frameHeight,
|
|
5967
|
+
frameWidth: L.frameWidth,
|
|
5968
|
+
framesDecoded: L.framesDecoded,
|
|
5969
|
+
framesDropped: L.framesDropped,
|
|
5970
|
+
framesPerSecond: L.framesPerSecond,
|
|
5971
|
+
framesReceived: L.framesReceived,
|
|
5972
|
+
keyFramesDecoded: L.keyFramesDecoded,
|
|
5973
|
+
firCount: L.firCount,
|
|
5974
|
+
decoderImplementation: L.decoderImplementation,
|
|
5975
|
+
pliCount: L.pliCount,
|
|
5976
|
+
totalProcessingDelay: L.totalProcessingDelay,
|
|
5977
|
+
qpSum: L.qpSum || 0,
|
|
5978
|
+
totalAssemblyTime: L.totalAssemblyTime || 0,
|
|
5979
|
+
totalDecodeTime: L.totalDecodeTime || 0,
|
|
5980
|
+
totalFreezesDuration: L.totalFreezesDuration || 0,
|
|
5981
|
+
totalInterFrameDelay: L.totalInterFrameDelay || 0,
|
|
5982
|
+
totalPausesDuration: L.totalPausesDuration || 0,
|
|
5983
|
+
totalSquaredInterFrameDelay: L.totalSquaredInterFrameDelay || 0,
|
|
5984
|
+
freezeCount: L.freezeCount || 0,
|
|
5985
|
+
pauseCount: L.pauseCount || 0,
|
|
5986
|
+
powerEfficientDecoder: L.powerEfficientDecoder
|
|
5987
5987
|
}, Me);
|
|
5988
5988
|
b.score = Tm({
|
|
5989
5989
|
frameWidth: b.frameWidth || 0,
|
|
@@ -6007,19 +6007,19 @@ class Pm extends ut {
|
|
|
6007
6007
|
bitrate: ((b.bytesReceived || 0) - (((F = this.videoConsumerToStatsMap.get(C)) == null ? void 0 : F.bytesReceived) || 0)) * 8 / 7
|
|
6008
6008
|
}), this.videoConsumerToStatsMap.set(C, b), d.inboundVideoRtp.set(I.id, b), d.consumerStreamMap.get(C).inboundVideoRtpId.push(I.id), this.processInboundConsumerVideoStats(C, ie, b);
|
|
6009
6009
|
} else if (y.mediaType === "audio" || y.kind === "audio") {
|
|
6010
|
-
const
|
|
6011
|
-
audioLevel:
|
|
6012
|
-
concealedSamples:
|
|
6013
|
-
concealmentEvents:
|
|
6014
|
-
totalAudioEnergy:
|
|
6015
|
-
totalSamplesDuration:
|
|
6016
|
-
totalSamplesReceived:
|
|
6017
|
-
fecPacketsDiscarded:
|
|
6018
|
-
fecPacketsReceived:
|
|
6019
|
-
insertedSamplesForDeceleration:
|
|
6020
|
-
removedSamplesForAcceleration:
|
|
6021
|
-
silentConcealedSamples:
|
|
6022
|
-
playoutId:
|
|
6010
|
+
const L = y, b = D({
|
|
6011
|
+
audioLevel: L.audioLevel,
|
|
6012
|
+
concealedSamples: L.concealedSamples,
|
|
6013
|
+
concealmentEvents: L.concealmentEvents,
|
|
6014
|
+
totalAudioEnergy: L.totalAudioEnergy,
|
|
6015
|
+
totalSamplesDuration: L.totalSamplesDuration,
|
|
6016
|
+
totalSamplesReceived: L.totalSamplesReceived,
|
|
6017
|
+
fecPacketsDiscarded: L.fecPacketsDiscarded || 0,
|
|
6018
|
+
fecPacketsReceived: L.fecPacketsReceived || 0,
|
|
6019
|
+
insertedSamplesForDeceleration: L.insertedSamplesForDeceleration || 0,
|
|
6020
|
+
removedSamplesForAcceleration: L.removedSamplesForAcceleration || 0,
|
|
6021
|
+
silentConcealedSamples: L.silentConcealedSamples || 0,
|
|
6022
|
+
playoutId: L.playoutId
|
|
6023
6023
|
}, Me);
|
|
6024
6024
|
b.score = ym({
|
|
6025
6025
|
concealmentEvents: (b.concealmentEvents || 0) - (((K = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : K.concealmentEvents) || 0),
|
|
@@ -6044,7 +6044,7 @@ class Pm extends ut {
|
|
|
6044
6044
|
}
|
|
6045
6045
|
}
|
|
6046
6046
|
if (d.producerStreamMap.forEach((I, y) => {
|
|
6047
|
-
var C, U, ie, Me,
|
|
6047
|
+
var C, U, ie, Me, L, b, $e, Cr, Rr, Fs, Xn, Zn, eo, to, so, ro, io, ao, no, oo, co, lo, uo;
|
|
6048
6048
|
if (I.outboundVideoRtpId.length > 0) {
|
|
6049
6049
|
const ue = [];
|
|
6050
6050
|
I.outboundVideoRtpId.forEach((ru) => {
|
|
@@ -6057,7 +6057,7 @@ class Pm extends ut {
|
|
|
6057
6057
|
jitter: ((C = se.remoteData) == null ? void 0 : C.jitter) || 0,
|
|
6058
6058
|
isScreenShare: this.screenShareProducers.has(y),
|
|
6059
6059
|
packetsSent: (se.packetsSent || 0) - (((U = this.videoProducerToStatsMap.get(y)) == null ? void 0 : U.packetsSent) || 0),
|
|
6060
|
-
packetsLost: (((ie = se.remoteData) == null ? void 0 : ie.packetsLost) || 0) - (((
|
|
6060
|
+
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),
|
|
6061
6061
|
framesEncoded: (se.framesEncoded || 0) - (((b = this.videoProducerToStatsMap.get(y)) == null ? void 0 : b.framesEncoded) || 0)
|
|
6062
6062
|
}), T.set(y, {
|
|
6063
6063
|
score: +(se.score * 10).toFixed(),
|
|
@@ -6338,7 +6338,7 @@ class Pm extends ut {
|
|
|
6338
6338
|
});
|
|
6339
6339
|
}
|
|
6340
6340
|
}
|
|
6341
|
-
class
|
|
6341
|
+
class Vv extends Pm {
|
|
6342
6342
|
}
|
|
6343
6343
|
class Cm extends Pm {
|
|
6344
6344
|
constructor() {
|
|
@@ -6505,7 +6505,7 @@ class Cm extends Pm {
|
|
|
6505
6505
|
outboundVideoRtpId: [],
|
|
6506
6506
|
outboundAudioRtpId: []
|
|
6507
6507
|
});
|
|
6508
|
-
const
|
|
6508
|
+
const L = {
|
|
6509
6509
|
bytesSent: y.bytesSent,
|
|
6510
6510
|
packetsSent: y.packetsSent,
|
|
6511
6511
|
nackCount: y.nackCount,
|
|
@@ -6539,13 +6539,13 @@ class Cm extends Pm {
|
|
|
6539
6539
|
retransmittedPacketsSent: b.retransmittedPacketsSent,
|
|
6540
6540
|
scalabilityMode: b.scalabilityMode,
|
|
6541
6541
|
powerEfficientEncoder: b.powerEfficientEncoder
|
|
6542
|
-
},
|
|
6542
|
+
}, L);
|
|
6543
6543
|
d.outboundVideoRtp.set(I.id, $e), d.producerStreamMap.get(C).outboundVideoRtpId.push(I.id), this.processOutboundProducerVideoStats(C, ie, $e);
|
|
6544
6544
|
} else if (y.mediaType === "audio" || y.kind === "audio") {
|
|
6545
6545
|
const b = y, $e = D({
|
|
6546
6546
|
retransmittedBytesSent: b.retransmittedBytesSent,
|
|
6547
6547
|
retransmittedPacketsSent: b.retransmittedPacketsSent
|
|
6548
|
-
},
|
|
6548
|
+
}, L);
|
|
6549
6549
|
d.outboundAudioRtp.set(I.id, $e), d.producerStreamMap.get(C).outboundAudioRtpId.push(I.id), this.processOutboundProducerAudioStats(C, ie, $e);
|
|
6550
6550
|
}
|
|
6551
6551
|
} else
|
|
@@ -6595,28 +6595,28 @@ class Cm extends Pm {
|
|
|
6595
6595
|
jitterBufferTargetDelay: y.jitterBufferTargetDelay || 0
|
|
6596
6596
|
};
|
|
6597
6597
|
if (y.mediaType === "video" || y.kind === "video") {
|
|
6598
|
-
const
|
|
6599
|
-
frameHeight:
|
|
6600
|
-
frameWidth:
|
|
6601
|
-
framesDecoded:
|
|
6602
|
-
framesDropped:
|
|
6603
|
-
framesPerSecond:
|
|
6604
|
-
framesReceived:
|
|
6605
|
-
keyFramesDecoded:
|
|
6606
|
-
firCount:
|
|
6607
|
-
decoderImplementation:
|
|
6608
|
-
pliCount:
|
|
6609
|
-
totalProcessingDelay:
|
|
6610
|
-
qpSum:
|
|
6611
|
-
totalAssemblyTime:
|
|
6612
|
-
totalDecodeTime:
|
|
6613
|
-
totalFreezesDuration:
|
|
6614
|
-
totalInterFrameDelay:
|
|
6615
|
-
totalPausesDuration:
|
|
6616
|
-
totalSquaredInterFrameDelay:
|
|
6617
|
-
freezeCount:
|
|
6618
|
-
pauseCount:
|
|
6619
|
-
powerEfficientDecoder:
|
|
6598
|
+
const L = y, b = D({
|
|
6599
|
+
frameHeight: L.frameHeight,
|
|
6600
|
+
frameWidth: L.frameWidth,
|
|
6601
|
+
framesDecoded: L.framesDecoded,
|
|
6602
|
+
framesDropped: L.framesDropped ? L.framesDropped : L.droppedFrames,
|
|
6603
|
+
framesPerSecond: L.framesPerSecond ? L.framesPerSecond : L.framerateMean,
|
|
6604
|
+
framesReceived: L.framesReceived,
|
|
6605
|
+
keyFramesDecoded: L.keyFramesDecoded,
|
|
6606
|
+
firCount: L.firCount,
|
|
6607
|
+
decoderImplementation: L.decoderImplementation,
|
|
6608
|
+
pliCount: L.pliCount,
|
|
6609
|
+
totalProcessingDelay: L.totalProcessingDelay,
|
|
6610
|
+
qpSum: L.qpSum || 0,
|
|
6611
|
+
totalAssemblyTime: L.totalAssemblyTime || 0,
|
|
6612
|
+
totalDecodeTime: L.totalDecodeTime || 0,
|
|
6613
|
+
totalFreezesDuration: L.totalFreezesDuration || 0,
|
|
6614
|
+
totalInterFrameDelay: L.totalInterFrameDelay || 0,
|
|
6615
|
+
totalPausesDuration: L.totalPausesDuration || 0,
|
|
6616
|
+
totalSquaredInterFrameDelay: L.totalSquaredInterFrameDelay || 0,
|
|
6617
|
+
freezeCount: L.freezeCount || 0,
|
|
6618
|
+
pauseCount: L.pauseCount || 0,
|
|
6619
|
+
powerEfficientDecoder: L.powerEfficientDecoder
|
|
6620
6620
|
}, Me);
|
|
6621
6621
|
b.score = Tm({
|
|
6622
6622
|
frameWidth: b.frameWidth || 0,
|
|
@@ -6640,19 +6640,19 @@ class Cm extends Pm {
|
|
|
6640
6640
|
bitrate: ((b.bytesReceived || 0) - (((F = this.videoConsumerToStatsMap.get(C)) == null ? void 0 : F.bytesReceived) || 0)) * 8 / 7
|
|
6641
6641
|
}), this.videoConsumerToStatsMap.set(C, b), d.inboundVideoRtp.set(I.id, b), d.consumerStreamMap.get(C).inboundVideoRtpId.push(I.id), this.processInboundConsumerVideoStats(C, ie, b);
|
|
6642
6642
|
} else if (y.mediaType === "audio" || y.kind === "audio") {
|
|
6643
|
-
const
|
|
6644
|
-
audioLevel:
|
|
6645
|
-
concealedSamples:
|
|
6646
|
-
concealmentEvents:
|
|
6647
|
-
totalAudioEnergy:
|
|
6648
|
-
totalSamplesDuration:
|
|
6649
|
-
totalSamplesReceived:
|
|
6650
|
-
fecPacketsDiscarded:
|
|
6651
|
-
fecPacketsReceived:
|
|
6652
|
-
insertedSamplesForDeceleration:
|
|
6653
|
-
removedSamplesForAcceleration:
|
|
6654
|
-
silentConcealedSamples:
|
|
6655
|
-
playoutId:
|
|
6643
|
+
const L = y, b = D({
|
|
6644
|
+
audioLevel: L.audioLevel,
|
|
6645
|
+
concealedSamples: L.concealedSamples,
|
|
6646
|
+
concealmentEvents: L.concealmentEvents,
|
|
6647
|
+
totalAudioEnergy: L.totalAudioEnergy,
|
|
6648
|
+
totalSamplesDuration: L.totalSamplesDuration,
|
|
6649
|
+
totalSamplesReceived: L.totalSamplesReceived,
|
|
6650
|
+
fecPacketsDiscarded: L.fecPacketsDiscarded || 0,
|
|
6651
|
+
fecPacketsReceived: L.fecPacketsReceived || 0,
|
|
6652
|
+
insertedSamplesForDeceleration: L.insertedSamplesForDeceleration || 0,
|
|
6653
|
+
removedSamplesForAcceleration: L.removedSamplesForAcceleration || 0,
|
|
6654
|
+
silentConcealedSamples: L.silentConcealedSamples || 0,
|
|
6655
|
+
playoutId: L.playoutId
|
|
6656
6656
|
}, Me);
|
|
6657
6657
|
b.score = ym({
|
|
6658
6658
|
concealmentEvents: (b.concealmentEvents || 0) - (((K = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : K.concealmentEvents) || 0),
|
|
@@ -6677,7 +6677,7 @@ class Cm extends Pm {
|
|
|
6677
6677
|
}
|
|
6678
6678
|
}
|
|
6679
6679
|
if (d.producerStreamMap.forEach((I, y) => {
|
|
6680
|
-
var C, U, ie, Me,
|
|
6680
|
+
var C, U, ie, Me, L, b, $e, Cr, Rr, Fs, Xn, Zn, eo, to, so, ro, io, ao, no, oo, co, lo, uo;
|
|
6681
6681
|
if (I.outboundVideoRtpId.length > 0) {
|
|
6682
6682
|
const ue = [];
|
|
6683
6683
|
I.outboundVideoRtpId.forEach((ru) => {
|
|
@@ -6690,7 +6690,7 @@ class Cm extends Pm {
|
|
|
6690
6690
|
jitter: ((C = se.remoteData) == null ? void 0 : C.jitter) || 0,
|
|
6691
6691
|
isScreenShare: this.screenShareProducers.has(y),
|
|
6692
6692
|
packetsSent: (se.packetsSent || 0) - (((U = this.videoProducerToStatsMap.get(y)) == null ? void 0 : U.packetsSent) || 0),
|
|
6693
|
-
packetsLost: (((ie = se.remoteData) == null ? void 0 : ie.packetsLost) || 0) - (((
|
|
6693
|
+
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),
|
|
6694
6694
|
framesEncoded: (se.framesEncoded || 0) - (((b = this.videoProducerToStatsMap.get(y)) == null ? void 0 : b.framesEncoded) || 0)
|
|
6695
6695
|
}), T.set(y, {
|
|
6696
6696
|
score: +(se.score * 10).toFixed(),
|
|
@@ -6847,7 +6847,7 @@ const Z = (s, t) => (e, r, i) => {
|
|
|
6847
6847
|
o.value instanceof Function && Object.defineProperty(e.prototype, n, cp(o, s, t));
|
|
6848
6848
|
}
|
|
6849
6849
|
};
|
|
6850
|
-
var
|
|
6850
|
+
var Q = globalThis && globalThis.__decorate || function(s, t, e, r) {
|
|
6851
6851
|
var i = arguments.length, n = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, o;
|
|
6852
6852
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
6853
6853
|
n = Reflect.decorate(s, t, e, r);
|
|
@@ -6856,7 +6856,7 @@ var Y = globalThis && globalThis.__decorate || function(s, t, e, r) {
|
|
|
6856
6856
|
(o = s[c]) && (n = (i < 3 ? o(n) : i > 3 ? o(t, e, n) : o(t, e)) || n);
|
|
6857
6857
|
return i > 3 && n && Object.defineProperty(t, e, n), n;
|
|
6858
6858
|
};
|
|
6859
|
-
const
|
|
6859
|
+
const X = console;
|
|
6860
6860
|
let J = class extends ut {
|
|
6861
6861
|
constructor(e = "https://api.testingv3.dyte.in", r = "Blink", i = bo.PROD, n, o, c, d) {
|
|
6862
6862
|
super();
|
|
@@ -6878,7 +6878,7 @@ let J = class extends ut {
|
|
|
6878
6878
|
h(this, "currentUserMediaStates", {});
|
|
6879
6879
|
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) {
|
|
6880
6880
|
case "Blink":
|
|
6881
|
-
this.measurements = new
|
|
6881
|
+
this.measurements = new Vv();
|
|
6882
6882
|
break;
|
|
6883
6883
|
case "Gecko":
|
|
6884
6884
|
this.measurements = new Cm();
|
|
@@ -7291,158 +7291,158 @@ let J = class extends ut {
|
|
|
7291
7291
|
});
|
|
7292
7292
|
}
|
|
7293
7293
|
};
|
|
7294
|
-
|
|
7295
|
-
Z(TypeError, (s, t) =>
|
|
7294
|
+
Q([
|
|
7295
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7296
7296
|
], J.prototype, "registerIceServers", null);
|
|
7297
|
-
|
|
7298
|
-
Z(TypeError, (s, t) =>
|
|
7297
|
+
Q([
|
|
7298
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7299
7299
|
], J.prototype, "registerConsumer", null);
|
|
7300
|
-
|
|
7301
|
-
Z(TypeError, (s, t) =>
|
|
7300
|
+
Q([
|
|
7301
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7302
7302
|
], J.prototype, "registerProducer", null);
|
|
7303
|
-
|
|
7304
|
-
Z(TypeError, (s, t) =>
|
|
7303
|
+
Q([
|
|
7304
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7305
7305
|
], J.prototype, "sendConsumerSharedMediaStateEvent", null);
|
|
7306
|
-
|
|
7307
|
-
Z(TypeError, (s, t) =>
|
|
7306
|
+
Q([
|
|
7307
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7308
7308
|
], J.prototype, "registerProducingTransport", null);
|
|
7309
|
-
|
|
7310
|
-
Z(TypeError, (s, t) =>
|
|
7309
|
+
Q([
|
|
7310
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7311
7311
|
], J.prototype, "registerConsumingTransport", null);
|
|
7312
|
-
|
|
7313
|
-
Z(TypeError, (s, t) =>
|
|
7312
|
+
Q([
|
|
7313
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7314
7314
|
], J.prototype, "deRegisterConsumer", null);
|
|
7315
|
-
|
|
7316
|
-
Z(TypeError, (s, t) =>
|
|
7315
|
+
Q([
|
|
7316
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7317
7317
|
], J.prototype, "deRegisterProducer", null);
|
|
7318
|
-
|
|
7319
|
-
Z(TypeError, (s, t) =>
|
|
7318
|
+
Q([
|
|
7319
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7320
7320
|
], J.prototype, "disconnectConsumingTransport", null);
|
|
7321
|
-
|
|
7322
|
-
Z(TypeError, (s, t) =>
|
|
7321
|
+
Q([
|
|
7322
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7323
7323
|
], J.prototype, "disconnectProducingTransport", null);
|
|
7324
|
-
|
|
7325
|
-
Z(TypeError, (s, t) =>
|
|
7324
|
+
Q([
|
|
7325
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7326
7326
|
], J.prototype, "sendPreCallTestBeginEvent", null);
|
|
7327
|
-
|
|
7328
|
-
Z(TypeError, (s, t) =>
|
|
7327
|
+
Q([
|
|
7328
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7329
7329
|
], J.prototype, "sendScreenShareToggleEvent", null);
|
|
7330
|
-
|
|
7331
|
-
Z(TypeError, (s, t) =>
|
|
7330
|
+
Q([
|
|
7331
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7332
7332
|
], J.prototype, "sendScreenShareRequestedEvent", null);
|
|
7333
|
-
|
|
7334
|
-
Z(TypeError, (s, t) =>
|
|
7333
|
+
Q([
|
|
7334
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7335
7335
|
], J.prototype, "sendActiveSpeakerEvent", null);
|
|
7336
|
-
|
|
7337
|
-
Z(TypeError, (s, t) =>
|
|
7336
|
+
Q([
|
|
7337
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7338
7338
|
], J.prototype, "devices", null);
|
|
7339
|
-
|
|
7340
|
-
Z(TypeError, (s, t) =>
|
|
7339
|
+
Q([
|
|
7340
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7341
7341
|
], J.prototype, "selectedDevice", null);
|
|
7342
|
-
|
|
7343
|
-
Z(TypeError, (s, t) =>
|
|
7342
|
+
Q([
|
|
7343
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7344
7344
|
], J.prototype, "mediaPermission", null);
|
|
7345
|
-
|
|
7346
|
-
Z(TypeError, (s, t) =>
|
|
7345
|
+
Q([
|
|
7346
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7347
7347
|
], J.prototype, "mediaPlaybackFailed", null);
|
|
7348
|
-
|
|
7349
|
-
Z(TypeError, (s, t) =>
|
|
7348
|
+
Q([
|
|
7349
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7350
7350
|
], J.prototype, "mediaTrackMuted", null);
|
|
7351
|
-
|
|
7352
|
-
Z(TypeError, (s, t) =>
|
|
7351
|
+
Q([
|
|
7352
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7353
7353
|
], J.prototype, "tabChanged", null);
|
|
7354
|
-
|
|
7355
|
-
Z(TypeError, (s, t) =>
|
|
7354
|
+
Q([
|
|
7355
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7356
7356
|
], J.prototype, "browserBackgrounded", null);
|
|
7357
|
-
|
|
7358
|
-
Z(TypeError, (s, t) =>
|
|
7357
|
+
Q([
|
|
7358
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7359
7359
|
], J.prototype, "browserForegrounded", null);
|
|
7360
|
-
|
|
7361
|
-
Z(TypeError, (s, t) =>
|
|
7360
|
+
Q([
|
|
7361
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7362
7362
|
], J.prototype, "legacySwitch", null);
|
|
7363
|
-
|
|
7364
|
-
Z(TypeError, (s, t) =>
|
|
7363
|
+
Q([
|
|
7364
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7365
7365
|
], J.prototype, "getPreCallTestResults", null);
|
|
7366
|
-
|
|
7367
|
-
Z(TypeError, (s, t) =>
|
|
7366
|
+
Q([
|
|
7367
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7368
7368
|
], J.prototype, "sendCallJoinBeginEvent", null);
|
|
7369
|
-
|
|
7370
|
-
Z(TypeError, (s, t) =>
|
|
7369
|
+
Q([
|
|
7370
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7371
7371
|
], J.prototype, "sendNetworkQualityTestBeginEvent", null);
|
|
7372
|
-
|
|
7373
|
-
Z(TypeError, (s, t) =>
|
|
7372
|
+
Q([
|
|
7373
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7374
7374
|
], J.prototype, "sendWebSocketConnectedEvent", null);
|
|
7375
|
-
|
|
7376
|
-
Z(TypeError, (s, t) =>
|
|
7375
|
+
Q([
|
|
7376
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7377
7377
|
], J.prototype, "sendTransportConnectedEvent", null);
|
|
7378
|
-
|
|
7379
|
-
Z(TypeError, (s, t) =>
|
|
7378
|
+
Q([
|
|
7379
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7380
7380
|
], J.prototype, "sendAudioToggleEvent", null);
|
|
7381
|
-
|
|
7382
|
-
Z(TypeError, (s, t) =>
|
|
7381
|
+
Q([
|
|
7382
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7383
7383
|
], J.prototype, "sendVideoToggleEvent", null);
|
|
7384
|
-
|
|
7385
|
-
Z(TypeError, (s, t) =>
|
|
7384
|
+
Q([
|
|
7385
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7386
7386
|
], J.prototype, "sendParticipantRoleToggleEvent", null);
|
|
7387
|
-
|
|
7388
|
-
Z(TypeError, (s, t) =>
|
|
7387
|
+
Q([
|
|
7388
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7389
7389
|
], J.prototype, "startPingStats", null);
|
|
7390
|
-
|
|
7391
|
-
Z(TypeError, (s, t) =>
|
|
7390
|
+
Q([
|
|
7391
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7392
7392
|
], J.prototype, "stopPingStats", null);
|
|
7393
|
-
|
|
7394
|
-
Z(TypeError, (s, t) =>
|
|
7393
|
+
Q([
|
|
7394
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7395
7395
|
], J.prototype, "sendPingStatsEvent", null);
|
|
7396
|
-
|
|
7397
|
-
Z(TypeError, (s, t) =>
|
|
7396
|
+
Q([
|
|
7397
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7398
7398
|
], J.prototype, "sendIVSPlayerRebufferEvent", null);
|
|
7399
|
-
|
|
7400
|
-
Z(TypeError, (s, t) =>
|
|
7399
|
+
Q([
|
|
7400
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7401
7401
|
], J.prototype, "sendIVSPlayerAudioBlockEvent", null);
|
|
7402
|
-
|
|
7403
|
-
Z(TypeError, (s, t) =>
|
|
7402
|
+
Q([
|
|
7403
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7404
7404
|
], J.prototype, "sendIVSPlayerPlaybackBlockedEvent", null);
|
|
7405
|
-
|
|
7406
|
-
Z(TypeError, (s, t) =>
|
|
7405
|
+
Q([
|
|
7406
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7407
7407
|
], J.prototype, "sendIVSPlayerNetworkUnavailableEvent", null);
|
|
7408
|
-
|
|
7409
|
-
Z(TypeError, (s, t) =>
|
|
7408
|
+
Q([
|
|
7409
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7410
7410
|
], J.prototype, "sendIVSPlayerInitializedEvent", null);
|
|
7411
|
-
|
|
7412
|
-
Z(TypeError, (s, t) =>
|
|
7411
|
+
Q([
|
|
7412
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7413
7413
|
], J.prototype, "sendIVSPlayerWorkerErrorEvent", null);
|
|
7414
|
-
|
|
7415
|
-
Z(TypeError, (s, t) =>
|
|
7414
|
+
Q([
|
|
7415
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7416
7416
|
], J.prototype, "sendIVSPlayerErrorEvent", null);
|
|
7417
|
-
|
|
7418
|
-
Z(TypeError, (s, t) =>
|
|
7417
|
+
Q([
|
|
7418
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7419
7419
|
], J.prototype, "sendIVSPlayerRecoverableErrorEvent", null);
|
|
7420
|
-
|
|
7421
|
-
Z(TypeError, (s, t) =>
|
|
7420
|
+
Q([
|
|
7421
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7422
7422
|
], J.prototype, "sendIVSPlayerAnalyticsEvent", null);
|
|
7423
|
-
|
|
7424
|
-
Z(TypeError, (s, t) =>
|
|
7423
|
+
Q([
|
|
7424
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7425
7425
|
], J.prototype, "sendIVSPlayerPlaybackRateChangedEvent", null);
|
|
7426
|
-
|
|
7427
|
-
Z(TypeError, (s, t) =>
|
|
7426
|
+
Q([
|
|
7427
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7428
7428
|
], J.prototype, "sendIVSPlayerQualityChanged", null);
|
|
7429
|
-
|
|
7430
|
-
Z(TypeError, (s, t) =>
|
|
7429
|
+
Q([
|
|
7430
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7431
7431
|
], J.prototype, "sendPlayerLiveLatency", null);
|
|
7432
|
-
|
|
7433
|
-
Z(TypeError, (s, t) =>
|
|
7432
|
+
Q([
|
|
7433
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7434
7434
|
], J.prototype, "sendDisconnectEvent", null);
|
|
7435
|
-
|
|
7436
|
-
Z(TypeError, (s, t) =>
|
|
7435
|
+
Q([
|
|
7436
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7437
7437
|
], J.prototype, "sendReconnectEvent", null);
|
|
7438
|
-
|
|
7439
|
-
Z(TypeError, (s, t) =>
|
|
7438
|
+
Q([
|
|
7439
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7440
7440
|
], J.prototype, "expectedVideoResolution", null);
|
|
7441
|
-
|
|
7442
|
-
Z(TypeError, (s, t) =>
|
|
7441
|
+
Q([
|
|
7442
|
+
Z(TypeError, (s, t) => X.error(t, s))
|
|
7443
7443
|
], J.prototype, "expectedScreenshareResolution", null);
|
|
7444
|
-
J =
|
|
7445
|
-
Uv(TypeError, (s, t) =>
|
|
7444
|
+
J = Q([
|
|
7445
|
+
Uv(TypeError, (s, t) => X.error(t, s))
|
|
7446
7446
|
], J);
|
|
7447
7447
|
const $v = J;
|
|
7448
7448
|
class Rm extends ut {
|
|
@@ -7913,7 +7913,7 @@ function Sa(s, t) {
|
|
|
7913
7913
|
return Ry(e) ? e : void 0;
|
|
7914
7914
|
}
|
|
7915
7915
|
var by = Sa(Cs, "Map");
|
|
7916
|
-
const
|
|
7916
|
+
const Vo = by;
|
|
7917
7917
|
var ky = Sa(Object, "create");
|
|
7918
7918
|
const xo = ky;
|
|
7919
7919
|
function Iy() {
|
|
@@ -7932,10 +7932,10 @@ function Ny(s) {
|
|
|
7932
7932
|
}
|
|
7933
7933
|
return Oy.call(t, s) ? t[s] : void 0;
|
|
7934
7934
|
}
|
|
7935
|
-
var
|
|
7935
|
+
var Ly = Object.prototype, Vy = Ly.hasOwnProperty;
|
|
7936
7936
|
function xy(s) {
|
|
7937
7937
|
var t = this.__data__;
|
|
7938
|
-
return xo ? t[s] !== void 0 :
|
|
7938
|
+
return xo ? t[s] !== void 0 : Vy.call(t, s);
|
|
7939
7939
|
}
|
|
7940
7940
|
var Uy = "__lodash_hash_undefined__";
|
|
7941
7941
|
function $y(s, t) {
|
|
@@ -7957,7 +7957,7 @@ ha.prototype.set = $y;
|
|
|
7957
7957
|
function Fy() {
|
|
7958
7958
|
this.size = 0, this.__data__ = {
|
|
7959
7959
|
hash: new ha(),
|
|
7960
|
-
map: new (
|
|
7960
|
+
map: new (Vo || Tr)(),
|
|
7961
7961
|
string: new ha()
|
|
7962
7962
|
};
|
|
7963
7963
|
}
|
|
@@ -8000,7 +8000,7 @@ function Jy(s, t) {
|
|
|
8000
8000
|
var e = this.__data__;
|
|
8001
8001
|
if (e instanceof Tr) {
|
|
8002
8002
|
var r = e.__data__;
|
|
8003
|
-
if (!
|
|
8003
|
+
if (!Vo || r.length < Wy - 1)
|
|
8004
8004
|
return r.push([s, t]), this.size = ++e.size, this;
|
|
8005
8005
|
e = this.__data__ = new va(r);
|
|
8006
8006
|
}
|
|
@@ -8087,7 +8087,7 @@ function Dm(s) {
|
|
|
8087
8087
|
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 = {};
|
|
8088
8088
|
ye[wT] = ye[bT] = ye[kT] = ye[IT] = ye[AT] = ye[MT] = ye[DT] = ye[OT] = ye[NT] = true;
|
|
8089
8089
|
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;
|
|
8090
|
-
function
|
|
8090
|
+
function LT(s) {
|
|
8091
8091
|
return $s(s) && Dm(s.length) && !!ye[ma(s)];
|
|
8092
8092
|
}
|
|
8093
8093
|
function _h(s) {
|
|
@@ -8095,7 +8095,7 @@ function _h(s) {
|
|
|
8095
8095
|
return s(t);
|
|
8096
8096
|
};
|
|
8097
8097
|
}
|
|
8098
|
-
var Om = typeof exports == "object" && exports && !exports.nodeType && exports, ko = Om && typeof module == "object" && module && !module.nodeType && module,
|
|
8098
|
+
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() {
|
|
8099
8099
|
try {
|
|
8100
8100
|
var s = ko && ko.require && ko.require("util").types;
|
|
8101
8101
|
return s || ou && ou.binding && ou.binding("util");
|
|
@@ -8103,7 +8103,7 @@ var Om = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
8103
8103
|
}
|
|
8104
8104
|
}();
|
|
8105
8105
|
const qn = xT;
|
|
8106
|
-
var gp = qn && qn.isTypedArray, UT = gp ? _h(gp) :
|
|
8106
|
+
var gp = qn && qn.isTypedArray, UT = gp ? _h(gp) : LT;
|
|
8107
8107
|
const ql = UT;
|
|
8108
8108
|
var $T = Object.prototype, FT = $T.hasOwnProperty;
|
|
8109
8109
|
function Nm(s, t) {
|
|
@@ -8117,15 +8117,15 @@ function jl(s) {
|
|
|
8117
8117
|
var t = s && s.constructor, e = typeof t == "function" && t.prototype || HT;
|
|
8118
8118
|
return s === e;
|
|
8119
8119
|
}
|
|
8120
|
-
function
|
|
8120
|
+
function Lm(s, t) {
|
|
8121
8121
|
return function(e) {
|
|
8122
8122
|
return s(t(e));
|
|
8123
8123
|
};
|
|
8124
8124
|
}
|
|
8125
|
-
var BT =
|
|
8125
|
+
var BT = Lm(Object.keys, Object);
|
|
8126
8126
|
const qT = BT;
|
|
8127
8127
|
var jT = Object.prototype, GT = jT.hasOwnProperty;
|
|
8128
|
-
function
|
|
8128
|
+
function Vm(s) {
|
|
8129
8129
|
if (!jl(s))
|
|
8130
8130
|
return qT(s);
|
|
8131
8131
|
var t = [];
|
|
@@ -8137,7 +8137,7 @@ function Gc(s) {
|
|
|
8137
8137
|
return s != null && Dm(s.length) && !Th(s);
|
|
8138
8138
|
}
|
|
8139
8139
|
function Ph(s) {
|
|
8140
|
-
return Gc(s) ? Nm(s) :
|
|
8140
|
+
return Gc(s) ? Nm(s) : Vm(s);
|
|
8141
8141
|
}
|
|
8142
8142
|
function WT(s, t) {
|
|
8143
8143
|
return s && jc(t, Ph(t), s);
|
|
@@ -8201,7 +8201,7 @@ function Hm(s, t) {
|
|
|
8201
8201
|
s[i + e] = t[e];
|
|
8202
8202
|
return s;
|
|
8203
8203
|
}
|
|
8204
|
-
var iE =
|
|
8204
|
+
var iE = Lm(Object.getPrototypeOf, Object);
|
|
8205
8205
|
const Rh = iE;
|
|
8206
8206
|
var aE = Object.getOwnPropertySymbols, nE = aE ? function(s) {
|
|
8207
8207
|
for (var t = []; s; )
|
|
@@ -8230,8 +8230,8 @@ var uE = Sa(Cs, "Set");
|
|
|
8230
8230
|
const Cu = uE;
|
|
8231
8231
|
var hE = Sa(Cs, "WeakMap");
|
|
8232
8232
|
const Ru = hE;
|
|
8233
|
-
var yp = "[object Map]", pE = "[object Object]", Tp = "[object Promise]", Ep = "[object Set]", _p = "[object WeakMap]", Pp = "[object DataView]", gE = fa(_u), mE = fa(
|
|
8234
|
-
(_u && oi(new _u(new ArrayBuffer(1))) != Pp ||
|
|
8233
|
+
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;
|
|
8234
|
+
(_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) {
|
|
8235
8235
|
var t = ma(s), e = t == pE ? s.constructor : void 0, r = e ? fa(e) : "";
|
|
8236
8236
|
if (r)
|
|
8237
8237
|
switch (r) {
|
|
@@ -8277,16 +8277,16 @@ function jm(s, t) {
|
|
|
8277
8277
|
var e = t ? wh(s.buffer) : s.buffer;
|
|
8278
8278
|
return new s.constructor(e, s.byteOffset, s.length);
|
|
8279
8279
|
}
|
|
8280
|
-
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]",
|
|
8280
|
+
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]";
|
|
8281
8281
|
function WE(s, t, e) {
|
|
8282
8282
|
var r = s.constructor;
|
|
8283
8283
|
switch (t) {
|
|
8284
|
-
case
|
|
8284
|
+
case LE:
|
|
8285
8285
|
return wh(s);
|
|
8286
8286
|
case bE:
|
|
8287
8287
|
case kE:
|
|
8288
8288
|
return new r(+s);
|
|
8289
|
-
case
|
|
8289
|
+
case VE:
|
|
8290
8290
|
return PE(s, e);
|
|
8291
8291
|
case xE:
|
|
8292
8292
|
case UE:
|
|
@@ -8391,12 +8391,12 @@ function D_(s) {
|
|
|
8391
8391
|
var O_ = Object.defineProperty, N_ = (s, t) => {
|
|
8392
8392
|
for (var e in t)
|
|
8393
8393
|
O_(s, e, { get: t[e], enumerable: true });
|
|
8394
|
-
},
|
|
8395
|
-
N_(
|
|
8396
|
-
permissions: () =>
|
|
8394
|
+
}, L_ = {};
|
|
8395
|
+
N_(L_, {
|
|
8396
|
+
permissions: () => V_,
|
|
8397
8397
|
theme: () => x_
|
|
8398
8398
|
});
|
|
8399
|
-
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 || {}),
|
|
8399
|
+
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_ = {
|
|
8400
8400
|
view_type: "GROUP_CALL",
|
|
8401
8401
|
accept_waiting_requests: false,
|
|
8402
8402
|
accept_present_requests: false,
|
|
@@ -9260,7 +9260,7 @@ function NP(s) {
|
|
|
9260
9260
|
e[++t] = r;
|
|
9261
9261
|
}), e;
|
|
9262
9262
|
}
|
|
9263
|
-
var
|
|
9263
|
+
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;
|
|
9264
9264
|
function KP(s, t, e, r, i, n, o) {
|
|
9265
9265
|
switch (e) {
|
|
9266
9266
|
case JP:
|
|
@@ -9281,13 +9281,13 @@ function KP(s, t, e, r, i, n, o) {
|
|
|
9281
9281
|
case FP:
|
|
9282
9282
|
var c = OP;
|
|
9283
9283
|
case qP:
|
|
9284
|
-
var d = r &
|
|
9284
|
+
var d = r & LP;
|
|
9285
9285
|
if (c || (c = NP), s.size != t.size && !d)
|
|
9286
9286
|
return false;
|
|
9287
9287
|
var l = o.get(s);
|
|
9288
9288
|
if (l)
|
|
9289
9289
|
return l == t;
|
|
9290
|
-
r |=
|
|
9290
|
+
r |= VP, o.set(s, t);
|
|
9291
9291
|
var p = rf(c(s), c(t), r, i, n, o);
|
|
9292
9292
|
return o.delete(s), p;
|
|
9293
9293
|
case GP:
|
|
@@ -9328,9 +9328,9 @@ function XP(s, t, e, r, i, n) {
|
|
|
9328
9328
|
}
|
|
9329
9329
|
return n.delete(s), n.delete(t), P;
|
|
9330
9330
|
}
|
|
9331
|
-
var ZP = 1, Np = "[object Arguments]",
|
|
9331
|
+
var ZP = 1, Np = "[object Arguments]", Lp = "[object Array]", td = "[object Object]", eC = Object.prototype, Vp = eC.hasOwnProperty;
|
|
9332
9332
|
function tC(s, t, e, r, i, n) {
|
|
9333
|
-
var o = si(s), c = si(t), d = o ?
|
|
9333
|
+
var o = si(s), c = si(t), d = o ? Lp : jn(s), l = c ? Lp : jn(t);
|
|
9334
9334
|
d = d == Np ? td : d, l = l == Np ? td : l;
|
|
9335
9335
|
var p = d == td, f = l == td, S = d == l;
|
|
9336
9336
|
if (S && Bn(s)) {
|
|
@@ -9341,7 +9341,7 @@ function tC(s, t, e, r, i, n) {
|
|
|
9341
9341
|
if (S && !p)
|
|
9342
9342
|
return n || (n = new Us()), o || ql(s) ? rf(s, t, e, r, i, n) : KP(s, t, d, e, r, i, n);
|
|
9343
9343
|
if (!(e & ZP)) {
|
|
9344
|
-
var T = p &&
|
|
9344
|
+
var T = p && Vp.call(s, "__wrapped__"), _ = f && Vp.call(t, "__wrapped__");
|
|
9345
9345
|
if (T || _) {
|
|
9346
9346
|
var P = T ? s.value() : s, w = _ ? t.value() : t;
|
|
9347
9347
|
return n || (n = new Us()), i(P, w, e, r, n);
|
|
@@ -9462,7 +9462,7 @@ function fC(s) {
|
|
|
9462
9462
|
if (t == hC || t == pC)
|
|
9463
9463
|
return !s.size;
|
|
9464
9464
|
if (jl(s))
|
|
9465
|
-
return !
|
|
9465
|
+
return !Vm(s).length;
|
|
9466
9466
|
for (var e in s)
|
|
9467
9467
|
if (mC.call(s, e))
|
|
9468
9468
|
return false;
|
|
@@ -9476,7 +9476,7 @@ var vC = yP(function(s, t, e) {
|
|
|
9476
9476
|
});
|
|
9477
9477
|
const br = vC;
|
|
9478
9478
|
var Iu = /* @__PURE__ */ ((s) => (s.PARTICIPANT = "PARTICIPANT", s.PEER = "PEER", s.CLIENT = "CLIENT", s))(Iu || {});
|
|
9479
|
-
const
|
|
9479
|
+
const Y = {
|
|
9480
9480
|
PROPAGATE_KICK_ALL: "propagate_kick_across_rooms",
|
|
9481
9481
|
REFRESH_ID_ON_DISCONNECTION: "refresh_id_on_disconnection",
|
|
9482
9482
|
SIMULCAST: "simulcast",
|
|
@@ -9542,7 +9542,8 @@ const X = {
|
|
|
9542
9542
|
PRECREATE_PRODUCERS: "precreate_producers",
|
|
9543
9543
|
DISABLE_OPUS_DTX_CF: "disable_opus_dtx_cf",
|
|
9544
9544
|
ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS: "enable_audio_activity_debug_logs",
|
|
9545
|
-
NEW_SYNC_CONSUMERS: "new_sync_consumers"
|
|
9545
|
+
NEW_SYNC_CONSUMERS: "new_sync_consumers",
|
|
9546
|
+
DISABLE_LAYER_SWITCH: "disable_layer_switch"
|
|
9546
9547
|
};
|
|
9547
9548
|
function gd(s) {
|
|
9548
9549
|
const t = {};
|
|
@@ -9555,8 +9556,8 @@ function yC(s) {
|
|
|
9555
9556
|
}
|
|
9556
9557
|
function TC(s, t) {
|
|
9557
9558
|
var e;
|
|
9558
|
-
if (s != null && s.getValue("flagsmith").hasFeature(
|
|
9559
|
-
let r = ((e = s.getValue("flagsmith").getValue(
|
|
9559
|
+
if (s != null && s.getValue("flagsmith").hasFeature(Y.LOG_LEVEL)) {
|
|
9560
|
+
let r = ((e = s.getValue("flagsmith").getValue(Y.LOG_LEVEL)) == null ? void 0 : e.toString()) || "all";
|
|
9560
9561
|
if (r = r.toLowerCase().trim(), r === "off")
|
|
9561
9562
|
return false;
|
|
9562
9563
|
if (r !== "all") {
|
|
@@ -9724,7 +9725,7 @@ const CC = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d=
|
|
|
9724
9725
|
return n.value = function(...d) {
|
|
9725
9726
|
var S;
|
|
9726
9727
|
const l = this == null ? void 0 : this.telemetry;
|
|
9727
|
-
if (!l || !l.initialized || navigator.isReactNative || !l.tracingEnabled || (S = mr.getContext(l.meetingMetadata.peerId)) != null && S.getValue("flagsmith").hasFeature(
|
|
9728
|
+
if (!l || !l.initialized || navigator.isReactNative || !l.tracingEnabled || (S = mr.getContext(l.meetingMetadata.peerId)) != null && S.getValue("flagsmith").hasFeature(Y.SKIP_OTEL_TRACES))
|
|
9728
9729
|
return o.apply(this, d);
|
|
9729
9730
|
l.addLogInCurrentSpan("info", t, e);
|
|
9730
9731
|
const p = performance.now(), f = o.apply(this, d);
|
|
@@ -10634,7 +10635,7 @@ class NC extends MessageType {
|
|
|
10634
10635
|
}
|
|
10635
10636
|
}
|
|
10636
10637
|
const df = new NC();
|
|
10637
|
-
class
|
|
10638
|
+
class LC extends MessageType {
|
|
10638
10639
|
constructor() {
|
|
10639
10640
|
super("media.HeaderExtension", [
|
|
10640
10641
|
{
|
|
@@ -10653,7 +10654,7 @@ class VC extends MessageType {
|
|
|
10653
10654
|
]);
|
|
10654
10655
|
}
|
|
10655
10656
|
}
|
|
10656
|
-
const
|
|
10657
|
+
const VC = new LC();
|
|
10657
10658
|
class xC extends MessageType {
|
|
10658
10659
|
constructor() {
|
|
10659
10660
|
super("media.Fingerprint", [
|
|
@@ -11034,7 +11035,7 @@ class nR extends MessageType {
|
|
|
11034
11035
|
constructor() {
|
|
11035
11036
|
super("media.RtpCapability", [
|
|
11036
11037
|
{ no: 1, name: "codecs", kind: "message", repeat: 1, T: () => df },
|
|
11037
|
-
{ no: 2, name: "header_extensions", kind: "message", repeat: 1, T: () =>
|
|
11038
|
+
{ no: 2, name: "header_extensions", kind: "message", repeat: 1, T: () => VC }
|
|
11038
11039
|
]);
|
|
11039
11040
|
}
|
|
11040
11041
|
}
|
|
@@ -11421,7 +11422,7 @@ class NR extends MessageType {
|
|
|
11421
11422
|
}
|
|
11422
11423
|
}
|
|
11423
11424
|
new NR();
|
|
11424
|
-
class
|
|
11425
|
+
class LR extends MessageType {
|
|
11425
11426
|
constructor() {
|
|
11426
11427
|
super("media.edge.ProducerCloseRequest", [
|
|
11427
11428
|
{
|
|
@@ -11441,7 +11442,7 @@ class VR extends MessageType {
|
|
|
11441
11442
|
]);
|
|
11442
11443
|
}
|
|
11443
11444
|
}
|
|
11444
|
-
const
|
|
11445
|
+
const VR = new LR();
|
|
11445
11446
|
class xR extends MessageType {
|
|
11446
11447
|
constructor() {
|
|
11447
11448
|
super("media.edge.ConsumerCloseRequest", [
|
|
@@ -12003,7 +12004,7 @@ class Nw extends MessageType {
|
|
|
12003
12004
|
}
|
|
12004
12005
|
}
|
|
12005
12006
|
new Nw();
|
|
12006
|
-
class
|
|
12007
|
+
class Lw extends MessageType {
|
|
12007
12008
|
constructor() {
|
|
12008
12009
|
super("media.edge.PeerProducerCreateBroadcastResponse", [
|
|
12009
12010
|
{
|
|
@@ -12016,7 +12017,7 @@ class Vw extends MessageType {
|
|
|
12016
12017
|
]);
|
|
12017
12018
|
}
|
|
12018
12019
|
}
|
|
12019
|
-
const
|
|
12020
|
+
const Vw = new Lw();
|
|
12020
12021
|
class xw extends MessageType {
|
|
12021
12022
|
constructor() {
|
|
12022
12023
|
super("media.edge.PeerProducerToggleBroadcastResponse", [
|
|
@@ -12276,10 +12277,10 @@ var Nu;
|
|
|
12276
12277
|
(function(s) {
|
|
12277
12278
|
s[s.NONE = 0] = "NONE", s[s.RECORDER = 1] = "RECORDER", s[s.LIVESTREAMER = 2] = "LIVESTREAMER";
|
|
12278
12279
|
})(Nu || (Nu = {}));
|
|
12279
|
-
var
|
|
12280
|
+
var Lu;
|
|
12280
12281
|
(function(s) {
|
|
12281
12282
|
s[s.PEERS = 0] = "PEERS", s[s.ROOMS = 1] = "ROOMS";
|
|
12282
|
-
})(
|
|
12283
|
+
})(Lu || (Lu = {}));
|
|
12283
12284
|
var Nd;
|
|
12284
12285
|
(function(s) {
|
|
12285
12286
|
s[s.HIVE = 0] = "HIVE", s[s.CHAT = 1] = "CHAT", s[s.PING = 2] = "PING";
|
|
@@ -12782,7 +12783,7 @@ class Nb extends MessageType {
|
|
|
12782
12783
|
}
|
|
12783
12784
|
}
|
|
12784
12785
|
new Nb();
|
|
12785
|
-
class
|
|
12786
|
+
class Lb extends MessageType {
|
|
12786
12787
|
constructor() {
|
|
12787
12788
|
super("socket.room.DisableRoomPayload", [
|
|
12788
12789
|
{
|
|
@@ -12795,11 +12796,11 @@ class Vb extends MessageType {
|
|
|
12795
12796
|
]);
|
|
12796
12797
|
}
|
|
12797
12798
|
}
|
|
12798
|
-
const
|
|
12799
|
+
const Vb = new Lb();
|
|
12799
12800
|
class xb extends MessageType {
|
|
12800
12801
|
constructor() {
|
|
12801
12802
|
super("socket.room.DisableConnectedRoomsRequest", [
|
|
12802
|
-
{ no: 1, name: "payloads", kind: "message", repeat: 1, T: () =>
|
|
12803
|
+
{ no: 1, name: "payloads", kind: "message", repeat: 1, T: () => Vb }
|
|
12803
12804
|
]);
|
|
12804
12805
|
}
|
|
12805
12806
|
}
|
|
@@ -13019,7 +13020,7 @@ class sk extends MessageType {
|
|
|
13019
13020
|
repeat: 2,
|
|
13020
13021
|
T: 9
|
|
13021
13022
|
},
|
|
13022
|
-
{ no: 5, name: "broadcast_type", kind: "enum", opt: true, T: () => ["socket.room.BroadcastType",
|
|
13023
|
+
{ no: 5, name: "broadcast_type", kind: "enum", opt: true, T: () => ["socket.room.BroadcastType", Lu, "BROADCAST_TYPE_"] }
|
|
13023
13024
|
]);
|
|
13024
13025
|
}
|
|
13025
13026
|
}
|
|
@@ -13134,10 +13135,10 @@ class lk extends MessageType {
|
|
|
13134
13135
|
}
|
|
13135
13136
|
}
|
|
13136
13137
|
const eg = new lk();
|
|
13137
|
-
var
|
|
13138
|
+
var Vu;
|
|
13138
13139
|
(function(s) {
|
|
13139
13140
|
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";
|
|
13140
|
-
})(
|
|
13141
|
+
})(Vu || (Vu = {}));
|
|
13141
13142
|
var Qr;
|
|
13142
13143
|
(function(s) {
|
|
13143
13144
|
s[s.NONE = 0] = "NONE", s[s.ALLOWED = 1] = "ALLOWED", s[s.NOT_ALLOWED = 2] = "NOT_ALLOWED", s[s.CAN_REQUEST = 3] = "CAN_REQUEST";
|
|
@@ -13400,7 +13401,7 @@ class wk extends MessageType {
|
|
|
13400
13401
|
opt: true,
|
|
13401
13402
|
T: 8
|
|
13402
13403
|
},
|
|
13403
|
-
{ no: 16, name: "waiting_room_type", kind: "enum", opt: true, T: () => ["socket.preset.WaitingRoomType",
|
|
13404
|
+
{ no: 16, name: "waiting_room_type", kind: "enum", opt: true, T: () => ["socket.preset.WaitingRoomType", Vu, "WAITING_ROOM_TYPE_"] },
|
|
13404
13405
|
{
|
|
13405
13406
|
no: 17,
|
|
13406
13407
|
name: "is_recorder",
|
|
@@ -13504,15 +13505,15 @@ class Nk extends MessageType {
|
|
|
13504
13505
|
]);
|
|
13505
13506
|
}
|
|
13506
13507
|
}
|
|
13507
|
-
const
|
|
13508
|
-
class
|
|
13508
|
+
const Lk = new Nk();
|
|
13509
|
+
class Vk extends MessageType {
|
|
13509
13510
|
constructor() {
|
|
13510
13511
|
super("socket.preset.UpdatePeersPresetResponse", [
|
|
13511
13512
|
{ no: 1, name: "update_peers_presets", kind: "message", repeat: 1, T: () => Tf }
|
|
13512
13513
|
]);
|
|
13513
13514
|
}
|
|
13514
13515
|
}
|
|
13515
|
-
const tg = new
|
|
13516
|
+
const tg = new Vk();
|
|
13516
13517
|
class xk extends MessageType {
|
|
13517
13518
|
constructor() {
|
|
13518
13519
|
super("socket.preset.PeerUserIDMap", [
|
|
@@ -14261,7 +14262,7 @@ class OI extends MessageType {
|
|
|
14261
14262
|
}
|
|
14262
14263
|
}
|
|
14263
14264
|
const NI = new OI();
|
|
14264
|
-
class
|
|
14265
|
+
class LI extends MessageType {
|
|
14265
14266
|
constructor() {
|
|
14266
14267
|
super("socket.plugin.RemovePluginRequest", [
|
|
14267
14268
|
{
|
|
@@ -14279,7 +14280,7 @@ class VI extends MessageType {
|
|
|
14279
14280
|
]);
|
|
14280
14281
|
}
|
|
14281
14282
|
}
|
|
14282
|
-
const
|
|
14283
|
+
const VI = new LI();
|
|
14283
14284
|
class xI extends MessageType {
|
|
14284
14285
|
constructor() {
|
|
14285
14286
|
super("socket.plugin.EnablePluginForRoomRequest", [
|
|
@@ -15014,7 +15015,7 @@ class NA extends MessageType {
|
|
|
15014
15015
|
}
|
|
15015
15016
|
}
|
|
15016
15017
|
new NA();
|
|
15017
|
-
class
|
|
15018
|
+
class LA extends MessageType {
|
|
15018
15019
|
constructor() {
|
|
15019
15020
|
super("common.BaseHubMessage", [
|
|
15020
15021
|
{
|
|
@@ -15091,15 +15092,15 @@ class VA extends MessageType {
|
|
|
15091
15092
|
]);
|
|
15092
15093
|
}
|
|
15093
15094
|
}
|
|
15094
|
-
const Uu = new
|
|
15095
|
-
class
|
|
15095
|
+
const Uu = new LA();
|
|
15096
|
+
class VA extends MessageType {
|
|
15096
15097
|
constructor() {
|
|
15097
15098
|
super("common.BulkedHubMessage", [
|
|
15098
15099
|
{ no: 1, name: "messages", kind: "message", repeat: 1, T: () => Uu }
|
|
15099
15100
|
]);
|
|
15100
15101
|
}
|
|
15101
15102
|
}
|
|
15102
|
-
new
|
|
15103
|
+
new VA();
|
|
15103
15104
|
class xA extends MessageType {
|
|
15104
15105
|
constructor() {
|
|
15105
15106
|
super("common.CFWorkersResponse", [
|
|
@@ -15663,11 +15664,11 @@ function Rf(s) {
|
|
|
15663
15664
|
t[r] = s[e];
|
|
15664
15665
|
}), t;
|
|
15665
15666
|
}
|
|
15666
|
-
function
|
|
15667
|
+
function Ld(s, t = {}) {
|
|
15667
15668
|
return s == null ? {} : (Object.getOwnPropertyNames(s).forEach((e) => {
|
|
15668
15669
|
if (typeof s[e] != "function") {
|
|
15669
15670
|
if (typeof s[e] == "object") {
|
|
15670
|
-
|
|
15671
|
+
Ld(s[e], t[e] = {});
|
|
15671
15672
|
return;
|
|
15672
15673
|
}
|
|
15673
15674
|
t[e] = s[e];
|
|
@@ -15902,7 +15903,7 @@ class jt extends aM {
|
|
|
15902
15903
|
var n, o, c, d, l, p, f;
|
|
15903
15904
|
if (this.pluginInformation)
|
|
15904
15905
|
return this.pluginInformation;
|
|
15905
|
-
const { plugins: e } = (yield this.requests.get("/v2/plugins/user")).data.data, r = ((o = (n = this.context.getValue("flagsmith").getValue(
|
|
15906
|
+
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(
|
|
15906
15907
|
(S, T) => (S[r.includes(T.id) ? "v1" : "v2"].push(B(D({}, T), { name: T.name.replace("v2", "") })), S),
|
|
15907
15908
|
{ v1: [], v2: [] }
|
|
15908
15909
|
);
|
|
@@ -15950,7 +15951,7 @@ class jt extends aM {
|
|
|
15950
15951
|
filename: e,
|
|
15951
15952
|
expiry: typeof i == "number" ? i : void 0
|
|
15952
15953
|
};
|
|
15953
|
-
this.context.getValue("flagsmith").hasFeature(
|
|
15954
|
+
this.context.getValue("flagsmith").hasFeature(Y.FEAT_CHAT_SDK) && (n.viewType = r);
|
|
15954
15955
|
const { getLocation: o, putLocation: c } = (yield this.requests.post("/v1/meetings/genPreSignedUploadUrl", n)).data.data;
|
|
15955
15956
|
return {
|
|
15956
15957
|
getLocation: o,
|
|
@@ -16618,7 +16619,7 @@ let Qe = (kg = class extends qt {
|
|
|
16618
16619
|
}
|
|
16619
16620
|
searchMessages(r) {
|
|
16620
16621
|
return u(this, arguments, function* (t, e = {}) {
|
|
16621
|
-
if (!a(this, Ti).getValue("flagsmith").hasFeature(
|
|
16622
|
+
if (!a(this, Ti).getValue("flagsmith").hasFeature(Y.FEAT_CHAT_SDK_SEARCH))
|
|
16622
16623
|
throw new R("searchMessages is temporarily disabled!", "0506");
|
|
16623
16624
|
return (yield a(this, Fe).searchMessages(t, e)).map(Es.formatSocketServiceMessage);
|
|
16624
16625
|
});
|
|
@@ -16788,7 +16789,7 @@ const ci = (Ig = class {
|
|
|
16788
16789
|
}
|
|
16789
16790
|
getChatMessages() {
|
|
16790
16791
|
return u(this, null, function* () {
|
|
16791
|
-
if (this.self.config.viewType === "LIVESTREAM" || this.self.config.viewType === "CHAT" || a(this, Dr).getValue("flagsmith").hasFeature(
|
|
16792
|
+
if (this.self.config.viewType === "LIVESTREAM" || this.self.config.viewType === "CHAT" || a(this, Dr).getValue("flagsmith").hasFeature(Y.FEAT_PAGINATED_CHAT))
|
|
16792
16793
|
return;
|
|
16793
16794
|
const s = yield this.chatSocketHandler.getChatMessages();
|
|
16794
16795
|
if (!(s != null && s.payload))
|
|
@@ -17509,17 +17510,17 @@ class ii extends qt {
|
|
|
17509
17510
|
"2006"
|
|
17510
17511
|
);
|
|
17511
17512
|
if (a(this, ae).permissions.stageAccess === j.Allowed) {
|
|
17512
|
-
|
|
17513
|
+
V(this, Ya, vd).call(this, "ACCEPTED_TO_JOIN_STAGE");
|
|
17513
17514
|
return;
|
|
17514
17515
|
}
|
|
17515
|
-
a(this, Yt).requestAccess(),
|
|
17516
|
+
a(this, Yt).requestAccess(), V(this, Ya, vd).call(this, "REQUESTED_TO_JOIN_STAGE");
|
|
17516
17517
|
});
|
|
17517
17518
|
}
|
|
17518
17519
|
cancelRequestAccess() {
|
|
17519
17520
|
return u(this, null, function* () {
|
|
17520
17521
|
if (!a(this, ae).permissions.stageEnabled)
|
|
17521
17522
|
throw this.logger.error("DyteStage::stage_disabled"), new R("Stage is disabled", "2003");
|
|
17522
|
-
a(this, Yt).cancelRequestAccess(),
|
|
17523
|
+
a(this, Yt).cancelRequestAccess(), V(this, Ya, vd).call(this, "OFF_STAGE");
|
|
17523
17524
|
});
|
|
17524
17525
|
}
|
|
17525
17526
|
grantAccess(e) {
|
|
@@ -17644,17 +17645,17 @@ function Nh(s) {
|
|
|
17644
17645
|
return "OFF_STAGE";
|
|
17645
17646
|
}
|
|
17646
17647
|
}
|
|
17647
|
-
var NM = Object.defineProperty,
|
|
17648
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
17648
|
+
var NM = Object.defineProperty, LM = Object.getOwnPropertyDescriptor, VM = (s, t, e, r) => {
|
|
17649
|
+
for (var i = r > 1 ? void 0 : r ? LM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
17649
17650
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
17650
17651
|
return r && i && NM(t, e, i), i;
|
|
17651
|
-
},
|
|
17652
|
+
}, Lr, Pi, Vr, Jo, ft;
|
|
17652
17653
|
class Nf {
|
|
17653
17654
|
constructor(t, e, r, i, n) {
|
|
17654
17655
|
h(this, "stage");
|
|
17655
|
-
g(this, Vr, void 0);
|
|
17656
|
-
g(this, Pi, void 0);
|
|
17657
17656
|
g(this, Lr, void 0);
|
|
17657
|
+
g(this, Pi, void 0);
|
|
17658
|
+
g(this, Vr, void 0);
|
|
17658
17659
|
g(this, Jo, 0);
|
|
17659
17660
|
g(this, ft, void 0);
|
|
17660
17661
|
m(this, ft, t), this.stage = new ii(
|
|
@@ -17663,7 +17664,7 @@ class Nf {
|
|
|
17663
17664
|
n,
|
|
17664
17665
|
e,
|
|
17665
17666
|
r
|
|
17666
|
-
), m(this,
|
|
17667
|
+
), m(this, Vr, e), m(this, Lr, i), m(this, Pi, n), this.setupEvents();
|
|
17667
17668
|
}
|
|
17668
17669
|
get telemetry() {
|
|
17669
17670
|
return a(this, ft).getValue("telemetry");
|
|
@@ -17674,17 +17675,17 @@ class Nf {
|
|
|
17674
17675
|
setupEvents() {
|
|
17675
17676
|
a(this, ft).subscribe("stageStatus", (t) => {
|
|
17676
17677
|
this.stage.emit("stageStatusUpdate", t);
|
|
17677
|
-
}), a(this,
|
|
17678
|
-
a(this,
|
|
17679
|
-
}), a(this,
|
|
17680
|
-
t !== void 0 && (t.peerId === a(this,
|
|
17681
|
-
}), a(this,
|
|
17682
|
-
a(this,
|
|
17683
|
-
}), a(this,
|
|
17678
|
+
}), a(this, Vr).on(x.grantStageAccess, () => {
|
|
17679
|
+
a(this, Lr).permissions.stageAccess !== j.Allowed && (this.stage.emit("stageRequestApproved"), this.setStageStatus("ACCEPTED_TO_JOIN_STAGE"));
|
|
17680
|
+
}), a(this, Vr).on(x.peerStageStatusUpdate, (t) => {
|
|
17681
|
+
t !== void 0 && (t.peerId === a(this, Lr).id ? this.selfStageStatusHandler(t) : this.peerStageStatusHandler(t));
|
|
17682
|
+
}), a(this, Vr).on(x.denyStageAccess, () => {
|
|
17683
|
+
a(this, Lr).permissions.stageAccess !== j.Allowed && (this.stage.emit("stageRequestRejected"), this.setStageStatus("OFF_STAGE"));
|
|
17684
|
+
}), a(this, Vr).on(
|
|
17684
17685
|
x.getStageRequests,
|
|
17685
17686
|
(t) => u(this, null, function* () {
|
|
17686
17687
|
var r;
|
|
17687
|
-
if (a(this,
|
|
17688
|
+
if (a(this, Lr).permissions.stageAccess !== j.Allowed)
|
|
17688
17689
|
return;
|
|
17689
17690
|
const e = (r = t == null ? void 0 : t.stageRequests) != null ? r : [];
|
|
17690
17691
|
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);
|
|
@@ -17753,8 +17754,8 @@ class Nf {
|
|
|
17753
17754
|
});
|
|
17754
17755
|
}
|
|
17755
17756
|
}
|
|
17756
|
-
|
|
17757
|
-
|
|
17757
|
+
Lr = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), Jo = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap();
|
|
17758
|
+
VM([
|
|
17758
17759
|
E.trace("DyteStage.setupEvents")
|
|
17759
17760
|
], Nf.prototype, "setupEvents", 1);
|
|
17760
17761
|
var xM = Object.defineProperty, UM = Object.getOwnPropertyDescriptor, Wl = (s, t, e, r) => {
|
|
@@ -17776,8 +17777,8 @@ const Ie = {
|
|
|
17776
17777
|
stageStatusUpdate: 25,
|
|
17777
17778
|
peerStageStatusUpdate: 26
|
|
17778
17779
|
};
|
|
17779
|
-
var at, Ut, Qa, Xa, Ks, Za, xr, en,
|
|
17780
|
-
let Wn = (
|
|
17780
|
+
var at, Ut, Qa, Xa, Ks, Za, xr, en, Lg;
|
|
17781
|
+
let Wn = (Lg = class extends Jn {
|
|
17781
17782
|
constructor(t, {
|
|
17782
17783
|
baseURL: e,
|
|
17783
17784
|
createdAt: r,
|
|
@@ -17950,13 +17951,13 @@ let Wn = (Vg = class extends Jn {
|
|
|
17950
17951
|
});
|
|
17951
17952
|
d ? (c = a(this, Qa).joined.get(r.peerId), a(this, Ut).id === d && (c = l)) : c = l, this.sendIframeEvent({
|
|
17952
17953
|
type: Ie.getPeer,
|
|
17953
|
-
payload: { peer: c &&
|
|
17954
|
+
payload: { peer: c && Ld(c) },
|
|
17954
17955
|
uuid: e.uuid
|
|
17955
17956
|
});
|
|
17956
17957
|
break;
|
|
17957
17958
|
}
|
|
17958
17959
|
case Ie.getPeers: {
|
|
17959
|
-
const c = a(this, Qa).joined.toArray().map((d) =>
|
|
17960
|
+
const c = a(this, Qa).joined.toArray().map((d) => Ld(d));
|
|
17960
17961
|
this.sendIframeEvent({
|
|
17961
17962
|
type: Ie.getPeers,
|
|
17962
17963
|
payload: { peers: c },
|
|
@@ -18112,7 +18113,7 @@ let Wn = (Vg = class extends Jn {
|
|
|
18112
18113
|
}), m(this, Ks, void 0)));
|
|
18113
18114
|
});
|
|
18114
18115
|
}
|
|
18115
|
-
}, 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(),
|
|
18116
|
+
}, 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);
|
|
18116
18117
|
Wl([
|
|
18117
18118
|
Dt({ maxInvocations: 5, period: 1 })
|
|
18118
18119
|
], Wn.prototype, "sendData", 1);
|
|
@@ -18126,7 +18127,7 @@ Wn = Wl([
|
|
|
18126
18127
|
ht("0600")
|
|
18127
18128
|
], Wn);
|
|
18128
18129
|
var Ne, Ci;
|
|
18129
|
-
class
|
|
18130
|
+
class Lf extends Map {
|
|
18130
18131
|
constructor(e, r = void 0) {
|
|
18131
18132
|
const {
|
|
18132
18133
|
onAddEvent: i,
|
|
@@ -18212,7 +18213,7 @@ class Vf extends Map {
|
|
|
18212
18213
|
}
|
|
18213
18214
|
}
|
|
18214
18215
|
Ne = /* @__PURE__ */ new WeakMap(), Ci = /* @__PURE__ */ new WeakMap();
|
|
18215
|
-
class ug extends
|
|
18216
|
+
class ug extends Lf {
|
|
18216
18217
|
constructor(t) {
|
|
18217
18218
|
super({
|
|
18218
18219
|
onAddEvent: "pluginAdded",
|
|
@@ -18245,8 +18246,8 @@ var BM = Object.defineProperty, qM = Object.getOwnPropertyDescriptor, Jl = (s, t
|
|
|
18245
18246
|
for (var i = r > 1 ? void 0 : r ? qM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
18246
18247
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
18247
18248
|
return r && i && BM(t, e, i), i;
|
|
18248
|
-
}, Qt, tn, ls,
|
|
18249
|
-
const
|
|
18249
|
+
}, Qt, tn, ls, Vg;
|
|
18250
|
+
const Vf = (Vg = class {
|
|
18250
18251
|
constructor(s, t, e, r) {
|
|
18251
18252
|
h(this, "plugins");
|
|
18252
18253
|
g(this, Qt, void 0);
|
|
@@ -18274,7 +18275,7 @@ const Lf = (Lg = class {
|
|
|
18274
18275
|
c
|
|
18275
18276
|
);
|
|
18276
18277
|
l.all.add(f);
|
|
18277
|
-
}), new
|
|
18278
|
+
}), new Vf(
|
|
18278
18279
|
s,
|
|
18279
18280
|
e,
|
|
18280
18281
|
r,
|
|
@@ -18436,7 +18437,7 @@ const Lf = (Lg = class {
|
|
|
18436
18437
|
this.broadcastIframeEvent(Ie.chatMessage, { message: t });
|
|
18437
18438
|
}
|
|
18438
18439
|
), a(this, ls).getValue("peerSessionStore").on(k.PEER_JOINED_INTERNAL, (s) => {
|
|
18439
|
-
const t =
|
|
18440
|
+
const t = Ld(s);
|
|
18440
18441
|
this.broadcastIframeEvent(Ie.peerJoined, t);
|
|
18441
18442
|
}), a(this, ls).getValue("peerSessionStore").on(k.PEER_CLOSED, (s) => {
|
|
18442
18443
|
this.broadcastIframeEvent(Ie.peerLeft, s);
|
|
@@ -18446,8 +18447,8 @@ const Lf = (Lg = class {
|
|
|
18446
18447
|
this.broadcastIframeEvent(Ie.stageStatusUpdate, s);
|
|
18447
18448
|
});
|
|
18448
18449
|
}
|
|
18449
|
-
}, Qt = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), ls = /* @__PURE__ */ new WeakMap(),
|
|
18450
|
-
let Kc =
|
|
18450
|
+
}, Qt = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), ls = /* @__PURE__ */ new WeakMap(), Vg);
|
|
18451
|
+
let Kc = Vf;
|
|
18451
18452
|
Jl([
|
|
18452
18453
|
E.trace("PluginController.getRoomPlugins")
|
|
18453
18454
|
], Kc.prototype, "getRoomPlugins", 1);
|
|
@@ -18590,17 +18591,17 @@ let ga = (xg = class extends qt {
|
|
|
18590
18591
|
}
|
|
18591
18592
|
stop(t) {
|
|
18592
18593
|
return u(this, null, function* () {
|
|
18593
|
-
yield
|
|
18594
|
+
yield V(this, an, yd).call(this, "stop", ["RECORDING", "PAUSED"], t);
|
|
18594
18595
|
});
|
|
18595
18596
|
}
|
|
18596
18597
|
pause(t) {
|
|
18597
18598
|
return u(this, null, function* () {
|
|
18598
|
-
yield
|
|
18599
|
+
yield V(this, an, yd).call(this, "pause", ["RECORDING"], t);
|
|
18599
18600
|
});
|
|
18600
18601
|
}
|
|
18601
18602
|
resume(t) {
|
|
18602
18603
|
return u(this, null, function* () {
|
|
18603
|
-
yield
|
|
18604
|
+
yield V(this, an, yd).call(this, "resume", ["PAUSED"], t);
|
|
18604
18605
|
});
|
|
18605
18606
|
}
|
|
18606
18607
|
}, sn = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakSet(), yd = function(t, e, r) {
|
|
@@ -18741,7 +18742,7 @@ class YM {
|
|
|
18741
18742
|
}
|
|
18742
18743
|
}
|
|
18743
18744
|
wi = /* @__PURE__ */ new WeakMap();
|
|
18744
|
-
class
|
|
18745
|
+
class Lh {
|
|
18745
18746
|
constructor(t, e, r) {
|
|
18746
18747
|
h(this, "logger");
|
|
18747
18748
|
h(this, "features");
|
|
@@ -18750,18 +18751,18 @@ class Vh {
|
|
|
18750
18751
|
this.logger = t, this.features = e, this.browserSpecs = Te, this.callStats = r;
|
|
18751
18752
|
}
|
|
18752
18753
|
static init(t) {
|
|
18753
|
-
return new
|
|
18754
|
+
return new Lh(t.getValue("logger"), new YM(t), t.getValue("callstats"));
|
|
18754
18755
|
}
|
|
18755
18756
|
}
|
|
18756
|
-
class
|
|
18757
|
+
class Vh {
|
|
18757
18758
|
constructor(t) {
|
|
18758
18759
|
h(this, "internals");
|
|
18759
18760
|
this.internals = t;
|
|
18760
18761
|
}
|
|
18761
18762
|
static init(t) {
|
|
18762
18763
|
return u(this, null, function* () {
|
|
18763
|
-
const e =
|
|
18764
|
-
return new
|
|
18764
|
+
const e = Lh.init(t);
|
|
18765
|
+
return new Vh(e);
|
|
18765
18766
|
});
|
|
18766
18767
|
}
|
|
18767
18768
|
}
|
|
@@ -19349,8 +19350,8 @@ const hg = {
|
|
|
19349
19350
|
var c;
|
|
19350
19351
|
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);
|
|
19351
19352
|
let r = s0;
|
|
19352
|
-
s.getValue("flagsmith").hasFeature(
|
|
19353
|
-
|
|
19353
|
+
s.getValue("flagsmith").hasFeature(Y.OVERRIDE_HIVE_SIMULCAST_DYNAMIC) && (r = JSON.parse(s.getValue("flagsmith").getValue(
|
|
19354
|
+
Y.OVERRIDE_HIVE_SIMULCAST_DYNAMIC
|
|
19354
19355
|
)));
|
|
19355
19356
|
const i = r.map(([d]) => d).sort((d, l) => d - l);
|
|
19356
19357
|
let n = Number.MAX_VALUE, o = 0;
|
|
@@ -19380,8 +19381,8 @@ class n0 {
|
|
|
19380
19381
|
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;
|
|
19381
19382
|
let n = (A = (w = t2 == null ? void 0 : t2.frameRate) == null ? void 0 : w.ideal) != null ? A : 5;
|
|
19382
19383
|
const o = t2 == null ? void 0 : t2.displaySurface, c = t2 == null ? void 0 : t2.selfBrowserSurface;
|
|
19383
|
-
a(this, As).getValue("flagsmith").getValue(
|
|
19384
|
-
(N = a(this, As).getValue("flagsmith").getValue(
|
|
19384
|
+
a(this, As).getValue("flagsmith").getValue(Y.VAL_MIN_FRAMERATE) && (n = parseInt(
|
|
19385
|
+
(N = a(this, As).getValue("flagsmith").getValue(Y.VAL_MIN_FRAMERATE)) == null ? void 0 : N.toString(),
|
|
19385
19386
|
10
|
|
19386
19387
|
));
|
|
19387
19388
|
let d = {
|
|
@@ -19392,9 +19393,9 @@ class n0 {
|
|
|
19392
19393
|
max: i
|
|
19393
19394
|
}
|
|
19394
19395
|
};
|
|
19395
|
-
if (a(this, As).getValue("flagsmith").hasFeature(
|
|
19396
|
+
if (a(this, As).getValue("flagsmith").hasFeature(Y.SCREENSHARE_CONSTRAINTS)) {
|
|
19396
19397
|
const $ = (H = a(this, As).getValue("flagsmith").getValue(
|
|
19397
|
-
|
|
19398
|
+
Y.SCREENSHARE_CONSTRAINTS
|
|
19398
19399
|
)) == null ? void 0 : H.toString();
|
|
19399
19400
|
d = JSON.parse($);
|
|
19400
19401
|
}
|
|
@@ -19425,9 +19426,9 @@ class n0 {
|
|
|
19425
19426
|
let i = hg.vga;
|
|
19426
19427
|
if (typeof r == "string" ? i = hg[r] : r !== void 0 && (i.height.ideal = r.height.ideal, i.width.ideal = r.width.ideal), i.frameRate = {
|
|
19427
19428
|
ideal: (c = (o = i.frameRate) == null ? void 0 : o.ideal) != null ? c : 24
|
|
19428
|
-
}, Te.isChromiumBased() && (i.frameRate.max = 30), a(this, As).getValue("flagsmith").hasFeature(
|
|
19429
|
+
}, Te.isChromiumBased() && (i.frameRate.max = 30), a(this, As).getValue("flagsmith").hasFeature(Y.VIDEO_CONSTRAINTS)) {
|
|
19429
19430
|
const l = (d = a(this, As).getValue("flagsmith").getValue(
|
|
19430
|
-
|
|
19431
|
+
Y.VIDEO_CONSTRAINTS
|
|
19431
19432
|
)) == null ? void 0 : d.toString();
|
|
19432
19433
|
i = JSON.parse(l);
|
|
19433
19434
|
}
|
|
@@ -19480,21 +19481,21 @@ var c0 = Object.defineProperty, d0 = Object.getOwnPropertyDescriptor, bs = (s, t
|
|
|
19480
19481
|
for (var i = r > 1 ? void 0 : r ? d0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
19481
19482
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
19482
19483
|
return r && i && c0(t, e, i), i;
|
|
19483
|
-
}, nn, Zt,
|
|
19484
|
+
}, nn, Zt, Le, Ug;
|
|
19484
19485
|
let Bt = (Ug = class extends o0 {
|
|
19485
19486
|
constructor(t, e) {
|
|
19486
19487
|
super();
|
|
19487
19488
|
h(this, "availableDevices");
|
|
19488
19489
|
g(this, nn, void 0);
|
|
19489
19490
|
g(this, Zt, void 0);
|
|
19490
|
-
g(this,
|
|
19491
|
-
m(this,
|
|
19491
|
+
g(this, Le, void 0);
|
|
19492
|
+
m(this, Le, t), m(this, Zt, new n0(t, e)), m(this, nn, new AbortController()), this.availableDevices = [], this.getAvailableDevices();
|
|
19492
19493
|
}
|
|
19493
19494
|
get telemetry() {
|
|
19494
|
-
return a(this,
|
|
19495
|
+
return a(this, Le).getValue("telemetry");
|
|
19495
19496
|
}
|
|
19496
19497
|
get logger() {
|
|
19497
|
-
return a(this,
|
|
19498
|
+
return a(this, Le).getValue("logger");
|
|
19498
19499
|
}
|
|
19499
19500
|
get constraintsBuilder() {
|
|
19500
19501
|
return a(this, Zt);
|
|
@@ -19507,7 +19508,7 @@ let Bt = (Ug = class extends o0 {
|
|
|
19507
19508
|
}
|
|
19508
19509
|
handlePermissionErrors(t, e) {
|
|
19509
19510
|
const r = cd(t, e.name, e.message);
|
|
19510
|
-
return this.permissions[t] = r, a(this,
|
|
19511
|
+
return this.permissions[t] = r, a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_ERROR, {
|
|
19511
19512
|
message: r,
|
|
19512
19513
|
constraints: e.constraints,
|
|
19513
19514
|
kind: t
|
|
@@ -19531,14 +19532,14 @@ let Bt = (Ug = class extends o0 {
|
|
|
19531
19532
|
});
|
|
19532
19533
|
const n = i.getAudioTracks()[0];
|
|
19533
19534
|
let o = i.getVideoTracks()[0];
|
|
19534
|
-
if (this.permissions.audio = "ACCEPTED", this.permissions.video = "ACCEPTED", a(this,
|
|
19535
|
+
if (this.permissions.audio = "ACCEPTED", this.permissions.video = "ACCEPTED", a(this, Le).getValue("flagsmith").hasFeature(Y.OBS_QUALITY) && o.label.includes("OBS Virtual")) {
|
|
19535
19536
|
const l = (yield this.getVideoInputDevices()).find((p) => p.label.includes("OBS Virtual"));
|
|
19536
19537
|
o = yield this.getVideoTrack(l.deviceId);
|
|
19537
19538
|
}
|
|
19538
|
-
return a(this,
|
|
19539
|
+
return a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
|
|
19539
19540
|
message: this.permissions.audio,
|
|
19540
19541
|
kind: "audio"
|
|
19541
|
-
}), a(this,
|
|
19542
|
+
}), a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
|
|
19542
19543
|
message: this.permissions.video,
|
|
19543
19544
|
kind: "video"
|
|
19544
19545
|
}), { audioTrack: n, videoTrack: o };
|
|
@@ -19551,7 +19552,7 @@ let Bt = (Ug = class extends o0 {
|
|
|
19551
19552
|
return u(this, null, function* () {
|
|
19552
19553
|
let r = yield this.getAudioInputDevices();
|
|
19553
19554
|
if (r.length === 0)
|
|
19554
|
-
throw this.permissions.audio = "NO_DEVICES_AVAILABLE", a(this,
|
|
19555
|
+
throw this.permissions.audio = "NO_DEVICES_AVAILABLE", a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
|
|
19555
19556
|
message: this.permissions.audio,
|
|
19556
19557
|
kind: "audio"
|
|
19557
19558
|
}), new R("No audio devices available", "1606");
|
|
@@ -19591,7 +19592,7 @@ let Bt = (Ug = class extends o0 {
|
|
|
19591
19592
|
});
|
|
19592
19593
|
try {
|
|
19593
19594
|
const n = yield i(e);
|
|
19594
|
-
return n.enabled = !t, this.permissions.audio !== "ACCEPTED" && (this.permissions.audio = "ACCEPTED", a(this,
|
|
19595
|
+
return n.enabled = !t, this.permissions.audio !== "ACCEPTED" && (this.permissions.audio = "ACCEPTED", a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
|
|
19595
19596
|
message: this.permissions.audio,
|
|
19596
19597
|
kind: "audio"
|
|
19597
19598
|
})), n;
|
|
@@ -19603,9 +19604,9 @@ let Bt = (Ug = class extends o0 {
|
|
|
19603
19604
|
getVideoTrack(t) {
|
|
19604
19605
|
return u(this, null, function* () {
|
|
19605
19606
|
var c;
|
|
19606
|
-
const e = a(this,
|
|
19607
|
+
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();
|
|
19607
19608
|
if (n.length === 0)
|
|
19608
|
-
throw this.permissions.video = "NO_DEVICES_AVAILABLE", a(this,
|
|
19609
|
+
throw this.permissions.video = "NO_DEVICES_AVAILABLE", a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
|
|
19609
19610
|
message: this.permissions.video,
|
|
19610
19611
|
kind: "video"
|
|
19611
19612
|
}), new R("No video devices available", "1607");
|
|
@@ -19656,7 +19657,7 @@ let Bt = (Ug = class extends o0 {
|
|
|
19656
19657
|
});
|
|
19657
19658
|
try {
|
|
19658
19659
|
const d = a(this, Zt).getVideoConstraints(t), l = yield o(d);
|
|
19659
|
-
return this.permissions.video !== "ACCEPTED" && (this.permissions.video = "ACCEPTED", a(this,
|
|
19660
|
+
return this.permissions.video !== "ACCEPTED" && (this.permissions.video = "ACCEPTED", a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
|
|
19660
19661
|
message: this.permissions.video,
|
|
19661
19662
|
kind: "video"
|
|
19662
19663
|
})), l;
|
|
@@ -19671,7 +19672,7 @@ let Bt = (Ug = class extends o0 {
|
|
|
19671
19672
|
try {
|
|
19672
19673
|
this.logger.info("getDisplayMediaWithoutTimeout::requesting_display_media", {
|
|
19673
19674
|
constraints: JSON.stringify(e)
|
|
19674
|
-
}), a(this,
|
|
19675
|
+
}), a(this, Le).getValue("callstats").screenShareRequested();
|
|
19675
19676
|
const r = yield navigator.mediaDevices.getDisplayMedia(
|
|
19676
19677
|
e
|
|
19677
19678
|
);
|
|
@@ -19684,7 +19685,7 @@ let Bt = (Ug = class extends o0 {
|
|
|
19684
19685
|
r.name,
|
|
19685
19686
|
r.message
|
|
19686
19687
|
), n = new Su(r.name, r.message, e), o = { video: true };
|
|
19687
|
-
if (SC(e, o) || !a(this,
|
|
19688
|
+
if (SC(e, o) || !a(this, Le).getValue("flagsmith").hasFeature(Y.SCREEENSHARE_CONSTRAINTS_RETRY))
|
|
19688
19689
|
throw n;
|
|
19689
19690
|
if (i === "COULD_NOT_START")
|
|
19690
19691
|
return t(o);
|
|
@@ -19693,7 +19694,7 @@ let Bt = (Ug = class extends o0 {
|
|
|
19693
19694
|
});
|
|
19694
19695
|
try {
|
|
19695
19696
|
const e = a(this, Zt).getScreenShareConstraints(), r = yield t(e);
|
|
19696
|
-
return this.permissions.screenshare !== "ACCEPTED" && (this.permissions.screenshare = "ACCEPTED", a(this,
|
|
19697
|
+
return this.permissions.screenshare !== "ACCEPTED" && (this.permissions.screenshare = "ACCEPTED", a(this, Le).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
|
|
19697
19698
|
message: this.permissions.screenshare,
|
|
19698
19699
|
kind: "screenshare"
|
|
19699
19700
|
})), {
|
|
@@ -19771,14 +19772,14 @@ let Bt = (Ug = class extends o0 {
|
|
|
19771
19772
|
devices: JSON.stringify(o)
|
|
19772
19773
|
});
|
|
19773
19774
|
const f = [...d.added, ...d.removed];
|
|
19774
|
-
f.some((S) => S.kind === "audioinput") && a(this,
|
|
19775
|
+
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);
|
|
19775
19776
|
}
|
|
19776
19777
|
}),
|
|
19777
19778
|
{ signal: a(this, nn).signal }
|
|
19778
19779
|
);
|
|
19779
19780
|
});
|
|
19780
19781
|
}
|
|
19781
|
-
}, nn = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(),
|
|
19782
|
+
}, nn = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Ug);
|
|
19782
19783
|
bs([
|
|
19783
19784
|
E.trace("WebMediaInterface.destruct")
|
|
19784
19785
|
], Bt.prototype, "destruct", 1);
|
|
@@ -19925,7 +19926,7 @@ var f0 = Object.defineProperty, S0 = Object.getOwnPropertyDescriptor, $f = (s, t
|
|
|
19925
19926
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
19926
19927
|
return r && i && f0(t, e, i), i;
|
|
19927
19928
|
};
|
|
19928
|
-
let
|
|
19929
|
+
let Vd = class extends Jn {
|
|
19929
19930
|
constructor(t, e, r, i) {
|
|
19930
19931
|
var o;
|
|
19931
19932
|
const n = t.getValue("logger");
|
|
@@ -20040,7 +20041,7 @@ let Ld = class extends Jn {
|
|
|
20040
20041
|
}
|
|
20041
20042
|
addMiddleware(t) {
|
|
20042
20043
|
return u(this, null, function* () {
|
|
20043
|
-
if (Te.isWebKitBased() && !$_.hasFeature(
|
|
20044
|
+
if (Te.isWebKitBased() && !$_.hasFeature(Y.ALLOW_SAFARI_MEDIA_MIDDLEWARES))
|
|
20044
20045
|
return {
|
|
20045
20046
|
success: false,
|
|
20046
20047
|
message: "Middlewares are not supported in this WebKit engine based browser."
|
|
@@ -20108,11 +20109,11 @@ let Ld = class extends Jn {
|
|
|
20108
20109
|
};
|
|
20109
20110
|
$f([
|
|
20110
20111
|
E.trace("BaseMediaHandler.unmuteTrack")
|
|
20111
|
-
],
|
|
20112
|
-
|
|
20112
|
+
], Vd.prototype, "unmuteTrack", 1);
|
|
20113
|
+
Vd = $f([
|
|
20113
20114
|
ht("1600")
|
|
20114
|
-
],
|
|
20115
|
-
const Ff =
|
|
20115
|
+
], Vd);
|
|
20116
|
+
const Ff = Vd;
|
|
20116
20117
|
var v0 = Object.defineProperty, y0 = Object.getOwnPropertyDescriptor, Uh = (s, t, e, r) => {
|
|
20117
20118
|
for (var i = r > 1 ? void 0 : r ? y0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
20118
20119
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
@@ -20824,7 +20825,7 @@ class Yn {
|
|
|
20824
20825
|
}
|
|
20825
20826
|
update(t, e, r = true) {
|
|
20826
20827
|
return u(this, null, function* () {
|
|
20827
|
-
|
|
20828
|
+
V(this, Kd, qf).call(this, t, e, r);
|
|
20828
20829
|
});
|
|
20829
20830
|
}
|
|
20830
20831
|
delete(t, e = true, r = false) {
|
|
@@ -20929,7 +20930,7 @@ Qc([
|
|
|
20929
20930
|
Dt(zn, "bulkRateLimitConfig")
|
|
20930
20931
|
], Yn.prototype, "bulkDelete", 1);
|
|
20931
20932
|
var Ai, Mi, tc, zu, sc, Fr, zd, jf;
|
|
20932
|
-
class
|
|
20933
|
+
class L0 {
|
|
20933
20934
|
constructor(t, e) {
|
|
20934
20935
|
g(this, tc);
|
|
20935
20936
|
g(this, zd);
|
|
@@ -20938,7 +20939,7 @@ class V0 {
|
|
|
20938
20939
|
g(this, Mi, "");
|
|
20939
20940
|
g(this, sc, void 0);
|
|
20940
20941
|
g(this, Fr, /* @__PURE__ */ new Map());
|
|
20941
|
-
m(this, Ai, e), m(this, Mi, t.getValue("meetingId")), m(this, sc, t),
|
|
20942
|
+
m(this, Ai, e), m(this, Mi, t.getValue("meetingId")), m(this, sc, t), V(this, zd, jf).call(this);
|
|
20942
20943
|
}
|
|
20943
20944
|
create(t) {
|
|
20944
20945
|
const e = new Yn(
|
|
@@ -21021,10 +21022,10 @@ function gi(s) {
|
|
|
21021
21022
|
}
|
|
21022
21023
|
} : {};
|
|
21023
21024
|
}
|
|
21024
|
-
var
|
|
21025
|
+
var V0 = Object.defineProperty, x0 = Object.getOwnPropertyDescriptor, Qn = (s, t, e, r) => {
|
|
21025
21026
|
for (var i = r > 1 ? void 0 : r ? x0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
21026
21027
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
21027
|
-
return r && i &&
|
|
21028
|
+
return r && i && V0(t, e, i), i;
|
|
21028
21029
|
};
|
|
21029
21030
|
const U0 = 0.8, $0 = 1.2;
|
|
21030
21031
|
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;
|
|
@@ -21102,7 +21103,7 @@ let yr = ($g = class extends qt {
|
|
|
21102
21103
|
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 = {
|
|
21103
21104
|
audio: void 0,
|
|
21104
21105
|
video: void 0
|
|
21105
|
-
}, 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),
|
|
21106
|
+
}, 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);
|
|
21106
21107
|
}
|
|
21107
21108
|
get clientSpecificId() {
|
|
21108
21109
|
return this.customParticipantId;
|
|
@@ -21132,7 +21133,7 @@ let yr = ($g = class extends qt {
|
|
|
21132
21133
|
});
|
|
21133
21134
|
}
|
|
21134
21135
|
setupEvents() {
|
|
21135
|
-
this.on("videoUpdate",
|
|
21136
|
+
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)));
|
|
21136
21137
|
}
|
|
21137
21138
|
pin() {
|
|
21138
21139
|
return u(this, null, function* () {
|
|
@@ -21304,7 +21305,7 @@ Qn([
|
|
|
21304
21305
|
yr = Qn([
|
|
21305
21306
|
ht("1200")
|
|
21306
21307
|
], yr);
|
|
21307
|
-
class mi extends
|
|
21308
|
+
class mi extends Lf {
|
|
21308
21309
|
constructor(t, e) {
|
|
21309
21310
|
const {
|
|
21310
21311
|
onAddEvent: r = "participantJoined",
|
|
@@ -21429,13 +21430,13 @@ var q0 = Object.defineProperty, j0 = Object.getOwnPropertyDescriptor, Wt = (s, t
|
|
|
21429
21430
|
return r && i && q0(t, e, i), i;
|
|
21430
21431
|
};
|
|
21431
21432
|
const G0 = ["ACTIVE_GRID", "PAGINATED", "MANUAL"];
|
|
21432
|
-
var
|
|
21433
|
+
var Ve, Li, Eo, Vi, _o, mn, Td, xi, wt, Fg;
|
|
21433
21434
|
let Pt = (Fg = class extends qt {
|
|
21434
21435
|
constructor(t, e, r) {
|
|
21435
21436
|
const i = t.getValue("logger");
|
|
21436
21437
|
super(i);
|
|
21437
|
-
g(this, Vi);
|
|
21438
21438
|
g(this, Li);
|
|
21439
|
+
g(this, Vi);
|
|
21439
21440
|
g(this, mn);
|
|
21440
21441
|
h(this, "waitlisted");
|
|
21441
21442
|
h(this, "joined");
|
|
@@ -21444,7 +21445,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21444
21445
|
h(this, "audioSubscribed");
|
|
21445
21446
|
h(this, "pinned");
|
|
21446
21447
|
h(this, "all");
|
|
21447
|
-
g(this,
|
|
21448
|
+
g(this, Ve, void 0);
|
|
21448
21449
|
g(this, xi, void 0);
|
|
21449
21450
|
g(this, wt, void 0);
|
|
21450
21451
|
h(this, "rateLimitConfig", {
|
|
@@ -21455,10 +21456,10 @@ let Pt = (Fg = class extends qt {
|
|
|
21455
21456
|
h(this, "currentPage");
|
|
21456
21457
|
h(this, "lastActiveSpeaker");
|
|
21457
21458
|
h(this, "selectedPeers", Kf);
|
|
21458
|
-
m(this,
|
|
21459
|
+
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();
|
|
21459
21460
|
}
|
|
21460
21461
|
get pip() {
|
|
21461
|
-
return a(this,
|
|
21462
|
+
return a(this, Ve).getValue("pip");
|
|
21462
21463
|
}
|
|
21463
21464
|
get rateLimits() {
|
|
21464
21465
|
return this.rateLimitConfig;
|
|
@@ -21467,17 +21468,17 @@ let Pt = (Fg = class extends qt {
|
|
|
21467
21468
|
this.rateLimitConfig.maxInvocations = t, this.rateLimitConfig.period = e;
|
|
21468
21469
|
}
|
|
21469
21470
|
get telemetry() {
|
|
21470
|
-
return a(this,
|
|
21471
|
+
return a(this, Ve).getValue("telemetry");
|
|
21471
21472
|
}
|
|
21472
21473
|
setupEvents() {
|
|
21473
|
-
a(this,
|
|
21474
|
+
a(this, Ve).getValue("peerSessionStore").on(k.E2EE_ACTIVE_CONSUMER, ({ peerId: e }) => {
|
|
21474
21475
|
var r;
|
|
21475
|
-
((r = a(this,
|
|
21476
|
+
((r = a(this, Ve).getValue("modules").e2ee) == null ? void 0 : r.enabled) !== true && this.emit("media_decode_error", {
|
|
21476
21477
|
reason: `Got encrypted media for participantId ${e}, but encryption wasn't enabled in init.defaults`,
|
|
21477
21478
|
code: "1702"
|
|
21478
21479
|
});
|
|
21479
21480
|
});
|
|
21480
|
-
const t = a(this,
|
|
21481
|
+
const t = a(this, Ve).getValue("audioPlayback");
|
|
21481
21482
|
t && this.audioSubscribed.on("participantLeft", (e) => {
|
|
21482
21483
|
t.removeParticipantTrack(e.id);
|
|
21483
21484
|
});
|
|
@@ -21487,12 +21488,12 @@ let Pt = (Fg = class extends qt {
|
|
|
21487
21488
|
}
|
|
21488
21489
|
get maxActiveParticipantsCount() {
|
|
21489
21490
|
var t;
|
|
21490
|
-
return (t = a(this,
|
|
21491
|
+
return (t = a(this, Ve)) == null ? void 0 : t.getValue("maxPreferredStreams");
|
|
21491
21492
|
}
|
|
21492
21493
|
setMaxActiveParticipantsCount(t) {
|
|
21493
21494
|
if (t < 0 || t > 24)
|
|
21494
21495
|
throw new R("0 <= Max active participants count limit <= 24", "1203");
|
|
21495
|
-
a(this,
|
|
21496
|
+
a(this, Ve).setValue("maxPreferredStreams", t), a(this, mn, Td) && a(this, Ve).getValue("peerSessionStore").emit(k.UPDATE_ACTIVE);
|
|
21496
21497
|
}
|
|
21497
21498
|
get pageCount() {
|
|
21498
21499
|
if (this.viewMode === "PAGINATED") {
|
|
@@ -21505,7 +21506,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21505
21506
|
}
|
|
21506
21507
|
acceptWaitingRoomRequest(t) {
|
|
21507
21508
|
var r, i;
|
|
21508
|
-
if (!a(this,
|
|
21509
|
+
if (!a(this, Vi, _o))
|
|
21509
21510
|
throw new R(
|
|
21510
21511
|
"Can`t accept waiting room request without joining room",
|
|
21511
21512
|
"1205"
|
|
@@ -21525,7 +21526,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21525
21526
|
rejectWaitingRoomRequest(t) {
|
|
21526
21527
|
return u(this, null, function* () {
|
|
21527
21528
|
var r, i;
|
|
21528
|
-
if (!a(this,
|
|
21529
|
+
if (!a(this, Vi, _o))
|
|
21529
21530
|
throw new R(
|
|
21530
21531
|
"Can`t reject waiting room request without joining room",
|
|
21531
21532
|
"1205"
|
|
@@ -21566,7 +21567,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21566
21567
|
"Manual Subscription is not enabled for your Organization. Please contact support.",
|
|
21567
21568
|
"1208"
|
|
21568
21569
|
);
|
|
21569
|
-
this.viewMode = t, t === "PAGINATED" ? (this.currentPage = 1, a(this,
|
|
21570
|
+
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", {
|
|
21570
21571
|
viewMode: t,
|
|
21571
21572
|
currentPage: this.currentPage,
|
|
21572
21573
|
pageCount: this.pageCount
|
|
@@ -21614,7 +21615,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21614
21615
|
i.push(c);
|
|
21615
21616
|
}
|
|
21616
21617
|
}
|
|
21617
|
-
}), yield a(this,
|
|
21618
|
+
}), yield a(this, Li, Eo).createConsumers(i);
|
|
21618
21619
|
});
|
|
21619
21620
|
}
|
|
21620
21621
|
unsubscribe(r) {
|
|
@@ -21658,7 +21659,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21658
21659
|
i.push(c);
|
|
21659
21660
|
}
|
|
21660
21661
|
}
|
|
21661
|
-
}), yield a(this,
|
|
21662
|
+
}), yield a(this, Li, Eo).closeConsumers(i);
|
|
21662
21663
|
});
|
|
21663
21664
|
}
|
|
21664
21665
|
getPeerIdsForCurrentPage() {
|
|
@@ -21692,7 +21693,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21692
21693
|
}), this.viewMode === "PAGINATED") {
|
|
21693
21694
|
if (!Number.isInteger(t))
|
|
21694
21695
|
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");
|
|
21695
|
-
this.currentPage = t, a(this,
|
|
21696
|
+
this.currentPage = t, a(this, Ve).getValue("peerSessionStore").emit(k.UPDATE_ACTIVE, { page: t }), this.emit("pageChanged", {
|
|
21696
21697
|
viewMode: this.viewMode,
|
|
21697
21698
|
currentPage: this.currentPage,
|
|
21698
21699
|
pageCount: this.pageCount
|
|
@@ -21707,7 +21708,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21707
21708
|
}), !a(this, mn, Td))
|
|
21708
21709
|
throw new R("Can`t disable all audio without joining room", "1205");
|
|
21709
21710
|
if (a(this, xi).permissions.canAllowParticipantAudio)
|
|
21710
|
-
return a(this,
|
|
21711
|
+
return a(this, Li, Eo).muteAll(t);
|
|
21711
21712
|
throw this.logger.error("DyteParticipants::unauthorized_disable_all_audio", {
|
|
21712
21713
|
actions: { disableAllAudio: { allowUnmute: t } }
|
|
21713
21714
|
}), new R(
|
|
@@ -21721,7 +21722,7 @@ let Pt = (Fg = class extends qt {
|
|
|
21721
21722
|
if (this.logger.info("DyteParticipants::disable_all_video"), !a(this, mn, Td))
|
|
21722
21723
|
throw new R("Can`t disable all video without joining room", "1205");
|
|
21723
21724
|
if (a(this, xi).permissions.canAllowParticipantVideo)
|
|
21724
|
-
return a(this,
|
|
21725
|
+
return a(this, Li, Eo).muteAllVideo();
|
|
21725
21726
|
throw this.logger.error("DyteParticipants::unauthorized_disable_all_video"), new R(
|
|
21726
21727
|
"Unauthorized: User does not have permission to disable peer video.",
|
|
21727
21728
|
"1201"
|
|
@@ -21740,27 +21741,27 @@ let Pt = (Fg = class extends qt {
|
|
|
21740
21741
|
}
|
|
21741
21742
|
kick(t) {
|
|
21742
21743
|
return u(this, null, function* () {
|
|
21743
|
-
yield a(this,
|
|
21744
|
+
yield a(this, Ve).getValue("peerSessionStore").emitAsync(k.KICK_PEER, {
|
|
21744
21745
|
peerId: t
|
|
21745
21746
|
});
|
|
21746
21747
|
});
|
|
21747
21748
|
}
|
|
21748
21749
|
kickAll() {
|
|
21749
21750
|
return u(this, null, function* () {
|
|
21750
|
-
if (this.logger.info("DyteParticipants::kick_all"), a(this,
|
|
21751
|
+
if (this.logger.info("DyteParticipants::kick_all"), a(this, Ve).getValue("viewType") !== "LIVESTREAM" && !a(this, Vi, _o))
|
|
21751
21752
|
throw new R("Can`t kick all without joining room", "1205");
|
|
21752
21753
|
if (!a(this, xi).permissions.kickParticipant)
|
|
21753
21754
|
throw this.logger.error("DyteParticipants::unauthorized_kick_all"), new R(
|
|
21754
21755
|
"Unauthorized: User does not have permission to kick peers.",
|
|
21755
21756
|
"1201"
|
|
21756
21757
|
);
|
|
21757
|
-
const e = a(this,
|
|
21758
|
+
const e = a(this, Ve).getValue("flagsmith").hasFeature(Y.PROPAGATE_KICK_ALL);
|
|
21758
21759
|
a(this, wt).kickAll(e);
|
|
21759
21760
|
});
|
|
21760
21761
|
}
|
|
21761
21762
|
broadcastMessage(t, e, r) {
|
|
21762
21763
|
return u(this, null, function* () {
|
|
21763
|
-
if (this.logger.info("DyteParticipants::broadcastMessage"), !a(this,
|
|
21764
|
+
if (this.logger.info("DyteParticipants::broadcastMessage"), !a(this, Vi, _o))
|
|
21764
21765
|
throw new R("Can`t broadcast message without joining room", "1205");
|
|
21765
21766
|
if (!(t != null && t.trim()))
|
|
21766
21767
|
throw new R("`type` must be a non-empty string.", "1209");
|
|
@@ -21798,14 +21799,14 @@ let Pt = (Fg = class extends qt {
|
|
|
21798
21799
|
return a(this, wt).getRoomPeersNonPaginated();
|
|
21799
21800
|
});
|
|
21800
21801
|
}
|
|
21801
|
-
},
|
|
21802
|
-
return a(this,
|
|
21803
|
-
},
|
|
21802
|
+
}, Ve = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakSet(), Eo = function() {
|
|
21803
|
+
return a(this, Ve).getValue("roomNodeClient");
|
|
21804
|
+
}, Vi = /* @__PURE__ */ new WeakSet(), _o = function() {
|
|
21804
21805
|
var t;
|
|
21805
|
-
return ((t = a(this,
|
|
21806
|
+
return ((t = a(this, Ve).getValue("connectionHandler")) == null ? void 0 : t.socketJoined) === true;
|
|
21806
21807
|
}, mn = /* @__PURE__ */ new WeakSet(), Td = function() {
|
|
21807
21808
|
var t;
|
|
21808
|
-
return ((t = a(this,
|
|
21809
|
+
return ((t = a(this, Ve).getValue("connectionHandler")) == null ? void 0 : t.mediaJoined) === true;
|
|
21809
21810
|
}, xi = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Fg);
|
|
21810
21811
|
Wt([
|
|
21811
21812
|
E.trace("DyteParticipants.setViewMode")
|
|
@@ -21931,7 +21932,7 @@ const ba = (Hg = class {
|
|
|
21931
21932
|
x.getWaitingRoomRequests,
|
|
21932
21933
|
this.waitingRoomRequestHandler.bind(this)
|
|
21933
21934
|
), this.context.getValue("peerSessionStore").on(k.SOCKET_PEERS, (s) => u(this, null, function* () {
|
|
21934
|
-
const t = this.context.getValue("flagsmith").hasFeature(
|
|
21935
|
+
const t = this.context.getValue("flagsmith").hasFeature(Y.DEBUG_SOCKET_JOIN);
|
|
21935
21936
|
if (t) {
|
|
21936
21937
|
const e = s && (s == null ? void 0 : s.length) < 20 ? {
|
|
21937
21938
|
peers: JSON.stringify(s.map((r) => r.peerId))
|
|
@@ -21944,7 +21945,7 @@ const ba = (Hg = class {
|
|
|
21944
21945
|
})), this.roomSocketHandler.on(
|
|
21945
21946
|
this.events.peerJoinedBroadcast,
|
|
21946
21947
|
({ participant: s }) => {
|
|
21947
|
-
this.context.getValue("flagsmith").hasFeature(
|
|
21948
|
+
this.context.getValue("flagsmith").hasFeature(Y.DEBUG_SOCKET_JOIN) && this.logger.info("events.peerJoinedBroadcast", { peers: s.peerId }), this.onMediaJoined(
|
|
21948
21949
|
s.peerId,
|
|
21949
21950
|
s.producerStates,
|
|
21950
21951
|
s.capabilities
|
|
@@ -21953,7 +21954,7 @@ const ba = (Hg = class {
|
|
|
21953
21954
|
), this.roomSocketHandler.on(
|
|
21954
21955
|
this.events.selfJoinComplete,
|
|
21955
21956
|
({ participants: s, selectedPeers: t, roomState: e }) => {
|
|
21956
|
-
if (this.context.getValue("flagsmith").hasFeature(
|
|
21957
|
+
if (this.context.getValue("flagsmith").hasFeature(Y.DEBUG_SOCKET_JOIN)) {
|
|
21957
21958
|
const n = s && (s == null ? void 0 : s.length) < 20 ? {
|
|
21958
21959
|
peers: JSON.stringify(s.map((o) => o.peerId))
|
|
21959
21960
|
} : void 0;
|
|
@@ -21971,7 +21972,7 @@ const ba = (Hg = class {
|
|
|
21971
21972
|
k.MAX_SPATIAL_LAYER_CHANGE,
|
|
21972
21973
|
({ peerId: s, maxSpatialLayer: t }) => {
|
|
21973
21974
|
const e = this.videoPeerConsumerMap.get(s);
|
|
21974
|
-
e && (this.maxSpatialLayerUpdates.set(e, t), this.updateConsumerSpatialLayers());
|
|
21975
|
+
e && (this.context.getValue("flagsmith").hasFeature(Y.DISABLE_LAYER_SWITCH) || (this.maxSpatialLayerUpdates.set(e, t), this.updateConsumerSpatialLayers()));
|
|
21975
21976
|
}
|
|
21976
21977
|
), this.context.getValue("peerSessionStore").on(
|
|
21977
21978
|
k.NEW_PRODUCER,
|
|
@@ -22195,8 +22196,8 @@ const ba = (Hg = class {
|
|
|
22195
22196
|
}
|
|
22196
22197
|
m(this, Ui, true), m(this, fn, false);
|
|
22197
22198
|
let s = [], t = [];
|
|
22198
|
-
if (this.context.getValue("flagsmith").hasFeature(
|
|
22199
|
-
const n = [], o = this.participants.videoSubscribed.toArray().reduce((P, w) => w.
|
|
22199
|
+
if (this.context.getValue("flagsmith").hasFeature(Y.NEW_SYNC_CONSUMERS)) {
|
|
22200
|
+
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(
|
|
22200
22201
|
a(this, er),
|
|
22201
22202
|
o
|
|
22202
22203
|
);
|
|
@@ -22296,7 +22297,7 @@ const ba = (Hg = class {
|
|
|
22296
22297
|
producingPeerId: s,
|
|
22297
22298
|
mimeType: i.mimeType
|
|
22298
22299
|
}));
|
|
22299
|
-
}), this.roomNodeClient.handlePeerCapabilities(s, e), this.context.getValue("flagsmith").hasFeature(
|
|
22300
|
+
}), 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);
|
|
22300
22301
|
}
|
|
22301
22302
|
updateParticipantsMapMinReplacement(s, t) {
|
|
22302
22303
|
const e = Array.from(s.keys()), r = new Map(s), i = new Set(t), n = [];
|
|
@@ -22346,7 +22347,7 @@ const ba = (Hg = class {
|
|
|
22346
22347
|
setupEventsGlobal() {
|
|
22347
22348
|
this.roomSocketHandler.on(x.joinRoom, ({ peer: s }) => {
|
|
22348
22349
|
if (!s.waitlisted) {
|
|
22349
|
-
const t = this.context.getValue("flagsmith").hasFeature(
|
|
22350
|
+
const t = this.context.getValue("flagsmith").hasFeature(Y.DEBUG_SOCKET_JOIN);
|
|
22350
22351
|
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 });
|
|
22351
22352
|
}
|
|
22352
22353
|
}), this.roomSocketHandler.on(x.leaveRoom, (s) => {
|
|
@@ -22725,7 +22726,7 @@ const ba = (Hg = class {
|
|
|
22725
22726
|
rtpReceiver: c,
|
|
22726
22727
|
localId: d
|
|
22727
22728
|
}), n.screenShare) {
|
|
22728
|
-
e === "video" ? l.screenShareTracks.video = i : e === "audio" && (l.screenShareTracks.audio = i), (!r || this.self.permissions.isRecorder || this.context.getValue("flagsmith").hasFeature(
|
|
22729
|
+
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", {
|
|
22729
22730
|
producerId: o,
|
|
22730
22731
|
peerId: t,
|
|
22731
22732
|
screenShare: true,
|
|
@@ -22834,7 +22835,7 @@ Ea([
|
|
|
22834
22835
|
const he = _s(
|
|
22835
22836
|
kh().permissions
|
|
22836
22837
|
);
|
|
22837
|
-
var q, Sn, $i, el, St,
|
|
22838
|
+
var q, Sn, $i, el, St, Lt;
|
|
22838
22839
|
const Oa = class extends qt {
|
|
22839
22840
|
constructor(e, r, i, n = false) {
|
|
22840
22841
|
const o = e.getValue("logger");
|
|
@@ -22991,7 +22992,7 @@ const Oa = class extends qt {
|
|
|
22991
22992
|
get canProduceVideo() {
|
|
22992
22993
|
var r;
|
|
22993
22994
|
const e = (r = a(this, q).media.video.canProduce) != null ? r : he.media.video.canProduce;
|
|
22994
|
-
return this.stageEnabled && (a(this, St,
|
|
22995
|
+
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;
|
|
22995
22996
|
}
|
|
22996
22997
|
get produceScreenshare() {
|
|
22997
22998
|
return this.canProduceScreenshare;
|
|
@@ -22999,7 +23000,7 @@ const Oa = class extends qt {
|
|
|
22999
23000
|
get canProduceScreenshare() {
|
|
23000
23001
|
var r;
|
|
23001
23002
|
const e = (r = a(this, q).media.screenshare.canProduce) != null ? r : he.media.screenshare.canProduce;
|
|
23002
|
-
return this.stageEnabled && (a(this, St,
|
|
23003
|
+
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;
|
|
23003
23004
|
}
|
|
23004
23005
|
get produceAudio() {
|
|
23005
23006
|
return this.canProduceAudio;
|
|
@@ -23007,7 +23008,7 @@ const Oa = class extends qt {
|
|
|
23007
23008
|
get canProduceAudio() {
|
|
23008
23009
|
var r;
|
|
23009
23010
|
const e = (r = a(this, q).media.audio.canProduce) != null ? r : he.media.audio.canProduce;
|
|
23010
|
-
return this.stageEnabled && (a(this, St,
|
|
23011
|
+
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;
|
|
23011
23012
|
}
|
|
23012
23013
|
get chatPublic() {
|
|
23013
23014
|
var e, r, i;
|
|
@@ -23075,7 +23076,7 @@ const Oa = class extends qt {
|
|
|
23075
23076
|
}
|
|
23076
23077
|
};
|
|
23077
23078
|
let Qu = Oa;
|
|
23078
|
-
q = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), el = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakSet(),
|
|
23079
|
+
q = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), el = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakSet(), Lt = function() {
|
|
23079
23080
|
return a(this, $i).getValue("stageStatus");
|
|
23080
23081
|
};
|
|
23081
23082
|
var us;
|
|
@@ -23414,7 +23415,7 @@ let Xe = (Bg = class extends zf {
|
|
|
23414
23415
|
h(this, "roomState", "init");
|
|
23415
23416
|
g(this, En, /* @__PURE__ */ new Set());
|
|
23416
23417
|
g(this, _n, /* @__PURE__ */ new Set());
|
|
23417
|
-
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),
|
|
23418
|
+
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);
|
|
23418
23419
|
}
|
|
23419
23420
|
get telemetry() {
|
|
23420
23421
|
return a(this, He).getValue("telemetry");
|
|
@@ -23450,7 +23451,7 @@ let Xe = (Bg = class extends zf {
|
|
|
23450
23451
|
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");
|
|
23451
23452
|
}
|
|
23452
23453
|
setupEvents() {
|
|
23453
|
-
this.on("videoUpdate",
|
|
23454
|
+
this.on("videoUpdate", V(this, ac, Xu));
|
|
23454
23455
|
const t = a(this, Tn, Ed);
|
|
23455
23456
|
t && t.onError((e) => {
|
|
23456
23457
|
this.emit("autoplayError", e);
|
|
@@ -23473,7 +23474,7 @@ let Xe = (Bg = class extends zf {
|
|
|
23473
23474
|
else if (this.videoEnabled && a(this, xe, Be))
|
|
23474
23475
|
try {
|
|
23475
23476
|
const e = yield a(this, je, Ze).shareWebcam(this.videoTrack);
|
|
23476
|
-
e && e.id !== this.videoTrack.id && a(this, He).getValue("flagsmith").hasFeature(
|
|
23477
|
+
e && e.id !== this.videoTrack.id && a(this, He).getValue("flagsmith").hasFeature(Y.EXP_RESHARE) && (yield a(this, je, Ze).shareWebcam(this.videoTrack));
|
|
23477
23478
|
} catch (e) {
|
|
23478
23479
|
this.logger.error("DyteSelf::setupEvents::failed shareWebcam", {
|
|
23479
23480
|
error: e
|
|
@@ -23712,7 +23713,7 @@ let Xe = (Bg = class extends zf {
|
|
|
23712
23713
|
if (!t)
|
|
23713
23714
|
throw new R("No device selected", "1104");
|
|
23714
23715
|
const e = this.getCurrentDevices();
|
|
23715
|
-
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(
|
|
23716
|
+
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)))
|
|
23716
23717
|
throw new R("Cannot set device currently in use", "1106");
|
|
23717
23718
|
switch (t.kind) {
|
|
23718
23719
|
case "audioinput":
|
|
@@ -24135,7 +24136,7 @@ class eD {
|
|
|
24135
24136
|
return u(this, null, function* () {
|
|
24136
24137
|
const e = (yield a(this, ze).sendMessagePromise(
|
|
24137
24138
|
this.events.closeProducer,
|
|
24138
|
-
|
|
24139
|
+
VR.toBinary(t)
|
|
24139
24140
|
)).payload, { description: r } = vw.fromBinary(e);
|
|
24140
24141
|
return r;
|
|
24141
24142
|
});
|
|
@@ -24803,7 +24804,7 @@ class sD extends Yl {
|
|
|
24803
24804
|
g(this, Fi, void 0);
|
|
24804
24805
|
g(this, Ds, void 0);
|
|
24805
24806
|
g(this, tl, void 0);
|
|
24806
|
-
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,
|
|
24807
|
+
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);
|
|
24807
24808
|
}
|
|
24808
24809
|
get closed() {
|
|
24809
24810
|
return a(this, Ds);
|
|
@@ -24815,7 +24816,7 @@ class sD extends Yl {
|
|
|
24815
24816
|
return a(this, Fi);
|
|
24816
24817
|
}
|
|
24817
24818
|
close(e, r) {
|
|
24818
|
-
a(this, Ds) || (this.logger.debug(`Consumer::close() ${e ? `with reason ${e}` : ""}`, a(this, Os, kr)), m(this, Ds, true), r && (
|
|
24819
|
+
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));
|
|
24819
24820
|
}
|
|
24820
24821
|
getStats() {
|
|
24821
24822
|
return u(this, null, function* () {
|
|
@@ -24851,10 +24852,10 @@ cc = /* @__PURE__ */ new WeakMap(), Fi = /* @__PURE__ */ new WeakMap(), Ds = /*
|
|
|
24851
24852
|
}, dc = /* @__PURE__ */ new WeakSet(), eh = function() {
|
|
24852
24853
|
this.logger.debug('Consumer::track "ended" event', a(this, Os, kr)), this.safeEmit("trackended");
|
|
24853
24854
|
}, sl = /* @__PURE__ */ new WeakSet(), Qf = function() {
|
|
24854
|
-
this.track.addEventListener("ended",
|
|
24855
|
+
this.track.addEventListener("ended", V(this, dc, eh).bind(this));
|
|
24855
24856
|
}, rl = /* @__PURE__ */ new WeakSet(), Xf = function() {
|
|
24856
24857
|
try {
|
|
24857
|
-
this.track.removeEventListener("ended",
|
|
24858
|
+
this.track.removeEventListener("ended", V(this, dc, eh)), this.track.stop();
|
|
24858
24859
|
} catch (e) {
|
|
24859
24860
|
this.logger.error("Consumer::destroyTrack()", B(D({}, a(this, Os, kr)), {
|
|
24860
24861
|
error: e
|
|
@@ -25155,7 +25156,7 @@ Gr = /* @__PURE__ */ new WeakMap(), al = /* @__PURE__ */ new WeakMap(), Bi = /*
|
|
|
25155
25156
|
}));
|
|
25156
25157
|
const Ud = "transport closed";
|
|
25157
25158
|
var qi, ji;
|
|
25158
|
-
const
|
|
25159
|
+
const La = class extends Yl {
|
|
25159
25160
|
constructor(e, r, {
|
|
25160
25161
|
id: i,
|
|
25161
25162
|
direction: n,
|
|
@@ -25473,19 +25474,19 @@ const Va = class extends Yl {
|
|
|
25473
25474
|
closeConsumers(e, r) {
|
|
25474
25475
|
return u(this, null, function* () {
|
|
25475
25476
|
try {
|
|
25476
|
-
const i = e.map((l) => l.transceiver.mid), n =
|
|
25477
|
+
const i = e.map((l) => l.transceiver.mid), n = La.parseCodecAndFmtpMappings(
|
|
25477
25478
|
this.handler.pc.remoteDescription,
|
|
25478
25479
|
i
|
|
25479
|
-
), o =
|
|
25480
|
+
), o = La.parseHeaderExtensionMappings(
|
|
25480
25481
|
this.handler.pc.remoteDescription
|
|
25481
25482
|
);
|
|
25482
25483
|
this.logger.info("Stopping transceivers", { consumerIds: e.map(({ id: l }) => l) }), e.forEach((l) => l.close(void 0, true));
|
|
25483
25484
|
let c = yield this.handler.pc.createOffer();
|
|
25484
|
-
this.logger.info("Created offer for closing consumers", { sdp: c.sdp }), c =
|
|
25485
|
+
this.logger.info("Created offer for closing consumers", { sdp: c.sdp }), c = La.setCodecAndFmtpMappings(
|
|
25485
25486
|
c,
|
|
25486
25487
|
i,
|
|
25487
25488
|
n
|
|
25488
|
-
), c =
|
|
25489
|
+
), c = La.setHeaderExtensionMappings(
|
|
25489
25490
|
c,
|
|
25490
25491
|
o
|
|
25491
25492
|
), 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");
|
|
@@ -25631,7 +25632,7 @@ const Va = class extends Yl {
|
|
|
25631
25632
|
});
|
|
25632
25633
|
}
|
|
25633
25634
|
};
|
|
25634
|
-
let th =
|
|
25635
|
+
let th = La;
|
|
25635
25636
|
qi = /* @__PURE__ */ new WeakMap(), ji = /* @__PURE__ */ new WeakMap();
|
|
25636
25637
|
function aD(s) {
|
|
25637
25638
|
if (typeof navigator == "object" && navigator.product === "ReactNative") {
|
|
@@ -25776,7 +25777,7 @@ class cD extends ut.EventEmitter {
|
|
|
25776
25777
|
a(this, Mn, _d).mediaState = {
|
|
25777
25778
|
send: { state: xa.NEW },
|
|
25778
25779
|
recv: { state: xa.NEW }
|
|
25779
|
-
}, (Gn(this.context, "forceRelay") || this.context.getValue("flagsmith").hasFeature(
|
|
25780
|
+
}, (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);
|
|
25780
25781
|
}
|
|
25781
25782
|
get telemetry() {
|
|
25782
25783
|
return this.context.getValue("telemetry");
|
|
@@ -25810,15 +25811,15 @@ class cD extends ut.EventEmitter {
|
|
|
25810
25811
|
}
|
|
25811
25812
|
setupTransports(e) {
|
|
25812
25813
|
return u(this, null, function* () {
|
|
25813
|
-
yield
|
|
25814
|
+
yield V(this, nl, tS).call(this, e);
|
|
25814
25815
|
let r, i;
|
|
25815
|
-
e.send && (r =
|
|
25816
|
+
e.send && (r = V(this, gc, rh).call(this, a(this, ot)).then((n) => {
|
|
25816
25817
|
try {
|
|
25817
25818
|
a(this, uc).call(this, n);
|
|
25818
25819
|
} catch (o) {
|
|
25819
25820
|
this.logger.error("Failed to run send transport callback");
|
|
25820
25821
|
}
|
|
25821
|
-
})), e.recv && (i =
|
|
25822
|
+
})), e.recv && (i = V(this, gc, rh).call(this, a(this, ct)).then((n) => {
|
|
25822
25823
|
try {
|
|
25823
25824
|
a(this, hc).call(this, n);
|
|
25824
25825
|
} catch (o) {
|
|
@@ -25837,7 +25838,7 @@ class cD extends ut.EventEmitter {
|
|
|
25837
25838
|
const { id: n, serverId: o, direction: c } = a(this, ct);
|
|
25838
25839
|
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);
|
|
25839
25840
|
}
|
|
25840
|
-
|
|
25841
|
+
V(this, pc, sh).call(this);
|
|
25841
25842
|
}
|
|
25842
25843
|
stopAllTransports() {
|
|
25843
25844
|
this.logger.info("Closing all transports"), this.stopTransports({ send: true, recv: true });
|
|
@@ -25856,13 +25857,13 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
25856
25857
|
}, nl = /* @__PURE__ */ new WeakSet(), tS = function(e) {
|
|
25857
25858
|
return u(this, null, function* () {
|
|
25858
25859
|
var o, c, d, l, p, f, S, T;
|
|
25859
|
-
(Gn(this.context, "forceRelay") || this.context.getValue("flagsmith").hasFeature(
|
|
25860
|
+
(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)}`);
|
|
25860
25861
|
const n = yield lt().getICEServers().catch((_) => (this.logger.warn(`failed to get iceservers from server: ${_.message}`), []));
|
|
25861
25862
|
if (e.send) {
|
|
25862
25863
|
const _ = this.context.getValue("flagsmith").hasFeature(
|
|
25863
|
-
|
|
25864
|
+
Y.DISABLE_OPUS_DTX_CF
|
|
25864
25865
|
);
|
|
25865
|
-
|
|
25866
|
+
V(this, cl, rS).call(this, {
|
|
25866
25867
|
iceServers: n,
|
|
25867
25868
|
additionalSettings: {
|
|
25868
25869
|
encodedInsertableStreams: (o = this.context.getValue("modules").e2ee) == null ? void 0 : o.enabled
|
|
@@ -25875,7 +25876,7 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
25875
25876
|
iceTransportPolicy: a(this, Ns)
|
|
25876
25877
|
});
|
|
25877
25878
|
}
|
|
25878
|
-
e.recv &&
|
|
25879
|
+
e.recv && V(this, dl, iS).call(this, {
|
|
25879
25880
|
iceServers: n,
|
|
25880
25881
|
additionalSettings: {
|
|
25881
25882
|
encodedInsertableStreams: (T = this.context.getValue("modules").e2ee) == null ? void 0 : T.enabled
|
|
@@ -25886,10 +25887,10 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
25886
25887
|
}, gc = /* @__PURE__ */ new WeakSet(), rh = function(e) {
|
|
25887
25888
|
return u(this, null, function* () {
|
|
25888
25889
|
const { id: r, serverId: i, direction: n } = e;
|
|
25889
|
-
|
|
25890
|
+
V(this, ll, aS).call(this, e);
|
|
25890
25891
|
try {
|
|
25891
25892
|
const o = this.context.getValue("flagsmith").hasFeature(
|
|
25892
|
-
|
|
25893
|
+
Y.ENABLE_HIVE_INFINITE_RETRIES
|
|
25893
25894
|
) ? 1 / 0 : 3;
|
|
25894
25895
|
return yield Yf((c, d) => u(this, null, function* () {
|
|
25895
25896
|
c > 0 && this.logger.debug(`Retrying transport connect, count: ${c}`, {
|
|
@@ -25898,7 +25899,7 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
25898
25899
|
try {
|
|
25899
25900
|
if (e.closed)
|
|
25900
25901
|
throw new fi("Cannot reconnect closed transport");
|
|
25901
|
-
yield
|
|
25902
|
+
yield V(this, ol, sS).call(this, e);
|
|
25902
25903
|
} catch (l) {
|
|
25903
25904
|
if (l instanceof fi) {
|
|
25904
25905
|
d(l);
|
|
@@ -25932,7 +25933,7 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
25932
25933
|
throw new fi("Transport is closed");
|
|
25933
25934
|
try {
|
|
25934
25935
|
yield e.connect(
|
|
25935
|
-
(n) =>
|
|
25936
|
+
(n) => V(this, ul, nS).call(this, i, n)
|
|
25936
25937
|
), this.logger.info(`Connected ${i} transport`, {
|
|
25937
25938
|
transport: { id: r, serverId: e.serverId, type: i }
|
|
25938
25939
|
});
|
|
@@ -25973,7 +25974,7 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
25973
25974
|
}, ll = /* @__PURE__ */ new WeakSet(), aS = function(e) {
|
|
25974
25975
|
const { direction: r, id: i } = e;
|
|
25975
25976
|
e.on("connectionstatechange", (n) => u(this, null, function* () {
|
|
25976
|
-
|
|
25977
|
+
V(this, fc, ah).call(this, { state: n, direction: r }), this.logger.info(
|
|
25977
25978
|
`Transport connection state changed for ${r} transport`,
|
|
25978
25979
|
{
|
|
25979
25980
|
transport: {
|
|
@@ -25994,13 +25995,13 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
25994
25995
|
break;
|
|
25995
25996
|
case "disconnected":
|
|
25996
25997
|
a(this, Ji)[r] = setTimeout(() => u(this, null, function* () {
|
|
25997
|
-
this.logger.warn(`${r} transport is in disconnected state, reconnecting transport`, { transport: { id: i, serverId: e.serverId, type: r } }), yield
|
|
25998
|
+
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);
|
|
25998
25999
|
}), oD);
|
|
25999
26000
|
break;
|
|
26000
26001
|
case "failed":
|
|
26001
26002
|
if (e.closed)
|
|
26002
26003
|
return;
|
|
26003
|
-
o(), this.logger.warn(`${r} transport is in failed state, reconnecting transport`, { transport: { id: i, serverId: e.serverId, type: r } }), yield
|
|
26004
|
+
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);
|
|
26004
26005
|
break;
|
|
26005
26006
|
}
|
|
26006
26007
|
})), e.on("icecandidate", (n) => u(this, null, function* () {
|
|
@@ -26063,7 +26064,7 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
26063
26064
|
}, mc = /* @__PURE__ */ new WeakSet(), ih = function(e) {
|
|
26064
26065
|
return u(this, null, function* () {
|
|
26065
26066
|
switch (this.logger.info("Called reconnect transport", { transport: { type: e } }), this.stopTransports({ [e]: true }), this.context.getValue("flagsmith").hasFeature(
|
|
26066
|
-
|
|
26067
|
+
Y.HIVE_TRANSPORT_FORCE_RELAY_ON_ICE_FAILED
|
|
26067
26068
|
) && 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) {
|
|
26068
26069
|
case "send": {
|
|
26069
26070
|
this.logger.info("Transport reconnected", { transport: a(this, ot) }), this.context.getValue("peerSessionStore").emit(k.RESET_PRODUCER_STATE);
|
|
@@ -26076,7 +26077,7 @@ wn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
|
|
|
26076
26077
|
default:
|
|
26077
26078
|
this.logger.warn("Unknown transport direction", { transport: { type: e } });
|
|
26078
26079
|
}
|
|
26079
|
-
|
|
26080
|
+
V(this, fc, ah).call(this, {
|
|
26080
26081
|
state: xa.CONNECTED,
|
|
26081
26082
|
direction: e
|
|
26082
26083
|
});
|
|
@@ -26097,7 +26098,7 @@ class dD {
|
|
|
26097
26098
|
constructor(t, e) {
|
|
26098
26099
|
g(this, hl);
|
|
26099
26100
|
g(this, Sc, void 0);
|
|
26100
|
-
this.recvTransport = e,
|
|
26101
|
+
this.recvTransport = e, V(this, hl, oS).call(this), m(this, Sc, t);
|
|
26101
26102
|
}
|
|
26102
26103
|
get logger() {
|
|
26103
26104
|
return a(this, Sc).getValue("logger");
|
|
@@ -26226,7 +26227,7 @@ class lD {
|
|
|
26226
26227
|
throw new Error("List of producers is required");
|
|
26227
26228
|
const e = /* @__PURE__ */ new Map(), r = [];
|
|
26228
26229
|
t.forEach((d) => {
|
|
26229
|
-
const { producingPeerId: l, producerId: p, producingTransportId: f } = d, S = a(this, vc).getValue("flagsmith").hasFeature(
|
|
26230
|
+
const { producingPeerId: l, producerId: p, producingTransportId: f } = d, S = a(this, vc).getValue("flagsmith").hasFeature(Y.ENABLE_CF_SIMULCAST) ? {
|
|
26230
26231
|
simulcast: {
|
|
26231
26232
|
preferredRid: "h",
|
|
26232
26233
|
priorityOrdering: "asciibetical",
|
|
@@ -26451,9 +26452,9 @@ class uD extends cD {
|
|
|
26451
26452
|
try {
|
|
26452
26453
|
const n = yield this.sendTransport.produce(
|
|
26453
26454
|
e,
|
|
26454
|
-
|
|
26455
|
+
V(this, gl, cS).bind(this)
|
|
26455
26456
|
);
|
|
26456
|
-
return (i = e.appData) != null && i.e2ee && this.context.getValue("peerSessionStore").emit(k.E2EE_ACTIVE_PRODUCER, n),
|
|
26457
|
+
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;
|
|
26457
26458
|
} catch (n) {
|
|
26458
26459
|
throw this.logger.error("Failed to create producer", { error: n }), a(this, pl).producerCreationFailureCount += 1, n;
|
|
26459
26460
|
}
|
|
@@ -26483,7 +26484,7 @@ class uD extends cD {
|
|
|
26483
26484
|
}
|
|
26484
26485
|
createConsumers(e) {
|
|
26485
26486
|
return u(this, null, function* () {
|
|
26486
|
-
a(this, On) || clearTimeout(a(this, On)), m(this, ir, a(this, ir).concat(e)), yield
|
|
26487
|
+
a(this, On) || clearTimeout(a(this, On)), m(this, ir, a(this, ir).concat(e)), yield V(this, Tc, nh).call(this);
|
|
26487
26488
|
});
|
|
26488
26489
|
}
|
|
26489
26490
|
closeConsumer(e) {
|
|
@@ -26520,14 +26521,14 @@ Ki = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), Dn = /*
|
|
|
26520
26521
|
return;
|
|
26521
26522
|
const { consumers: o, failedProducers: c } = yield this.recvTransport.consume(
|
|
26522
26523
|
n,
|
|
26523
|
-
|
|
26524
|
+
V(this, fl, lS).bind(this),
|
|
26524
26525
|
a(this, ps).negotiate.bind(a(this, ps))
|
|
26525
26526
|
);
|
|
26526
|
-
if (o.forEach(
|
|
26527
|
+
if (o.forEach(V(this, Sl, uS).bind(this)), c != null && c.length) {
|
|
26527
26528
|
this.logger.error("Failed to create consumers for producers", { producers: c });
|
|
26528
26529
|
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);
|
|
26529
26530
|
m(this, ir, a(this, ir).concat(d)), m(this, On, setTimeout(
|
|
26530
|
-
|
|
26531
|
+
V(this, Tc, nh).bind(this),
|
|
26531
26532
|
e
|
|
26532
26533
|
));
|
|
26533
26534
|
}
|
|
@@ -26603,7 +26604,7 @@ Ki = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), Dn = /*
|
|
|
26603
26604
|
peerId: e.peerId
|
|
26604
26605
|
});
|
|
26605
26606
|
};
|
|
26606
|
-
var Ec, _c, Pc, Nn,
|
|
26607
|
+
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;
|
|
26607
26608
|
const _l = class {
|
|
26608
26609
|
constructor({
|
|
26609
26610
|
initialEnergyThreshold: t = 0.015,
|
|
@@ -26623,8 +26624,8 @@ const _l = class {
|
|
|
26623
26624
|
g(this, _c, void 0);
|
|
26624
26625
|
g(this, Pc, void 0);
|
|
26625
26626
|
g(this, Nn, void 0);
|
|
26626
|
-
g(this, Vn, void 0);
|
|
26627
26627
|
g(this, Ln, void 0);
|
|
26628
|
+
g(this, Vn, void 0);
|
|
26628
26629
|
g(this, Cc, void 0);
|
|
26629
26630
|
g(this, Rc, void 0);
|
|
26630
26631
|
g(this, xn, void 0);
|
|
@@ -26635,15 +26636,15 @@ const _l = class {
|
|
|
26635
26636
|
g(this, Yi, 0);
|
|
26636
26637
|
g(this, ar, []);
|
|
26637
26638
|
g(this, wc, void 0);
|
|
26638
|
-
m(this, Nn, t), m(this, bt, t), m(this, Ec, e), m(this, _c, r), m(this, Pc, i), m(this,
|
|
26639
|
+
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);
|
|
26639
26640
|
}
|
|
26640
26641
|
get voiceDetected() {
|
|
26641
26642
|
return a(this, ms);
|
|
26642
26643
|
}
|
|
26643
26644
|
processAudioChunk(t) {
|
|
26644
26645
|
var o, c;
|
|
26645
|
-
const e =
|
|
26646
|
-
return
|
|
26646
|
+
const e = V(o = _l, Tl, gS).call(o, t), r = V(c = _l, El, mS).call(c, t);
|
|
26647
|
+
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) };
|
|
26647
26648
|
}
|
|
26648
26649
|
reset() {
|
|
26649
26650
|
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, []);
|
|
@@ -26657,8 +26658,8 @@ const _l = class {
|
|
|
26657
26658
|
}
|
|
26658
26659
|
};
|
|
26659
26660
|
let Po = _l;
|
|
26660
|
-
Ec = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), Pc = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(),
|
|
26661
|
-
a(this, ms) ? m(this, bt, a(this,
|
|
26661
|
+
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) {
|
|
26662
|
+
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(
|
|
26662
26663
|
a(this, Cc),
|
|
26663
26664
|
Math.min(a(this, Rc), a(this, bt))
|
|
26664
26665
|
));
|
|
@@ -26748,7 +26749,7 @@ class hD {
|
|
|
26748
26749
|
}
|
|
26749
26750
|
}
|
|
26750
26751
|
const pD = 60, gD = 400;
|
|
26751
|
-
var nr, or, fs, Ic, Qi, Un, cr, Jr, $n, dr, lr,
|
|
26752
|
+
var nr, or, fs, Ic, Qi, Un, cr, Jr, $n, dr, lr, Ls, Pl, fS, Ac, oh, Cl, SS, Rl, vS;
|
|
26752
26753
|
const No = class {
|
|
26753
26754
|
constructor(t, e) {
|
|
26754
26755
|
g(this, Pl);
|
|
@@ -26764,10 +26765,10 @@ const No = class {
|
|
|
26764
26765
|
g(this, $n, void 0);
|
|
26765
26766
|
g(this, dr, void 0);
|
|
26766
26767
|
g(this, lr, void 0);
|
|
26767
|
-
g(this,
|
|
26768
|
+
g(this, Ls, void 0);
|
|
26768
26769
|
this.reportRequest = e, m(this, dr, t), m(this, Un, new Po());
|
|
26769
26770
|
const { isReactNative: r } = navigator;
|
|
26770
|
-
m(this, lr, r ? new vg(a(this, dr)) : new yg(a(this, dr))), m(this,
|
|
26771
|
+
m(this, lr, r ? new vg(a(this, dr)) : new yg(a(this, dr))), m(this, Ls, r ? hD : ud);
|
|
26771
26772
|
}
|
|
26772
26773
|
get logger() {
|
|
26773
26774
|
return a(this, dr).getValue("logger");
|
|
@@ -26779,31 +26780,31 @@ const No = class {
|
|
|
26779
26780
|
m(this, Ic, t), a(this, lr) instanceof yg && (a(this, lr).audioTrack = t);
|
|
26780
26781
|
}
|
|
26781
26782
|
start() {
|
|
26782
|
-
this.logger.debug(`AudioActivityReporter: Starting audio activity reporter: ${a(this, fs)}`), a(this, nr) && a(this,
|
|
26783
|
+
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* () {
|
|
26783
26784
|
var i;
|
|
26784
26785
|
if (!a(this, Ic) || !a(this, fs))
|
|
26785
26786
|
return;
|
|
26786
|
-
const { energy: t } =
|
|
26787
|
+
const { energy: t } = V(this, Pl, fS).call(this), e = V(i = No, Ac, oh).call(i, t);
|
|
26787
26788
|
let r = 0.9;
|
|
26788
26789
|
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);
|
|
26789
|
-
}), pD)), a(this, or) && a(this,
|
|
26790
|
-
|
|
26790
|
+
}), pD)), a(this, or) && a(this, Ls).clearInterval(a(this, or)), m(this, or, a(this, Ls).setInterval(
|
|
26791
|
+
V(this, Cl, SS).bind(this),
|
|
26791
26792
|
gD
|
|
26792
26793
|
));
|
|
26793
26794
|
}
|
|
26794
26795
|
stop() {
|
|
26795
26796
|
try {
|
|
26796
|
-
this.logger.debug(`AudioActivityReporter: Stopping audio activity reporter: ${a(this, fs)}`), a(this, nr) && (a(this,
|
|
26797
|
+
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));
|
|
26797
26798
|
} catch (t) {
|
|
26798
26799
|
}
|
|
26799
26800
|
a(this, Un).reset(), a(this, lr) instanceof vg && a(this, lr).stop();
|
|
26800
26801
|
}
|
|
26801
26802
|
};
|
|
26802
26803
|
let Co = No;
|
|
26803
|
-
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(),
|
|
26804
|
+
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() {
|
|
26804
26805
|
var o;
|
|
26805
|
-
const { samples: t } = a(this, lr), { energy: e, isVoice: r } = a(this, Un).processAudioChunk(t), i =
|
|
26806
|
-
return a(this, dr).getValue("flagsmith").hasFeature(
|
|
26806
|
+
const { samples: t } = a(this, lr), { energy: e, isVoice: r } = a(this, Un).processAudioChunk(t), i = V(o = No, Rl, vS).call(o, e);
|
|
26807
|
+
return a(this, dr).getValue("flagsmith").hasFeature(Y.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && this.logger.debug(
|
|
26807
26808
|
`AudioActivityReporter: producer: ${a(this, fs)}, energy: ${a(this, Qi)},
|
|
26808
26809
|
slogScale: ${i}, isVoice: ${r}, minEnergy: ${a(this, cr)},
|
|
26809
26810
|
maxEnergy: ${a(this, Jr)}`
|
|
@@ -26813,13 +26814,13 @@ nr = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), fs = /*
|
|
|
26813
26814
|
}, Cl = /* @__PURE__ */ new WeakSet(), SS = function(t = a(this, Qi)) {
|
|
26814
26815
|
var r;
|
|
26815
26816
|
if (!a(this, fs) || !t) {
|
|
26816
|
-
a(this, dr).getValue("flagsmith").hasFeature(
|
|
26817
|
+
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)}`);
|
|
26817
26818
|
return;
|
|
26818
26819
|
}
|
|
26819
26820
|
const e = {
|
|
26820
26821
|
producerId: a(this, fs),
|
|
26821
26822
|
energy: Math.round(t),
|
|
26822
|
-
silent:
|
|
26823
|
+
silent: V(r = No, Ac, oh).call(r, t)
|
|
26823
26824
|
};
|
|
26824
26825
|
m(this, $n, e.silent), this.reportRequest(e);
|
|
26825
26826
|
}, Rl = /* @__PURE__ */ new WeakSet(), vS = function(t) {
|
|
@@ -26887,14 +26888,14 @@ var SD = Object.defineProperty, vD = Object.getOwnPropertyDescriptor, le = (s, t
|
|
|
26887
26888
|
return r && i && SD(t, e, i), i;
|
|
26888
26889
|
};
|
|
26889
26890
|
const Nt = ["video/VP9", "video/VP8"];
|
|
26890
|
-
var Mc, Dc, dt, G, Fn,
|
|
26891
|
+
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;
|
|
26891
26892
|
const yS = (Tu = class {
|
|
26892
26893
|
constructor(s, t, e) {
|
|
26893
26894
|
g(this, Kr);
|
|
26894
26895
|
g(this, wl);
|
|
26895
26896
|
g(this, bl);
|
|
26896
26897
|
g(this, kl);
|
|
26897
|
-
g(this,
|
|
26898
|
+
g(this, Lc);
|
|
26898
26899
|
g(this, Al);
|
|
26899
26900
|
g(this, Ml);
|
|
26900
26901
|
g(this, Dl);
|
|
@@ -26902,7 +26903,7 @@ const yS = (Tu = class {
|
|
|
26902
26903
|
g(this, ra);
|
|
26903
26904
|
g(this, Ol);
|
|
26904
26905
|
g(this, Nl);
|
|
26905
|
-
g(this,
|
|
26906
|
+
g(this, Ll);
|
|
26906
26907
|
h(this, "context");
|
|
26907
26908
|
h(this, "authToken");
|
|
26908
26909
|
h(this, "e2ee");
|
|
@@ -26911,7 +26912,7 @@ const yS = (Tu = class {
|
|
|
26911
26912
|
g(this, dt, void 0);
|
|
26912
26913
|
g(this, G, void 0);
|
|
26913
26914
|
g(this, Fn, void 0);
|
|
26914
|
-
g(this,
|
|
26915
|
+
g(this, Vs, void 0);
|
|
26915
26916
|
g(this, yt, void 0);
|
|
26916
26917
|
g(this, Xi, void 0);
|
|
26917
26918
|
g(this, Zi, void 0);
|
|
@@ -26935,7 +26936,7 @@ const yS = (Tu = class {
|
|
|
26935
26936
|
])), m(this, sa, /* @__PURE__ */ new Map([
|
|
26936
26937
|
["video/VP9", /* @__PURE__ */ new Set()],
|
|
26937
26938
|
["video/VP8", /* @__PURE__ */ new Set()]
|
|
26938
|
-
])), m(this,
|
|
26939
|
+
])), 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(
|
|
26939
26940
|
this.context,
|
|
26940
26941
|
a(this, G).socketHandler.audioActivity.bind(a(this, G).socketHandler)
|
|
26941
26942
|
)), this.e2ee = (n = (i = s.getValue("modules").e2ee) == null ? void 0 : i.enabled) != null ? n : false, this.handleSocketEvents(), this.handleCallstatsEvents(), m(this, Oc, Ih(
|
|
@@ -26977,7 +26978,7 @@ const yS = (Tu = class {
|
|
|
26977
26978
|
a(this, Kr, ka).mediaJoinAttempted = true, m(this, Xi, true), e && this.reset();
|
|
26978
26979
|
try {
|
|
26979
26980
|
return yield a(this, ea).push(
|
|
26980
|
-
() =>
|
|
26981
|
+
() => V(this, wl, TS).call(this, s, t, r, i),
|
|
26981
26982
|
"joinRoom"
|
|
26982
26983
|
);
|
|
26983
26984
|
} catch (c) {
|
|
@@ -26989,7 +26990,7 @@ const yS = (Tu = class {
|
|
|
26989
26990
|
return u(this, arguments, function* (s, t, e = false, r = {}) {
|
|
26990
26991
|
return a(this, ss) ? a(this, ss) : (m(this, ss, (() => u(this, null, function* () {
|
|
26991
26992
|
try {
|
|
26992
|
-
yield
|
|
26993
|
+
yield V(this, Lc, ch).call(this, s, t, e, r);
|
|
26993
26994
|
} catch (o) {
|
|
26994
26995
|
throw m(this, ss, null), o;
|
|
26995
26996
|
}
|
|
@@ -27043,7 +27044,7 @@ const yS = (Tu = class {
|
|
|
27043
27044
|
}
|
|
27044
27045
|
_shareWebcam(s, t) {
|
|
27045
27046
|
return u(this, null, function* () {
|
|
27046
|
-
const e = t === "video/VP9" ? pe.WEBCAM : pe.WEBCAM_BACKUP, r =
|
|
27047
|
+
const e = t === "video/VP9" ? pe.WEBCAM : pe.WEBCAM_BACKUP, r = V(this, tt, gt).call(this, e);
|
|
27047
27048
|
if (r) {
|
|
27048
27049
|
const p = yield r;
|
|
27049
27050
|
if (a(this, G).producers.has(p)) {
|
|
@@ -27054,9 +27055,9 @@ const yS = (Tu = class {
|
|
|
27054
27055
|
}
|
|
27055
27056
|
return this._shareWebcam(s, t);
|
|
27056
27057
|
}
|
|
27057
|
-
const i = [t].concat(Nt.filter((p) => p !== t)), n =
|
|
27058
|
-
!o && this.context.getValue("flagsmith").hasFeature(c) ? (this.logger.info(`Simulcast enabled for SFU: ${a(this,
|
|
27059
|
-
|
|
27058
|
+
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;
|
|
27059
|
+
!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(
|
|
27060
|
+
Y.TRACK_HINT
|
|
27060
27061
|
));
|
|
27061
27062
|
const d = () => {
|
|
27062
27063
|
this.logger.info("Disabling video due to the producer closure"), a(this, Tt).delete(e);
|
|
@@ -27064,7 +27065,7 @@ const yS = (Tu = class {
|
|
|
27064
27065
|
n,
|
|
27065
27066
|
d
|
|
27066
27067
|
);
|
|
27067
|
-
return
|
|
27068
|
+
return V(this, ra, Ro).call(this, e, l.then((p) => p.id)), l.then((p) => p.track);
|
|
27068
27069
|
});
|
|
27069
27070
|
}
|
|
27070
27071
|
shareWebcam(s) {
|
|
@@ -27072,7 +27073,7 @@ const yS = (Tu = class {
|
|
|
27072
27073
|
var r;
|
|
27073
27074
|
if (s === void 0)
|
|
27074
27075
|
return null;
|
|
27075
|
-
const t = (r = this.context.getValue("flagsmith").getValue(
|
|
27076
|
+
const t = (r = this.context.getValue("flagsmith").getValue(Y.FORCE_VIDEO_CODEC)) == null ? void 0 : r.toString();
|
|
27076
27077
|
if (t)
|
|
27077
27078
|
return this.logger.debug(`Calling _shareWebcam with forced video codec: ${t}`), this._shareWebcam(s, t);
|
|
27078
27079
|
const e = Nt.filter((i) => {
|
|
@@ -27108,7 +27109,7 @@ const yS = (Tu = class {
|
|
|
27108
27109
|
r,
|
|
27109
27110
|
i
|
|
27110
27111
|
);
|
|
27111
|
-
|
|
27112
|
+
V(this, ra, Ro).call(this, pe.SCREENSHARE_VIDEO, n.then((c) => c.id));
|
|
27112
27113
|
let o;
|
|
27113
27114
|
if (e) {
|
|
27114
27115
|
const c = {
|
|
@@ -27120,13 +27121,13 @@ const yS = (Tu = class {
|
|
|
27120
27121
|
supportsRemoteControl: Te.isElectron()
|
|
27121
27122
|
},
|
|
27122
27123
|
stopTracks: false,
|
|
27123
|
-
zeroRtpOnPause: a(this,
|
|
27124
|
+
zeroRtpOnPause: a(this, Vs) !== we.CF
|
|
27124
27125
|
}, d = () => {
|
|
27125
27126
|
};
|
|
27126
27127
|
o = a(this, G).createProducer(
|
|
27127
27128
|
c,
|
|
27128
27129
|
d
|
|
27129
|
-
),
|
|
27130
|
+
), V(this, ra, Ro).call(this, pe.SCREENSHARE_AUDIO, o.then((l) => l.id));
|
|
27130
27131
|
}
|
|
27131
27132
|
yield Promise.all([n, o || Promise.resolve()]), this.context.getValue("callstats").screenShareStart();
|
|
27132
27133
|
});
|
|
@@ -27136,7 +27137,7 @@ const yS = (Tu = class {
|
|
|
27136
27137
|
try {
|
|
27137
27138
|
if (s === void 0)
|
|
27138
27139
|
throw new At("track undefined");
|
|
27139
|
-
const t =
|
|
27140
|
+
const t = V(this, tt, gt).call(this, pe.MIC);
|
|
27140
27141
|
if (t) {
|
|
27141
27142
|
const n = yield t;
|
|
27142
27143
|
if (a(this, G).producers.has(n)) {
|
|
@@ -27150,13 +27151,13 @@ const yS = (Tu = class {
|
|
|
27150
27151
|
yield this.shareMic(s);
|
|
27151
27152
|
return;
|
|
27152
27153
|
}
|
|
27153
|
-
const e =
|
|
27154
|
+
const e = V(this, Nl, kS).call(this, s), r = () => {
|
|
27154
27155
|
a(this, Tt).delete(pe.MIC);
|
|
27155
27156
|
}, i = a(this, G).createProducer(
|
|
27156
27157
|
e,
|
|
27157
27158
|
r
|
|
27158
27159
|
);
|
|
27159
|
-
|
|
27160
|
+
V(this, ra, Ro).call(this, pe.MIC, i.then((n) => n.id)), yield i.then((n) => {
|
|
27160
27161
|
a(this, kt) && (a(this, kt).audioTrack = n.track, a(this, kt).producerId = n.id, a(this, kt).start());
|
|
27161
27162
|
});
|
|
27162
27163
|
} catch (t) {
|
|
@@ -27167,7 +27168,7 @@ const yS = (Tu = class {
|
|
|
27167
27168
|
pauseMic() {
|
|
27168
27169
|
return u(this, null, function* () {
|
|
27169
27170
|
var r;
|
|
27170
|
-
const s = yield
|
|
27171
|
+
const s = yield V(this, tt, gt).call(this, pe.MIC), t = a(this, G).producers.get(s);
|
|
27171
27172
|
if (!t) {
|
|
27172
27173
|
this.logger.error("pauseMic::could_not_find_mic_producer");
|
|
27173
27174
|
return;
|
|
@@ -27189,7 +27190,7 @@ const yS = (Tu = class {
|
|
|
27189
27190
|
}
|
|
27190
27191
|
pauseWebcam() {
|
|
27191
27192
|
return u(this, null, function* () {
|
|
27192
|
-
const s = yield
|
|
27193
|
+
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);
|
|
27193
27194
|
if (!e && !r) {
|
|
27194
27195
|
this.logger.error("pauseWebcam::could_not_find_webcam_producer");
|
|
27195
27196
|
return;
|
|
@@ -27209,7 +27210,7 @@ const yS = (Tu = class {
|
|
|
27209
27210
|
}
|
|
27210
27211
|
resumeMic() {
|
|
27211
27212
|
return u(this, null, function* () {
|
|
27212
|
-
const s = yield
|
|
27213
|
+
const s = yield V(this, tt, gt).call(this, pe.MIC), t = a(this, G).producers.get(s);
|
|
27213
27214
|
if (!t) {
|
|
27214
27215
|
this.logger.error("resumeMic::could_not_find_mic_producer");
|
|
27215
27216
|
return;
|
|
@@ -27231,7 +27232,7 @@ const yS = (Tu = class {
|
|
|
27231
27232
|
}
|
|
27232
27233
|
resumeWebcam() {
|
|
27233
27234
|
return u(this, arguments, function* (s = pe.WEBCAM) {
|
|
27234
|
-
const t = yield
|
|
27235
|
+
const t = yield V(this, tt, gt).call(this, s), e = a(this, G).producers.get(t);
|
|
27235
27236
|
if (!e) {
|
|
27236
27237
|
this.logger.error("resumeWebcam::could_not_find_webcam_producer");
|
|
27237
27238
|
return;
|
|
@@ -27253,21 +27254,21 @@ const yS = (Tu = class {
|
|
|
27253
27254
|
}
|
|
27254
27255
|
disableWebcam(s) {
|
|
27255
27256
|
return u(this, null, function* () {
|
|
27256
|
-
const t = s === "video/VP9" ? pe.WEBCAM : pe.WEBCAM_BACKUP, e = yield
|
|
27257
|
-
|
|
27257
|
+
const t = s === "video/VP9" ? pe.WEBCAM : pe.WEBCAM_BACKUP, e = yield V(this, tt, gt).call(this, t);
|
|
27258
|
+
V(this, Ol, bS).call(this, t), e && (yield a(this, G).closeProducer(e));
|
|
27258
27259
|
});
|
|
27259
27260
|
}
|
|
27260
27261
|
disableMic() {
|
|
27261
27262
|
return u(this, null, function* () {
|
|
27262
27263
|
var t;
|
|
27263
|
-
const s = yield
|
|
27264
|
+
const s = yield V(this, tt, gt).call(this, pe.MIC);
|
|
27264
27265
|
s && (yield a(this, G).closeProducer(s)), (t = a(this, kt)) == null || t.stop(), a(this, Tt).delete(pe.MIC);
|
|
27265
27266
|
});
|
|
27266
27267
|
}
|
|
27267
27268
|
disableScreenShare() {
|
|
27268
27269
|
return u(this, null, function* () {
|
|
27269
27270
|
this.logger.info("screen_sharing_stopped"), this.context.getValue("callstats").screenShareStop();
|
|
27270
|
-
const s = yield
|
|
27271
|
+
const s = yield V(this, tt, gt).call(this, pe.SCREENSHARE_VIDEO), t = yield V(this, tt, gt).call(this, pe.SCREENSHARE_AUDIO);
|
|
27271
27272
|
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);
|
|
27272
27273
|
});
|
|
27273
27274
|
}
|
|
@@ -27283,11 +27284,11 @@ const yS = (Tu = class {
|
|
|
27283
27284
|
resetVideoProducers(s, t) {
|
|
27284
27285
|
return u(this, null, function* () {
|
|
27285
27286
|
if (s) {
|
|
27286
|
-
const e = yield
|
|
27287
|
+
const e = yield V(this, tt, gt).call(this, pe.WEBCAM), r = yield V(this, tt, gt).call(this, pe.WEBCAM_BACKUP);
|
|
27287
27288
|
yield a(this, G).closeProducer(e, { stopTrack: false }), yield a(this, G).closeProducer(r, { stopTrack: false }), this.shareWebcam(s);
|
|
27288
27289
|
}
|
|
27289
27290
|
if (t) {
|
|
27290
|
-
const e = yield
|
|
27291
|
+
const e = yield V(this, tt, gt).call(this, pe.SCREENSHARE_VIDEO);
|
|
27291
27292
|
yield a(this, G).closeProducer(
|
|
27292
27293
|
e,
|
|
27293
27294
|
{ stopTrack: false }
|
|
@@ -27376,7 +27377,7 @@ const yS = (Tu = class {
|
|
|
27376
27377
|
var t, e;
|
|
27377
27378
|
if (this.mediaJoined)
|
|
27378
27379
|
try {
|
|
27379
|
-
const { participantId: r, producerState: i } =
|
|
27380
|
+
const { participantId: r, producerState: i } = Vw.fromBinary(s);
|
|
27380
27381
|
if (r === this.peerId)
|
|
27381
27382
|
return;
|
|
27382
27383
|
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(
|
|
@@ -27544,17 +27545,17 @@ const yS = (Tu = class {
|
|
|
27544
27545
|
}
|
|
27545
27546
|
}
|
|
27546
27547
|
handlePeerLeaving(s) {
|
|
27547
|
-
this.context.getValue("flagsmith").hasFeature(
|
|
27548
|
+
this.context.getValue("flagsmith").hasFeature(Y.FORCE_VIDEO_CODEC) || (a(this, ta).forEach((t) => t.delete(s)), a(this, sa).forEach((t, e) => {
|
|
27548
27549
|
t.delete(s), !(t.size !== 0 || e === Nt[0]) && this.disableWebcam(e);
|
|
27549
27550
|
}));
|
|
27550
27551
|
}
|
|
27551
|
-
}, Mc = /* @__PURE__ */ new WeakMap(), Dc = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakMap(),
|
|
27552
|
+
}, 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() {
|
|
27552
27553
|
return this.context.getValue("connectionHandler");
|
|
27553
27554
|
}, wl = /* @__PURE__ */ new WeakSet(), TS = function(s, t, e, r) {
|
|
27554
27555
|
return u(this, null, function* () {
|
|
27555
27556
|
m(this, Dc, s);
|
|
27556
27557
|
try {
|
|
27557
|
-
return a(this, ss) ? yield a(this, ss) : yield
|
|
27558
|
+
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) };
|
|
27558
27559
|
} catch (i) {
|
|
27559
27560
|
return this.logger.error("Failed to complete room join", { error: i }), { roomJoined: false };
|
|
27560
27561
|
} finally {
|
|
@@ -27594,13 +27595,13 @@ const yS = (Tu = class {
|
|
|
27594
27595
|
this.logger.error("Error reporting room joined analytics", { error: t });
|
|
27595
27596
|
}
|
|
27596
27597
|
}, 0);
|
|
27597
|
-
},
|
|
27598
|
+
}, Lc = /* @__PURE__ */ new WeakSet(), ch = function(s, t, e, r) {
|
|
27598
27599
|
return u(this, null, function* () {
|
|
27599
27600
|
var i, n;
|
|
27600
27601
|
try {
|
|
27601
|
-
(n = a(this, Nc)) != null || m(this, Nc,
|
|
27602
|
-
const o =
|
|
27603
|
-
yield
|
|
27602
|
+
(n = a(this, Nc)) != null || m(this, Nc, V(i = yS, Il, PS).call(i));
|
|
27603
|
+
const o = V(this, Al, CS).call(this);
|
|
27604
|
+
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);
|
|
27604
27605
|
} catch (o) {
|
|
27605
27606
|
throw this.logger.error("Failed to initialize connection", { error: o }), o;
|
|
27606
27607
|
}
|
|
@@ -27613,7 +27614,7 @@ const yS = (Tu = class {
|
|
|
27613
27614
|
return { latitude: t, longitude: e };
|
|
27614
27615
|
}, Al = /* @__PURE__ */ new WeakSet(), CS = function() {
|
|
27615
27616
|
var e;
|
|
27616
|
-
const s = (e = this.context.getValue("flagsmith").getValue(
|
|
27617
|
+
const s = (e = this.context.getValue("flagsmith").getValue(Y.FORCE_VIDEO_CODEC)) == null ? void 0 : e.toString(), t = Z0(s);
|
|
27617
27618
|
return m(this, Fn, t), t;
|
|
27618
27619
|
}, Ml = /* @__PURE__ */ new WeakSet(), RS = function(s, t, e, r) {
|
|
27619
27620
|
return u(this, null, function* () {
|
|
@@ -27641,14 +27642,14 @@ const yS = (Tu = class {
|
|
|
27641
27642
|
{
|
|
27642
27643
|
delayTime: 1e3,
|
|
27643
27644
|
strategy: "exponential",
|
|
27644
|
-
maxRetryCount: this.context.getValue("flagsmith").hasFeature(
|
|
27645
|
+
maxRetryCount: this.context.getValue("flagsmith").hasFeature(Y.ENABLE_HIVE_INFINITE_RETRIES) ? 1 / 0 : 3
|
|
27645
27646
|
}
|
|
27646
27647
|
);
|
|
27647
27648
|
});
|
|
27648
27649
|
}, Dl = /* @__PURE__ */ new WeakSet(), wS = function(s) {
|
|
27649
27650
|
return u(this, null, function* () {
|
|
27650
|
-
if (!(a(this,
|
|
27651
|
-
|
|
27651
|
+
if (!(a(this, Vs) === we.HIVE || !this.context.getValue("flagsmith").hasFeature(
|
|
27652
|
+
Y.PRECREATE_PRODUCERS
|
|
27652
27653
|
) || !s))
|
|
27653
27654
|
try {
|
|
27654
27655
|
const e = [];
|
|
@@ -27684,9 +27685,9 @@ const yS = (Tu = class {
|
|
|
27684
27685
|
e2ee: this.e2ee
|
|
27685
27686
|
},
|
|
27686
27687
|
stopTracks: false,
|
|
27687
|
-
zeroRtpOnPause: a(this,
|
|
27688
|
+
zeroRtpOnPause: a(this, Vs) !== we.CF
|
|
27688
27689
|
};
|
|
27689
|
-
},
|
|
27690
|
+
}, Ll = /* @__PURE__ */ new WeakSet(), IS = function(s, t) {
|
|
27690
27691
|
return {
|
|
27691
27692
|
track: s,
|
|
27692
27693
|
codecOptions: t ? t.map((e) => ({
|
|
@@ -27807,7 +27808,7 @@ var yD = Object.defineProperty, TD = Object.getOwnPropertyDescriptor, _a = (s, t
|
|
|
27807
27808
|
for (var i = r > 1 ? void 0 : r ? TD(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
27808
27809
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
27809
27810
|
return r && i && yD(t, e, i), i;
|
|
27810
|
-
}, ia, Ss, te, Et,
|
|
27811
|
+
}, ia, Ss, te, Et, Vt, qg;
|
|
27811
27812
|
const DS = (qg = class {
|
|
27812
27813
|
constructor(s, t, e, r) {
|
|
27813
27814
|
g(this, Et);
|
|
@@ -27845,7 +27846,7 @@ const DS = (qg = class {
|
|
|
27845
27846
|
s.setValue("self", d);
|
|
27846
27847
|
const l = s.getValue("logger");
|
|
27847
27848
|
if (navigator.product !== "ReactNative") {
|
|
27848
|
-
const p = !s.getValue("flagsmith").hasFeature(
|
|
27849
|
+
const p = !s.getValue("flagsmith").hasFeature(Y.PRECALL_BANDWIDTH_TEST);
|
|
27849
27850
|
setTimeout(() => u(this, null, function* () {
|
|
27850
27851
|
const f = yield d.getAllDevices();
|
|
27851
27852
|
l.info("populated_full_device_list", {
|
|
@@ -27886,20 +27887,20 @@ const DS = (qg = class {
|
|
|
27886
27887
|
} = this.self;
|
|
27887
27888
|
if (e.canProduceAudio === j.Allowed && r)
|
|
27888
27889
|
try {
|
|
27889
|
-
yield a(this, Et,
|
|
27890
|
+
yield a(this, Et, Vt).shareMic(s), this.self.audioEnabled || a(this, Et, Vt).pauseMic();
|
|
27890
27891
|
} catch (d) {
|
|
27891
27892
|
this.self.disableAudio();
|
|
27892
27893
|
}
|
|
27893
27894
|
if (e.canProduceVideo === j.Allowed && i)
|
|
27894
27895
|
try {
|
|
27895
|
-
const d = yield a(this, Et,
|
|
27896
|
-
d && d.id !== t.id && a(this, te).getValue("flagsmith").hasFeature(
|
|
27896
|
+
const d = yield a(this, Et, Vt).shareWebcam(t);
|
|
27897
|
+
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();
|
|
27897
27898
|
} catch (d) {
|
|
27898
27899
|
this.self.disableVideo();
|
|
27899
27900
|
}
|
|
27900
27901
|
if (e.canProduceScreenshare === j.Allowed && n)
|
|
27901
27902
|
try {
|
|
27902
|
-
yield (c = a(this, Et,
|
|
27903
|
+
yield (c = a(this, Et, Vt)) == null ? void 0 : c.shareScreen({
|
|
27903
27904
|
video: o.video,
|
|
27904
27905
|
audio: o.audio
|
|
27905
27906
|
});
|
|
@@ -27933,7 +27934,7 @@ const DS = (qg = class {
|
|
|
27933
27934
|
}
|
|
27934
27935
|
resetSelf(s) {
|
|
27935
27936
|
return u(this, null, function* () {
|
|
27936
|
-
a(this, te).getValue("callstats").callEnded(), a(this, Et,
|
|
27937
|
+
a(this, te).getValue("callstats").callEnded(), a(this, Et, Vt).reset(), s && (yield this.joinRoom(s));
|
|
27937
27938
|
});
|
|
27938
27939
|
}
|
|
27939
27940
|
setupEvents() {
|
|
@@ -27951,7 +27952,7 @@ const DS = (qg = class {
|
|
|
27951
27952
|
if (this.self.roomState === "disconnected")
|
|
27952
27953
|
return;
|
|
27953
27954
|
let { peerId: t } = this;
|
|
27954
|
-
s && a(this, te).getValue("flagsmith").hasFeature(
|
|
27955
|
+
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" });
|
|
27955
27956
|
}), a(this, te).getValue("peerSessionStore").on(k.SOCKET_SERVICE_FAILED, () => {
|
|
27956
27957
|
this.self.roomState = "failed", this.self.emit("roomLeft", { state: "failed" });
|
|
27957
27958
|
}), a(this, Ss).on(x.waitingRoomRequestAccepted, () => {
|
|
@@ -28051,7 +28052,7 @@ const DS = (qg = class {
|
|
|
28051
28052
|
peerId: t
|
|
28052
28053
|
});
|
|
28053
28054
|
}
|
|
28054
|
-
const { canProduceAudio: l, canProduceVideo: p, canProduceScreenshare: f } = this.self.permissions, { roomJoined: S } = (d = yield (c = a(this, Et,
|
|
28055
|
+
const { canProduceAudio: l, canProduceVideo: p, canProduceScreenshare: f } = this.self.permissions, { roomJoined: S } = (d = yield (c = a(this, Et, Vt)) == null ? void 0 : c.joinRoom(
|
|
28055
28056
|
this.self.name,
|
|
28056
28057
|
r,
|
|
28057
28058
|
s,
|
|
@@ -28073,7 +28074,7 @@ const DS = (qg = class {
|
|
|
28073
28074
|
leaveMediaRoom(s) {
|
|
28074
28075
|
return u(this, null, function* () {
|
|
28075
28076
|
const t = a(this, te).getValue("viewType");
|
|
28076
|
-
s !== "connected-meeting" && (yield this.cleanupSelf()), !(s === "stageLeft" && t === Mt.Webinar) && a(this, Et,
|
|
28077
|
+
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));
|
|
28077
28078
|
});
|
|
28078
28079
|
}
|
|
28079
28080
|
cleanupSelf() {
|
|
@@ -28081,7 +28082,7 @@ const DS = (qg = class {
|
|
|
28081
28082
|
yield this.self.disableAudio(), yield this.self.disableVideo(), yield this.self.disableScreenShare(), this.self.cleanUpTracks(), this.self.destructMediaHandler(), navigator.isReactNative || this.self.removeDocumentEventListeners();
|
|
28082
28083
|
});
|
|
28083
28084
|
}
|
|
28084
|
-
}, ia = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakSet(),
|
|
28085
|
+
}, ia = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakSet(), Vt = function() {
|
|
28085
28086
|
return a(this, te).getValue("roomNodeClient");
|
|
28086
28087
|
}, qg);
|
|
28087
28088
|
let ai = DS;
|
|
@@ -28106,15 +28107,15 @@ _a([
|
|
|
28106
28107
|
_a([
|
|
28107
28108
|
E.trace("SelfController.init")
|
|
28108
28109
|
], ai, "init", 1);
|
|
28109
|
-
var
|
|
28110
|
+
var Vc;
|
|
28110
28111
|
class ED {
|
|
28111
28112
|
constructor(t) {
|
|
28112
|
-
g(this,
|
|
28113
|
-
m(this,
|
|
28113
|
+
g(this, Vc, void 0);
|
|
28114
|
+
m(this, Vc, t);
|
|
28114
28115
|
}
|
|
28115
28116
|
on(t, e) {
|
|
28116
28117
|
let r;
|
|
28117
|
-
t === x.roomPeerCount ? r = zp.fromBinary.bind(zp) : r = ng.fromBinary.bind(ng), a(this,
|
|
28118
|
+
t === x.roomPeerCount ? r = zp.fromBinary.bind(zp) : r = ng.fromBinary.bind(ng), a(this, Vc).on(t, ({ payload: i }) => {
|
|
28118
28119
|
if (t === x.roomPeerCount && !i)
|
|
28119
28120
|
return;
|
|
28120
28121
|
const n = r(i);
|
|
@@ -28122,7 +28123,7 @@ class ED {
|
|
|
28122
28123
|
});
|
|
28123
28124
|
}
|
|
28124
28125
|
}
|
|
28125
|
-
|
|
28126
|
+
Vc = /* @__PURE__ */ new WeakMap();
|
|
28126
28127
|
var xc, Uc;
|
|
28127
28128
|
class _D {
|
|
28128
28129
|
constructor(t, e) {
|
|
@@ -28509,7 +28510,7 @@ class OS {
|
|
|
28509
28510
|
});
|
|
28510
28511
|
}), this.socket.sendMessagePromise(
|
|
28511
28512
|
fd.updateUserPreset,
|
|
28512
|
-
|
|
28513
|
+
Lk.toBinary(r)
|
|
28513
28514
|
);
|
|
28514
28515
|
});
|
|
28515
28516
|
}
|
|
@@ -28762,7 +28763,7 @@ class ID {
|
|
|
28762
28763
|
removePlugin(t) {
|
|
28763
28764
|
a(this, Ge).sendMessage(
|
|
28764
28765
|
W.removePlugin,
|
|
28765
|
-
|
|
28766
|
+
VI.toBinary({ pluginId: t, staggered: false })
|
|
28766
28767
|
);
|
|
28767
28768
|
}
|
|
28768
28769
|
getActivePlugins() {
|
|
@@ -28989,11 +28990,11 @@ de.prototype.setMaxListeners = function(s) {
|
|
|
28989
28990
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + s + ".");
|
|
28990
28991
|
return this._maxListeners = s, this;
|
|
28991
28992
|
};
|
|
28992
|
-
function
|
|
28993
|
+
function LS(s) {
|
|
28993
28994
|
return s._maxListeners === void 0 ? de.defaultMaxListeners : s._maxListeners;
|
|
28994
28995
|
}
|
|
28995
28996
|
de.prototype.getMaxListeners = function() {
|
|
28996
|
-
return
|
|
28997
|
+
return LS(this);
|
|
28997
28998
|
};
|
|
28998
28999
|
de.prototype.emit = function(s) {
|
|
28999
29000
|
for (var t = [], e = 1; e < arguments.length; e++)
|
|
@@ -29020,7 +29021,7 @@ de.prototype.emit = function(s) {
|
|
|
29020
29021
|
Tg(l[e], this, t);
|
|
29021
29022
|
return true;
|
|
29022
29023
|
};
|
|
29023
|
-
function
|
|
29024
|
+
function VS(s, t, e, r) {
|
|
29024
29025
|
var i, n, o;
|
|
29025
29026
|
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(
|
|
29026
29027
|
"newListener",
|
|
@@ -29028,7 +29029,7 @@ function LS(s, t, e, r) {
|
|
|
29028
29029
|
e.listener ? e.listener : e
|
|
29029
29030
|
), n = s._events), o = n[t]), o === void 0)
|
|
29030
29031
|
o = n[t] = e, ++s._eventsCount;
|
|
29031
|
-
else if (typeof o == "function" ? o = n[t] = r ? [e, o] : [o, e] : r ? o.unshift(e) : o.push(e), i =
|
|
29032
|
+
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) {
|
|
29032
29033
|
o.warned = true;
|
|
29033
29034
|
var c = new Error("Possible EventEmitter memory leak detected. " + o.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
29034
29035
|
c.name = "MaxListenersExceededWarning", c.emitter = s, c.type = t, c.count = o.length, ND(c);
|
|
@@ -29036,18 +29037,18 @@ function LS(s, t, e, r) {
|
|
|
29036
29037
|
return s;
|
|
29037
29038
|
}
|
|
29038
29039
|
de.prototype.addListener = function(s, t) {
|
|
29039
|
-
return
|
|
29040
|
+
return VS(this, s, t, false);
|
|
29040
29041
|
};
|
|
29041
29042
|
de.prototype.on = de.prototype.addListener;
|
|
29042
29043
|
de.prototype.prependListener = function(s, t) {
|
|
29043
|
-
return
|
|
29044
|
+
return VS(this, s, t, true);
|
|
29044
29045
|
};
|
|
29045
|
-
function
|
|
29046
|
+
function LD() {
|
|
29046
29047
|
if (!this.fired)
|
|
29047
29048
|
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);
|
|
29048
29049
|
}
|
|
29049
29050
|
function xS(s, t, e) {
|
|
29050
|
-
var r = { fired: false, wrapFn: void 0, target: s, type: t, listener: e }, i =
|
|
29051
|
+
var r = { fired: false, wrapFn: void 0, target: s, type: t, listener: e }, i = LD.bind(r);
|
|
29051
29052
|
return i.listener = e, r.wrapFn = i, i;
|
|
29052
29053
|
}
|
|
29053
29054
|
de.prototype.once = function(s, t) {
|
|
@@ -29072,7 +29073,7 @@ de.prototype.removeListener = function(s, t) {
|
|
|
29072
29073
|
}
|
|
29073
29074
|
if (i < 0)
|
|
29074
29075
|
return this;
|
|
29075
|
-
i === 0 ? e.shift() :
|
|
29076
|
+
i === 0 ? e.shift() : VD(e, i), e.length === 1 && (r[s] = e[0]), r.removeListener !== void 0 && this.emit("removeListener", s, o || t);
|
|
29076
29077
|
}
|
|
29077
29078
|
return this;
|
|
29078
29079
|
};
|
|
@@ -29132,7 +29133,7 @@ function FS(s, t) {
|
|
|
29132
29133
|
e[r] = s[r];
|
|
29133
29134
|
return e;
|
|
29134
29135
|
}
|
|
29135
|
-
function
|
|
29136
|
+
function VD(s, t) {
|
|
29136
29137
|
for (; t + 1 < s.length; t++)
|
|
29137
29138
|
s[t] = s[t + 1];
|
|
29138
29139
|
s.pop();
|
|
@@ -29488,7 +29489,7 @@ const JS = (jg = class {
|
|
|
29488
29489
|
var n;
|
|
29489
29490
|
if (!t || !e || !r)
|
|
29490
29491
|
throw new R("peerId, meetingId, or authToken can not be empty", "0404");
|
|
29491
|
-
m(this, rs, void 0), m(this, st, s), this.capabilities = i, this.roomName = e, this.authToken = r, m(this, zr,
|
|
29492
|
+
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), {
|
|
29492
29493
|
autoReconnect: true,
|
|
29493
29494
|
disconnectOnPingTimeout: (n = i.includes("PING")) != null ? n : false,
|
|
29494
29495
|
queueOnDisconnect: true,
|
|
@@ -29512,7 +29513,7 @@ const JS = (jg = class {
|
|
|
29512
29513
|
return a(this, st).getValue("peerId");
|
|
29513
29514
|
}
|
|
29514
29515
|
updateURL(s) {
|
|
29515
|
-
s !== this.peerId && (m(this, zr,
|
|
29516
|
+
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));
|
|
29516
29517
|
}
|
|
29517
29518
|
static getSocketEdgeDomain(s) {
|
|
29518
29519
|
return da({ servicePrefix: "socket-edge", baseURI: s });
|
|
@@ -29547,7 +29548,7 @@ const JS = (jg = class {
|
|
|
29547
29548
|
const r = {};
|
|
29548
29549
|
return a(this, st).getValue("telemetry").injectContext(r), a(this, Pe).send(
|
|
29549
29550
|
s,
|
|
29550
|
-
e != null ? e :
|
|
29551
|
+
e != null ? e : V(this, Hc, fh).call(this),
|
|
29551
29552
|
t,
|
|
29552
29553
|
new TextEncoder().encode(JSON.stringify(r))
|
|
29553
29554
|
);
|
|
@@ -29580,7 +29581,7 @@ const JS = (jg = class {
|
|
|
29580
29581
|
Ts.errorResponse,
|
|
29581
29582
|
P
|
|
29582
29583
|
);
|
|
29583
|
-
}, l = r != null ? r :
|
|
29584
|
+
}, l = r != null ? r : V(this, Hc, fh).call(this), p = {};
|
|
29584
29585
|
a(this, st).getValue("telemetry").injectContext(p);
|
|
29585
29586
|
const S = ({
|
|
29586
29587
|
id: _,
|
|
@@ -30243,7 +30244,7 @@ const Ma = class {
|
|
|
30243
30244
|
U,
|
|
30244
30245
|
ie.self,
|
|
30245
30246
|
F.participants
|
|
30246
|
-
)), c.internals && (N = yield
|
|
30247
|
+
)), c.internals && (N = yield Vh.init(t)), c.livestream && n.viewType === Mt.Livestream && t.getValue("flagsmith").hasFeature(Y.LIVESTREAM) && ($ = new Bf(
|
|
30247
30248
|
t,
|
|
30248
30249
|
ie.self,
|
|
30249
30250
|
C
|
|
@@ -30288,7 +30289,7 @@ const Ma = class {
|
|
|
30288
30289
|
}
|
|
30289
30290
|
}
|
|
30290
30291
|
const b = {
|
|
30291
|
-
storesManager: new
|
|
30292
|
+
storesManager: new L0(t, y),
|
|
30292
30293
|
pollController: _,
|
|
30293
30294
|
selfController: ie,
|
|
30294
30295
|
metaController: Me,
|
|
@@ -30400,10 +30401,10 @@ function aO(s, t) {
|
|
|
30400
30401
|
throw new R("Invalid auth token", "0004");
|
|
30401
30402
|
}
|
|
30402
30403
|
}
|
|
30403
|
-
var Yr, aa, na, Bc,
|
|
30404
|
+
var Yr, aa, na, Bc, Vl, YS;
|
|
30404
30405
|
class nO {
|
|
30405
30406
|
constructor() {
|
|
30406
|
-
g(this,
|
|
30407
|
+
g(this, Vl);
|
|
30407
30408
|
g(this, Yr, new Audio());
|
|
30408
30409
|
g(this, aa, new MediaStream());
|
|
30409
30410
|
g(this, na, /* @__PURE__ */ new Map());
|
|
@@ -30427,7 +30428,7 @@ class nO {
|
|
|
30427
30428
|
play() {
|
|
30428
30429
|
return u(this, null, function* () {
|
|
30429
30430
|
return a(this, Yr).srcObject = a(this, aa), a(this, Yr).play().catch((t) => {
|
|
30430
|
-
|
|
30431
|
+
V(this, Vl, YS).call(this, t);
|
|
30431
30432
|
});
|
|
30432
30433
|
});
|
|
30433
30434
|
}
|
|
@@ -30435,7 +30436,7 @@ class nO {
|
|
|
30435
30436
|
m(this, Bc, t);
|
|
30436
30437
|
}
|
|
30437
30438
|
}
|
|
30438
|
-
Yr = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), Bc = /* @__PURE__ */ new WeakMap(),
|
|
30439
|
+
Yr = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), Bc = /* @__PURE__ */ new WeakMap(), Vl = /* @__PURE__ */ new WeakSet(), YS = function(t) {
|
|
30439
30440
|
var e;
|
|
30440
30441
|
(e = a(this, Bc)) == null || e.call(this, t);
|
|
30441
30442
|
};
|
|
@@ -30512,7 +30513,7 @@ let ri = (Wg = class {
|
|
|
30512
30513
|
video: true
|
|
30513
30514
|
};
|
|
30514
30515
|
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 || (() => {
|
|
30515
|
-
})), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.
|
|
30516
|
+
})), 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;
|
|
30516
30517
|
}
|
|
30517
30518
|
join() {
|
|
30518
30519
|
return u(this, null, function* () {
|