@cloudflare/realtimekit 1.2.4-staging.1 → 1.2.4-staging.3
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/EncryptionManager.cjs.js +1 -1
- package/dist/EncryptionManager.d.ts +4 -4
- package/dist/EncryptionManager.es.js +1 -1
- package/dist/browser.js +12 -12
- package/dist/dependencies.txt +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.es.js +300 -38
- package/dist/index.es5.js +558 -376
- package/dist/index.rn.js +2 -2
- package/dist/ts3.4/dist/EncryptionManager.d.ts +4 -4
- package/dist/ts3.4/dist/index.d.ts +4 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5511,7 +5511,6 @@ const ee = {
|
|
|
5511
5511
|
PROPAGATE_KICK_ALL: "propagate_kick_across_rooms",
|
|
5512
5512
|
REFRESH_ID_ON_DISCONNECTION: "refresh_id_on_disconnection",
|
|
5513
5513
|
SKIP_OTEL_TRACES: "skip_otel_traces",
|
|
5514
|
-
USE_USERIDS_IN_CHAT: "use_userids_in_chat",
|
|
5515
5514
|
ENABLE_CF_SIMULCAST: "enable_cf_simulcast",
|
|
5516
5515
|
CF_TRANSPORT_FORCE_RELAY_ON_ICE_FAILED: "cf_transport_force_relay_on_ice_failed",
|
|
5517
5516
|
LOG_LEVEL: "log_level",
|
|
@@ -6295,6 +6294,12 @@ const Bp = 1080, Hp = 1920, Pw = (s, t, e, r, i, a) => {
|
|
|
6295
6294
|
};
|
|
6296
6295
|
var zt, gi, st, Yt, be, ps, zs, gt, De, Vn, Ln, Ys, xn;
|
|
6297
6296
|
const Qh = class extends jt {
|
|
6297
|
+
/**
|
|
6298
|
+
* @param {Context} context
|
|
6299
|
+
* @param {Self} self
|
|
6300
|
+
* @param {(string|HTMLImageElement)} [pin]
|
|
6301
|
+
* @param {(string|HTMLImageElement)} [handraise]
|
|
6302
|
+
*/
|
|
6298
6303
|
constructor(e, r, i, a) {
|
|
6299
6304
|
const o = e.getValue("logger");
|
|
6300
6305
|
super(o);
|
|
@@ -6362,6 +6367,10 @@ const Qh = class extends jt {
|
|
|
6362
6367
|
textOnBrand: r.config.designTokens.colors.textOnBrand
|
|
6363
6368
|
}), i && this.setupIcon("pin", i), a && this.setupIcon("handRaise", a);
|
|
6364
6369
|
}
|
|
6370
|
+
/**
|
|
6371
|
+
* @param {Context} context
|
|
6372
|
+
* @param {Self} self
|
|
6373
|
+
*/
|
|
6365
6374
|
static _init(e, r) {
|
|
6366
6375
|
return u(this, null, function* () {
|
|
6367
6376
|
let i, a;
|
|
@@ -6546,8 +6555,11 @@ const Qh = class extends jt {
|
|
|
6546
6555
|
this.removeAllSources(), f(this, zt, void 0), f(this, Yt, void 0), f(this, zs, void 0);
|
|
6547
6556
|
}
|
|
6548
6557
|
/**
|
|
6549
|
-
|
|
6550
|
-
|
|
6558
|
+
* Initialize PiP and prepare sources
|
|
6559
|
+
* @param {Object} [options]
|
|
6560
|
+
* @param {number} [options.height]
|
|
6561
|
+
* @param {number} [options.width]
|
|
6562
|
+
*/
|
|
6551
6563
|
init({ height: e, width: r } = {}) {
|
|
6552
6564
|
if (!this.isSupported())
|
|
6553
6565
|
throw this.logger.error("Pip.unsupported"), new Error("Picture-in-picture is not available in this environment");
|
|
@@ -6574,6 +6586,9 @@ const Qh = class extends jt {
|
|
|
6574
6586
|
enableSource(e) {
|
|
6575
6587
|
n(this, gt)[e] !== void 0 && (n(this, gt)[e].enabled = !0);
|
|
6576
6588
|
}
|
|
6589
|
+
/**
|
|
6590
|
+
* @param {string} source
|
|
6591
|
+
*/
|
|
6577
6592
|
disableSource(e) {
|
|
6578
6593
|
n(this, gt)[e] !== void 0 && (n(this, gt)[e].enabled = !1);
|
|
6579
6594
|
}
|
|
@@ -6617,7 +6632,11 @@ const Qh = class extends jt {
|
|
|
6617
6632
|
handRaised: d
|
|
6618
6633
|
}, c && this.generateAvatar(e, c);
|
|
6619
6634
|
}
|
|
6620
|
-
/**
|
|
6635
|
+
/**
|
|
6636
|
+
* Update a video source
|
|
6637
|
+
* @param {string} id
|
|
6638
|
+
* @param {any} source
|
|
6639
|
+
*/
|
|
6621
6640
|
updateSource(e, r) {
|
|
6622
6641
|
this.logger.info("Pip::UpdateSource", {
|
|
6623
6642
|
pip: {
|
|
@@ -12738,6 +12757,13 @@ var ZM = Object.defineProperty, e0 = Object.getOwnPropertyDescriptor, ht = (s, t
|
|
|
12738
12757
|
const t0 = ["text", "image", "file", "custom", "poll"], ud = { maxInvocations: 180, period: 60 };
|
|
12739
12758
|
var Z, mi, $e, fi, vi, xd, Mf, No, Lu, Ag;
|
|
12740
12759
|
let ze = (Ag = class extends jt {
|
|
12760
|
+
/**
|
|
12761
|
+
* @param {Context} context
|
|
12762
|
+
* @param {ChatSocketHandler} chatSocketHandler
|
|
12763
|
+
* @param {ChatChannelSocketHandler} chatChannelSocketHandler
|
|
12764
|
+
* @param {Self} self
|
|
12765
|
+
* @param {Participants} participants
|
|
12766
|
+
*/
|
|
12741
12767
|
constructor(t, e, r, i, a) {
|
|
12742
12768
|
const o = t.getValue("logger");
|
|
12743
12769
|
super(o);
|
|
@@ -12771,11 +12797,19 @@ let ze = (Ag = class extends jt {
|
|
|
12771
12797
|
return n(this, vi).getValue("telemetry");
|
|
12772
12798
|
}
|
|
12773
12799
|
/**
|
|
12774
|
-
|
|
12775
|
-
|
|
12800
|
+
* Set the max character limit of a text message
|
|
12801
|
+
* @param {number} limit - Max character limit for a text message.
|
|
12802
|
+
*/
|
|
12776
12803
|
setMaxTextLimit(t) {
|
|
12777
12804
|
this.maxTextLimit = t;
|
|
12778
12805
|
}
|
|
12806
|
+
/**
|
|
12807
|
+
* @param {MessagePayload} message - Message payload to send.
|
|
12808
|
+
* @param {string[]} [participantIds] - Participant ids to send the message to.
|
|
12809
|
+
* @param {string} [channelId] - Channel id (if sending to a channel).
|
|
12810
|
+
* @param {Object} [options] - Additional options.
|
|
12811
|
+
* @param {Message} [options.replyTo] - Message to reply to.
|
|
12812
|
+
*/
|
|
12779
12813
|
sendMessageInternal(a, o, c) {
|
|
12780
12814
|
return u(this, arguments, function* (t, e, r, i = {}) {
|
|
12781
12815
|
switch (t.type) {
|
|
@@ -12798,6 +12832,11 @@ let ze = (Ag = class extends jt {
|
|
|
12798
12832
|
}
|
|
12799
12833
|
});
|
|
12800
12834
|
}
|
|
12835
|
+
/**
|
|
12836
|
+
* @param {string} message - Text message to send.
|
|
12837
|
+
* @param {string[]} [peerIds] - Peer ids to send the message to.
|
|
12838
|
+
* @param {string} [channelId] - Channel id (if sending to a channel).
|
|
12839
|
+
*/
|
|
12801
12840
|
sendTextMessageInternal(t, e, r) {
|
|
12802
12841
|
return u(this, null, function* () {
|
|
12803
12842
|
var a, o, c, d, l, p;
|
|
@@ -12822,6 +12861,11 @@ let ze = (Ag = class extends jt {
|
|
|
12822
12861
|
);
|
|
12823
12862
|
});
|
|
12824
12863
|
}
|
|
12864
|
+
/**
|
|
12865
|
+
* @param {(File|ReactNativeFile)} image - Image file to send.
|
|
12866
|
+
* @param {string[]} [peerIds] - Peer ids to send the message to.
|
|
12867
|
+
* @param {string} [channelId] - Channel id (if sending to a channel).
|
|
12868
|
+
*/
|
|
12825
12869
|
sendImageMessageInternal(t, e, r) {
|
|
12826
12870
|
return u(this, null, function* () {
|
|
12827
12871
|
var a, o, c, d, l, p;
|
|
@@ -12866,6 +12910,11 @@ let ze = (Ag = class extends jt {
|
|
|
12866
12910
|
}
|
|
12867
12911
|
});
|
|
12868
12912
|
}
|
|
12913
|
+
/**
|
|
12914
|
+
* @param {(File|ReactNativeFile)} file - File to send.
|
|
12915
|
+
* @param {string[]} [peerIds] - Peer ids to send the message to.
|
|
12916
|
+
* @param {string} [channelId] - Channel id (if sending to a channel).
|
|
12917
|
+
*/
|
|
12869
12918
|
sendFileMessageInternal(t, e, r) {
|
|
12870
12919
|
return u(this, null, function* () {
|
|
12871
12920
|
var i, a, o, c, d, l;
|
|
@@ -12920,6 +12969,10 @@ let ze = (Ag = class extends jt {
|
|
|
12920
12969
|
get rateLimits() {
|
|
12921
12970
|
return ud;
|
|
12922
12971
|
}
|
|
12972
|
+
/**
|
|
12973
|
+
* @param {number} num
|
|
12974
|
+
* @param {number} period
|
|
12975
|
+
*/
|
|
12923
12976
|
// eslint-disable-next-line class-methods-use-this
|
|
12924
12977
|
updateRateLimits(t, e) {
|
|
12925
12978
|
ud.maxInvocations = t, ud.period = e;
|
|
@@ -12929,6 +12982,10 @@ let ze = (Ag = class extends jt {
|
|
|
12929
12982
|
return this.sendTextMessageInternal(t, e);
|
|
12930
12983
|
});
|
|
12931
12984
|
}
|
|
12985
|
+
/**
|
|
12986
|
+
* @param {CustomMessagePayload} message - Custom message payload.
|
|
12987
|
+
* @param {string[]} [peerIds] - Peer ids to send the message to.
|
|
12988
|
+
*/
|
|
12932
12989
|
sendCustomMessage(t, e) {
|
|
12933
12990
|
return u(this, null, function* () {
|
|
12934
12991
|
var a, o, c, d, l, p, g, v, S, P, _, C, w, L, F;
|
|
@@ -13107,21 +13164,23 @@ let ze = (Ag = class extends jt {
|
|
|
13107
13164
|
}
|
|
13108
13165
|
/**
|
|
13109
13166
|
* Returns an array of messages sent by a specific userId.
|
|
13110
|
-
* @param userId The user id of the user that sent the message.
|
|
13167
|
+
* @param {string} userId The user id of the user that sent the message.
|
|
13111
13168
|
*/
|
|
13112
13169
|
getMessagesByUser(t) {
|
|
13113
13170
|
return this.messages.filter((e) => e.userId === t);
|
|
13114
13171
|
}
|
|
13115
13172
|
/**
|
|
13116
13173
|
* Returns an array of 'text', 'image' or 'file' messages.
|
|
13117
|
-
* @param
|
|
13174
|
+
* @param {(
|
|
13175
|
+
* 'text'|'image'|'file'|'custom'|'poll'
|
|
13176
|
+
* )} type 'text', 'image', 'file', 'custom', or 'poll'.
|
|
13118
13177
|
*/
|
|
13119
13178
|
getMessagesByType(t) {
|
|
13120
13179
|
return this.messages.filter((e) => e.type === t);
|
|
13121
13180
|
}
|
|
13122
13181
|
/**
|
|
13123
13182
|
* Pins a chat message
|
|
13124
|
-
* @param id ID of the message to be pinned
|
|
13183
|
+
* @param {string} id ID of the message to be pinned
|
|
13125
13184
|
*/
|
|
13126
13185
|
pin(t) {
|
|
13127
13186
|
return u(this, null, function* () {
|
|
@@ -13139,7 +13198,7 @@ let ze = (Ag = class extends jt {
|
|
|
13139
13198
|
}
|
|
13140
13199
|
/**
|
|
13141
13200
|
* Unpins a chat message
|
|
13142
|
-
* @param id ID of the message to be unpinned
|
|
13201
|
+
* @param {string} id ID of the message to be unpinned
|
|
13143
13202
|
*/
|
|
13144
13203
|
unpin(t) {
|
|
13145
13204
|
return u(this, null, function* () {
|
|
@@ -13157,6 +13216,11 @@ let ze = (Ag = class extends jt {
|
|
|
13157
13216
|
}
|
|
13158
13217
|
/**
|
|
13159
13218
|
* Gets chat messages in a paginated manner
|
|
13219
|
+
* @param {number} timeStamp
|
|
13220
|
+
* @param {number} size
|
|
13221
|
+
* @param {boolean} reversed
|
|
13222
|
+
* @param {number} [offset=0]
|
|
13223
|
+
* @param {string} [channelId]
|
|
13160
13224
|
*/
|
|
13161
13225
|
getMessages(t, e, r, i = 0, a = void 0) {
|
|
13162
13226
|
return u(this, null, function* () {
|
|
@@ -13738,6 +13802,13 @@ var u0 = Object.defineProperty, h0 = Object.getOwnPropertyDescriptor, p0 = (s, t
|
|
|
13738
13802
|
return r && i && u0(t, e, i), i;
|
|
13739
13803
|
}, Vf = /* @__PURE__ */ ((s) => (s[s.User = 0] = "User", s[s.Meeting = 1] = "Meeting", s))(Vf || {}), qn, Lo, $u, yi, xo, Ng;
|
|
13740
13804
|
let Uu = (Ng = class extends jt {
|
|
13805
|
+
/**
|
|
13806
|
+
* @param {Context} context
|
|
13807
|
+
* @param {Self} self
|
|
13808
|
+
* @param {string} viewType
|
|
13809
|
+
* @param {RoomSocketHandler} roomSocketHandler
|
|
13810
|
+
* @param {string} meetingTitle
|
|
13811
|
+
*/
|
|
13741
13812
|
constructor(t, e, r, i, a) {
|
|
13742
13813
|
const o = t.getValue("logger");
|
|
13743
13814
|
super(o);
|
|
@@ -13786,7 +13857,7 @@ let Uu = (Ng = class extends jt {
|
|
|
13786
13857
|
}
|
|
13787
13858
|
/**
|
|
13788
13859
|
* Sets current user as broadcasting tab changes
|
|
13789
|
-
* @param broadcastTabChanges
|
|
13860
|
+
* @param {boolean} broadcastTabChanges
|
|
13790
13861
|
*/
|
|
13791
13862
|
setBroadcastTabChanges(t) {
|
|
13792
13863
|
if (!n(this, yi).permissions.canSpotlight)
|
|
@@ -13795,7 +13866,8 @@ let Uu = (Ng = class extends jt {
|
|
|
13795
13866
|
}
|
|
13796
13867
|
/**
|
|
13797
13868
|
* Sets current active tab for user
|
|
13798
|
-
* @param spotlightTab
|
|
13869
|
+
* @param {ActiveTab} spotlightTab
|
|
13870
|
+
* @param {TabChangeSource} tabChangeSource
|
|
13799
13871
|
*/
|
|
13800
13872
|
setSelfActiveTab(t, e) {
|
|
13801
13873
|
var r;
|
|
@@ -13862,6 +13934,8 @@ let Zr = (Vg = class extends jt {
|
|
|
13862
13934
|
}
|
|
13863
13935
|
/**
|
|
13864
13936
|
* Parse a single line transcript
|
|
13937
|
+
* @param {string} transcriptData - The transcript data to parse
|
|
13938
|
+
* @param {boolean} [isPartialTranscript=false] - Whether the transcript is partial
|
|
13865
13939
|
*/
|
|
13866
13940
|
static parseTranscript(t, e = !1) {
|
|
13867
13941
|
if (!t)
|
|
@@ -13887,6 +13961,7 @@ let Zr = (Vg = class extends jt {
|
|
|
13887
13961
|
}
|
|
13888
13962
|
/**
|
|
13889
13963
|
* Parse a multi-line transcript
|
|
13964
|
+
* @param {string} transcriptData - The transcript data to parse
|
|
13890
13965
|
*/
|
|
13891
13966
|
static parseTranscripts(t) {
|
|
13892
13967
|
return t ? t.split(`
|
|
@@ -13901,6 +13976,9 @@ let Zr = (Vg = class extends jt {
|
|
|
13901
13976
|
}
|
|
13902
13977
|
});
|
|
13903
13978
|
}
|
|
13979
|
+
/**
|
|
13980
|
+
* @param {TranscriptionData} transcript - Transcript data received for a participant.
|
|
13981
|
+
*/
|
|
13904
13982
|
onTranscript(t) {
|
|
13905
13983
|
return u(this, null, function* () {
|
|
13906
13984
|
var r;
|
|
@@ -14156,11 +14234,21 @@ var y0 = Object.defineProperty, E0 = Object.getOwnPropertyDescriptor, mn = (s, t
|
|
|
14156
14234
|
return r && i && y0(t, e, i), i;
|
|
14157
14235
|
}, Qt, Fd, ie, $o, Ds, We, Fo, Fu, Gn, hd;
|
|
14158
14236
|
class ti extends jt {
|
|
14237
|
+
/**
|
|
14238
|
+
* @param {Context} context
|
|
14239
|
+
* @param {Self} self
|
|
14240
|
+
* @param {Participants} participants
|
|
14241
|
+
* @param {StageSocketHandler} stageSocketHandler
|
|
14242
|
+
* @param {RoomSocketHandler} roomSocketHandler
|
|
14243
|
+
*/
|
|
14159
14244
|
constructor(e, r, i, a, o) {
|
|
14160
14245
|
const c = e.getValue("logger");
|
|
14161
14246
|
super(c);
|
|
14162
14247
|
// eslint-disable-next-line class-methods-use-this
|
|
14163
14248
|
m(this, Fo);
|
|
14249
|
+
/**
|
|
14250
|
+
* @param {StageStatus} status
|
|
14251
|
+
*/
|
|
14164
14252
|
m(this, Gn);
|
|
14165
14253
|
m(this, Qt, void 0);
|
|
14166
14254
|
m(this, Fd, void 0);
|
|
@@ -14253,6 +14341,9 @@ class ti extends jt {
|
|
|
14253
14341
|
n(this, Qt).cancelRequestAccess(), U(this, Gn, hd).call(this, "OFF_STAGE");
|
|
14254
14342
|
});
|
|
14255
14343
|
}
|
|
14344
|
+
/**
|
|
14345
|
+
* @param {string[]} userIds
|
|
14346
|
+
*/
|
|
14256
14347
|
grantAccess(e) {
|
|
14257
14348
|
if (!n(this, ie).roomJoined)
|
|
14258
14349
|
throw new b(
|
|
@@ -14264,6 +14355,9 @@ class ti extends jt {
|
|
|
14264
14355
|
throw this.logger.error("Stage::grant_access::permission_denied"), new b("You do not have permission to perform this action", "2001");
|
|
14265
14356
|
return n(this, Qt).grantAccess(e);
|
|
14266
14357
|
}
|
|
14358
|
+
/**
|
|
14359
|
+
* @param {string[]} userIds
|
|
14360
|
+
*/
|
|
14267
14361
|
denyAccess(e) {
|
|
14268
14362
|
if (!n(this, ie).roomJoined)
|
|
14269
14363
|
throw new b(
|
|
@@ -14315,6 +14409,7 @@ class ti extends jt {
|
|
|
14315
14409
|
* Method to kick a user off the stage
|
|
14316
14410
|
*
|
|
14317
14411
|
* `permissions.acceptStageRequests` privilege required
|
|
14412
|
+
* @param {string[]} userIds
|
|
14318
14413
|
*/
|
|
14319
14414
|
kick(e) {
|
|
14320
14415
|
return u(this, null, function* () {
|
|
@@ -14533,6 +14628,15 @@ const Ie = {
|
|
|
14533
14628
|
};
|
|
14534
14629
|
var it, xt, Wn, Jn, Qs, Kn, Lr, zn, xg;
|
|
14535
14630
|
let Ua = (xg = class extends $a {
|
|
14631
|
+
/**
|
|
14632
|
+
* @param {Context} context
|
|
14633
|
+
* @param {PluginResponse} plugin
|
|
14634
|
+
* @param {PluginSocketHandler} pluginSocketHandler
|
|
14635
|
+
* @param {Self} self
|
|
14636
|
+
* @param {Participants} participants
|
|
14637
|
+
* @param {Chat} chat
|
|
14638
|
+
* @param {string} meetingTitle
|
|
14639
|
+
*/
|
|
14536
14640
|
constructor(t, {
|
|
14537
14641
|
baseURL: e,
|
|
14538
14642
|
createdAt: r,
|
|
@@ -14587,7 +14691,7 @@ let Ua = (xg = class extends $a {
|
|
|
14587
14691
|
/**
|
|
14588
14692
|
* @access private
|
|
14589
14693
|
* This function forwards events to plugin. This is not meant for external use.
|
|
14590
|
-
* @param message Socket message forwarded to this plugin.
|
|
14694
|
+
* @param {PluginIframeMessage} message Socket message forwarded to this plugin.
|
|
14591
14695
|
*/
|
|
14592
14696
|
sendIframeEvent(t) {
|
|
14593
14697
|
this.iframes.size && this.iframes.forEach((e) => {
|
|
@@ -14595,6 +14699,9 @@ let Ua = (xg = class extends $a {
|
|
|
14595
14699
|
r && (navigator.isReactNative ? r.postMessage(JSON.stringify(t)) : r.contentWindow.postMessage(t, "*"));
|
|
14596
14700
|
});
|
|
14597
14701
|
}
|
|
14702
|
+
/**
|
|
14703
|
+
* @param {PluginIframeMessage} iframeMessage
|
|
14704
|
+
*/
|
|
14598
14705
|
handleIframeMessage(t) {
|
|
14599
14706
|
return u(this, null, function* () {
|
|
14600
14707
|
var o;
|
|
@@ -14777,7 +14884,7 @@ let Ua = (xg = class extends $a {
|
|
|
14777
14884
|
/**
|
|
14778
14885
|
* This method is used for cleaning up event listeners attached to an iframe. It must
|
|
14779
14886
|
* be used before the iframe is removed from the DOM.
|
|
14780
|
-
* @param viewId ID of the view corresponding to this iframe. Default is 'default'.
|
|
14887
|
+
* @param {string} viewId ID of the view corresponding to this iframe. Default is 'default'.
|
|
14781
14888
|
*/
|
|
14782
14889
|
removePluginView(t = "default") {
|
|
14783
14890
|
var i;
|
|
@@ -14787,8 +14894,8 @@ let Ua = (xg = class extends $a {
|
|
|
14787
14894
|
/**
|
|
14788
14895
|
* This method adds the communcation layer between the plugin inside the iframe
|
|
14789
14896
|
* and the core application (meeting object) in the main window.
|
|
14790
|
-
* @param iframe Iframe element to display this plugin.
|
|
14791
|
-
* @param viewId ID of the view corresponding to this iframe. Default is 'default'.
|
|
14897
|
+
* @param {(HTMLIFrameElement|ReactNativeWebView)} iframe Iframe element to display this plugin.
|
|
14898
|
+
* @param {string} viewId ID of the view corresponding to this iframe. Default is 'default'.
|
|
14792
14899
|
*/
|
|
14793
14900
|
addPluginView(t, e = "default") {
|
|
14794
14901
|
var o;
|
|
@@ -14820,6 +14927,9 @@ let Ua = (xg = class extends $a {
|
|
|
14820
14927
|
window.addEventListener("message", c), this.iframes.set(e, { iframe: r, listener: c });
|
|
14821
14928
|
}
|
|
14822
14929
|
}
|
|
14930
|
+
/**
|
|
14931
|
+
* @param {boolean} active
|
|
14932
|
+
*/
|
|
14823
14933
|
setActive(t) {
|
|
14824
14934
|
var e, r;
|
|
14825
14935
|
if (this.active = t, t) {
|
|
@@ -15023,6 +15133,9 @@ var k0 = Object.defineProperty, I0 = Object.getOwnPropertyDescriptor, A0 = (s, t
|
|
|
15023
15133
|
return r && i && k0(t, e, i), i;
|
|
15024
15134
|
};
|
|
15025
15135
|
let Bu = class {
|
|
15136
|
+
/**
|
|
15137
|
+
* @param {Logger} logger
|
|
15138
|
+
*/
|
|
15026
15139
|
constructor(s) {
|
|
15027
15140
|
/**
|
|
15028
15141
|
* All plugins accessible by the current user.
|
|
@@ -17505,6 +17618,9 @@ const fD = jc, vg = Rs(
|
|
|
17505
17618
|
);
|
|
17506
17619
|
var Ct, bi, Jo, sa;
|
|
17507
17620
|
const Rn = class {
|
|
17621
|
+
/**
|
|
17622
|
+
* @param {PresetV2CamelCased} preset
|
|
17623
|
+
*/
|
|
17508
17624
|
constructor(t) {
|
|
17509
17625
|
m(this, Ct, void 0);
|
|
17510
17626
|
m(this, bi, void 0);
|
|
@@ -17514,7 +17630,10 @@ const Rn = class {
|
|
|
17514
17630
|
throw new b("Could not load preset.", "0904");
|
|
17515
17631
|
f(this, Ct, t.config), f(this, Jo, t.name), f(this, bi, t.ui || Rs(Rh().ui)), f(this, sa, t.permissions.plugins.config);
|
|
17516
17632
|
}
|
|
17517
|
-
/**
|
|
17633
|
+
/**
|
|
17634
|
+
* @deprecated. Use init()
|
|
17635
|
+
* @param {PresetV2CamelCased} preset
|
|
17636
|
+
*/
|
|
17518
17637
|
static fromResponse(t) {
|
|
17519
17638
|
return new Rn(t);
|
|
17520
17639
|
}
|
|
@@ -17522,6 +17641,10 @@ const Rn = class {
|
|
|
17522
17641
|
static default() {
|
|
17523
17642
|
return new Rn(vg);
|
|
17524
17643
|
}
|
|
17644
|
+
/**
|
|
17645
|
+
* @param {PresetV2CamelCased} [preset]
|
|
17646
|
+
* @param {boolean} [useDefault=true]
|
|
17647
|
+
*/
|
|
17525
17648
|
static init(t, e = !0) {
|
|
17526
17649
|
return !t || e ? new Rn(vg) : new Rn(t);
|
|
17527
17650
|
}
|
|
@@ -17671,6 +17794,10 @@ var vD = Object.defineProperty, SD = Object.getOwnPropertyDescriptor, Wf = (s, t
|
|
|
17671
17794
|
return r && i && vD(t, e, i), i;
|
|
17672
17795
|
}, ra, Ko;
|
|
17673
17796
|
class $h extends jt {
|
|
17797
|
+
/**
|
|
17798
|
+
* @param {Context} context
|
|
17799
|
+
* @param {Self} self
|
|
17800
|
+
*/
|
|
17674
17801
|
constructor(e, r) {
|
|
17675
17802
|
const i = e.getValue("logger");
|
|
17676
17803
|
super(i);
|
|
@@ -17689,6 +17816,9 @@ class $h extends jt {
|
|
|
17689
17816
|
get telemetry() {
|
|
17690
17817
|
return n(this, Ko).getValue("telemetry");
|
|
17691
17818
|
}
|
|
17819
|
+
/**
|
|
17820
|
+
* @param {LivestreamState} livestreamState
|
|
17821
|
+
*/
|
|
17692
17822
|
setLivestreamState(e) {
|
|
17693
17823
|
const r = this.state;
|
|
17694
17824
|
this.state = e, r !== e && this.emitCurrentLivestreamState();
|
|
@@ -17852,6 +17982,12 @@ var PD = Object.defineProperty, _D = Object.getOwnPropertyDescriptor, Gc = (s, t
|
|
|
17852
17982
|
return r && i && PD(t, e, i), i;
|
|
17853
17983
|
}, nt, xr, Ur, Bd, Kf;
|
|
17854
17984
|
class Ha {
|
|
17985
|
+
/**
|
|
17986
|
+
* @param {Object} args
|
|
17987
|
+
* @param {string} args.name
|
|
17988
|
+
* @param {PluginSocketHandler} args.socketHandler
|
|
17989
|
+
* @param {string} args.meetingId
|
|
17990
|
+
*/
|
|
17855
17991
|
constructor({ name: t, socketHandler: e, meetingId: r }) {
|
|
17856
17992
|
m(this, Bd);
|
|
17857
17993
|
h(this, "name", "");
|
|
@@ -17873,6 +18009,8 @@ class Ha {
|
|
|
17873
18009
|
* @description Sets a value in the store.
|
|
17874
18010
|
* @param {string} key - Unique identifier used to store value.
|
|
17875
18011
|
* @param {any} value - Data to be set.
|
|
18012
|
+
* @param {boolean} [sync=true] - Whether to sync change to remote store.
|
|
18013
|
+
* @param {boolean} [emit=false] - Whether to emit to local subscribers.
|
|
17876
18014
|
* @returns {Promise<void>} A promise.
|
|
17877
18015
|
*/
|
|
17878
18016
|
set(t, e, r = !0, i = !1) {
|
|
@@ -17941,12 +18079,20 @@ class Ha {
|
|
|
17941
18079
|
get rateLimits() {
|
|
17942
18080
|
return this.rateLimitConfig;
|
|
17943
18081
|
}
|
|
18082
|
+
/**
|
|
18083
|
+
* @param {number} num
|
|
18084
|
+
* @param {number} period
|
|
18085
|
+
*/
|
|
17944
18086
|
updateRateLimits(t, e) {
|
|
17945
18087
|
this.rateLimitConfig.maxInvocations = t, this.rateLimitConfig.period = e;
|
|
17946
18088
|
}
|
|
17947
18089
|
get bulkRateLimits() {
|
|
17948
18090
|
return this.bulkRateLimitConfig;
|
|
17949
18091
|
}
|
|
18092
|
+
/**
|
|
18093
|
+
* @param {number} num
|
|
18094
|
+
* @param {number} period
|
|
18095
|
+
*/
|
|
17950
18096
|
// eslint-disable-next-line class-methods-use-this
|
|
17951
18097
|
updateBulkRateLimits(t, e) {
|
|
17952
18098
|
this.bulkRateLimitConfig.maxInvocations = t, this.bulkRateLimitConfig.period = e;
|
|
@@ -17966,11 +18112,11 @@ class Ha {
|
|
|
17966
18112
|
this.listeners[t] = [e];
|
|
17967
18113
|
}
|
|
17968
18114
|
/**
|
|
17969
|
-
|
|
17970
|
-
|
|
17971
|
-
|
|
17972
|
-
|
|
17973
|
-
|
|
18115
|
+
* @description Removes all listeners for a key on the store.
|
|
18116
|
+
* @param {string} key - Unique identifier used to store value.
|
|
18117
|
+
* @param {Function} [cb] - Callback to be removed.
|
|
18118
|
+
* @returns {void} void
|
|
18119
|
+
*/
|
|
17974
18120
|
unsubscribe(t, e) {
|
|
17975
18121
|
var r;
|
|
17976
18122
|
if (e) {
|
|
@@ -17979,6 +18125,9 @@ class Ha {
|
|
|
17979
18125
|
}
|
|
17980
18126
|
this.listeners[t] && delete this.listeners[t];
|
|
17981
18127
|
}
|
|
18128
|
+
/**
|
|
18129
|
+
* @param {StoreData} data
|
|
18130
|
+
*/
|
|
17982
18131
|
populate(t) {
|
|
17983
18132
|
f(this, nt, t);
|
|
17984
18133
|
}
|
|
@@ -18125,6 +18274,12 @@ var wD = Object.defineProperty, RD = Object.getOwnPropertyDescriptor, qa = (s, t
|
|
|
18125
18274
|
const bD = 0.8, kD = 1.2;
|
|
18126
18275
|
var aa, oa, Ut, Ai, ho, Fr, En, Mi, po, qd, Yf, er, Qo, Br, Di, go, tr, jd, Xo, ju, Gd, Qf, Wd, Xf, Bg;
|
|
18127
18276
|
let Tr = (Bg = class extends jt {
|
|
18277
|
+
/**
|
|
18278
|
+
* @param {Context} context
|
|
18279
|
+
* @param {IParticipant} participant
|
|
18280
|
+
* @param {Self} self
|
|
18281
|
+
* @param {RoomSocketHandler} roomSocket
|
|
18282
|
+
*/
|
|
18128
18283
|
constructor(t, e, r, i) {
|
|
18129
18284
|
const a = t.getValue("logger");
|
|
18130
18285
|
super(a);
|
|
@@ -18285,18 +18440,30 @@ let Tr = (Bg = class extends jt {
|
|
|
18285
18440
|
get telemetry() {
|
|
18286
18441
|
return n(this, Ut).getValue("telemetry");
|
|
18287
18442
|
}
|
|
18443
|
+
/**
|
|
18444
|
+
* @param {boolean} videoEnabled
|
|
18445
|
+
* @param {boolean} [emitEvent=true]
|
|
18446
|
+
*/
|
|
18288
18447
|
setVideoEnabled(t, e = !0) {
|
|
18289
18448
|
this.videoEnabled = t, e && (this.logger.info("Participant::setVideoEnabled::videoUpdate", D({}, ui(this))), this.emit("videoUpdate", {
|
|
18290
18449
|
videoEnabled: this.videoEnabled,
|
|
18291
18450
|
videoTrack: this.videoTrack
|
|
18292
18451
|
}));
|
|
18293
18452
|
}
|
|
18453
|
+
/**
|
|
18454
|
+
* @param {boolean} audioEnabled
|
|
18455
|
+
* @param {boolean} [emitEvent=true]
|
|
18456
|
+
*/
|
|
18294
18457
|
setAudioEnabled(t, e = !0) {
|
|
18295
18458
|
this.audioEnabled = t, e && (this.logger.info("Participant::setAudioEnabled::audioUpdate", D({}, ui(this))), this.emit("audioUpdate", {
|
|
18296
18459
|
audioEnabled: this.audioEnabled,
|
|
18297
18460
|
audioTrack: this.audioTrack
|
|
18298
18461
|
}));
|
|
18299
18462
|
}
|
|
18463
|
+
/**
|
|
18464
|
+
* @param {boolean} screenShareEnabled
|
|
18465
|
+
* @param {boolean} [emitEvent=true]
|
|
18466
|
+
*/
|
|
18300
18467
|
setScreenShareEnabled(t, e = !0) {
|
|
18301
18468
|
this.screenShareEnabled = t, e && this.emit("screenShareUpdate", {
|
|
18302
18469
|
screenShareEnabled: this.screenShareEnabled,
|
|
@@ -18335,6 +18502,8 @@ let Tr = (Bg = class extends jt {
|
|
|
18335
18502
|
/**
|
|
18336
18503
|
* @access private
|
|
18337
18504
|
* Not for external use
|
|
18505
|
+
* @param {boolean} isPinned
|
|
18506
|
+
* @param {boolean} [emitEvent=true]
|
|
18338
18507
|
*/
|
|
18339
18508
|
setIsPinned(t, e = !0) {
|
|
18340
18509
|
var i;
|
|
@@ -18408,6 +18577,9 @@ let Tr = (Bg = class extends jt {
|
|
|
18408
18577
|
return n(this, Qo).getUserPermissions(this.userId);
|
|
18409
18578
|
});
|
|
18410
18579
|
}
|
|
18580
|
+
/**
|
|
18581
|
+
* @param {StageStatus} stageStatus
|
|
18582
|
+
*/
|
|
18411
18583
|
setStageStatus(t) {
|
|
18412
18584
|
f(this, oa, t), this.emit("stageStatusUpdate", this);
|
|
18413
18585
|
}
|
|
@@ -18417,6 +18589,9 @@ let Tr = (Bg = class extends jt {
|
|
|
18417
18589
|
get isPinned() {
|
|
18418
18590
|
return n(this, aa);
|
|
18419
18591
|
}
|
|
18592
|
+
/**
|
|
18593
|
+
* @param {HTMLVideoElement} videoElem
|
|
18594
|
+
*/
|
|
18420
18595
|
registerVideoElement(t) {
|
|
18421
18596
|
var r, i, a, o;
|
|
18422
18597
|
if (!t)
|
|
@@ -18432,6 +18607,9 @@ let Tr = (Bg = class extends jt {
|
|
|
18432
18607
|
(a = this.raised) != null ? a : !1
|
|
18433
18608
|
);
|
|
18434
18609
|
}
|
|
18610
|
+
/**
|
|
18611
|
+
* @param {HTMLVideoElement} [videoElem]
|
|
18612
|
+
*/
|
|
18435
18613
|
deregisterVideoElement(t) {
|
|
18436
18614
|
var e, r, i, a;
|
|
18437
18615
|
if (!t) {
|
|
@@ -18442,6 +18620,7 @@ let Tr = (Bg = class extends jt {
|
|
|
18442
18620
|
}
|
|
18443
18621
|
/**
|
|
18444
18622
|
* Internal method, do not use
|
|
18623
|
+
* @param {HTMLVideoElement} e
|
|
18445
18624
|
*/
|
|
18446
18625
|
updateVideo(t) {
|
|
18447
18626
|
var e;
|
|
@@ -18495,6 +18674,10 @@ Tr = qa([
|
|
|
18495
18674
|
ut("1200")
|
|
18496
18675
|
], Tr);
|
|
18497
18676
|
class uo extends Ff {
|
|
18677
|
+
/**
|
|
18678
|
+
* @param {Logger} logger
|
|
18679
|
+
* @param {MapEvents} [options]
|
|
18680
|
+
*/
|
|
18498
18681
|
constructor(t, e) {
|
|
18499
18682
|
const {
|
|
18500
18683
|
onAddEvent: r = "participantJoined",
|
|
@@ -18507,12 +18690,25 @@ class uo extends Ff {
|
|
|
18507
18690
|
onClearEvent: a
|
|
18508
18691
|
}, t);
|
|
18509
18692
|
}
|
|
18693
|
+
/**
|
|
18694
|
+
* @param {T} participant
|
|
18695
|
+
* @param {boolean} [emitEvent=true]
|
|
18696
|
+
*/
|
|
18510
18697
|
add(t, e = !0) {
|
|
18511
18698
|
return this.has(t.id) && Object.is(this.get(t.id), t) === !1 && this.delete(t.id), super.add(t, e);
|
|
18512
18699
|
}
|
|
18700
|
+
/**
|
|
18701
|
+
* @param {boolean} [emitEvent=true]
|
|
18702
|
+
* @param {boolean} [removeListeners=false]
|
|
18703
|
+
*/
|
|
18513
18704
|
clear(t = !0, e = !1) {
|
|
18514
18705
|
return super.clear(t, e);
|
|
18515
18706
|
}
|
|
18707
|
+
/**
|
|
18708
|
+
* @param {string} participantId
|
|
18709
|
+
* @param {boolean} [emitEvent=true]
|
|
18710
|
+
* @param {boolean} [removeListeners=false]
|
|
18711
|
+
*/
|
|
18516
18712
|
delete(t, e = !0, r = !1) {
|
|
18517
18713
|
return super.delete(t, e, r);
|
|
18518
18714
|
}
|
|
@@ -18627,6 +18823,14 @@ var DD = Object.defineProperty, OD = Object.getOwnPropertyDescriptor, Jt = (s, t
|
|
|
18627
18823
|
const ND = ["ACTIVE_GRID", "PAGINATED", "MANUAL"];
|
|
18628
18824
|
var Ee, Zo, Gu, Oi, mo, ca, gd, Ni, wt, Hg;
|
|
18629
18825
|
let Pt = (Hg = class extends jt {
|
|
18826
|
+
/**
|
|
18827
|
+
* This constructs a new Participant object and maintains
|
|
18828
|
+
* the maps of active/joined/waitlisted/pinned/selectedPeers maps.
|
|
18829
|
+
* self : Self
|
|
18830
|
+
* @param {Context} context
|
|
18831
|
+
* @param {Self} self
|
|
18832
|
+
* @param {RoomSocketHandler} roomSocketHandler
|
|
18833
|
+
*/
|
|
18630
18834
|
constructor(t, e, r) {
|
|
18631
18835
|
const i = t.getValue("logger");
|
|
18632
18836
|
super(i);
|
|
@@ -18702,11 +18906,6 @@ let Pt = (Hg = class extends jt {
|
|
|
18702
18906
|
* This stores the `participantId` of the last participant who spoke in the meeting.
|
|
18703
18907
|
*/
|
|
18704
18908
|
h(this, "lastActiveSpeaker");
|
|
18705
|
-
/**
|
|
18706
|
-
* This constructs a new Participant object and maintains
|
|
18707
|
-
* the maps of active/joined/waitlisted/pinned/selectedPeers maps.
|
|
18708
|
-
* @param self : Self
|
|
18709
|
-
*/
|
|
18710
18909
|
/**
|
|
18711
18910
|
* Keeps a list of all participants who have been present in the selected peers list.
|
|
18712
18911
|
*/
|
|
@@ -18763,7 +18962,7 @@ let Pt = (Hg = class extends jt {
|
|
|
18763
18962
|
* Updates the maximum number of participants that are populated in
|
|
18764
18963
|
* the active map.
|
|
18765
18964
|
*
|
|
18766
|
-
* @param limit
|
|
18965
|
+
* @param {number} limit Updated max limit
|
|
18767
18966
|
*/
|
|
18768
18967
|
setMaxActiveParticipantsCount(t) {
|
|
18769
18968
|
if (t < 0 || t > 24)
|
|
@@ -18786,7 +18985,7 @@ let Pt = (Hg = class extends jt {
|
|
|
18786
18985
|
/**
|
|
18787
18986
|
* Accepts requests from waitlisted participants if user
|
|
18788
18987
|
* has appropriate permissions.
|
|
18789
|
-
* @param id peerId or userId of the waitlisted participant.
|
|
18988
|
+
* @param {string} id peerId or userId of the waitlisted participant.
|
|
18790
18989
|
*/
|
|
18791
18990
|
acceptWaitingRoomRequest(t) {
|
|
18792
18991
|
var r, i;
|
|
@@ -18802,6 +19001,7 @@ let Pt = (Hg = class extends jt {
|
|
|
18802
19001
|
* We need a new event for socket service events
|
|
18803
19002
|
* since if we send them all together, sequence of events
|
|
18804
19003
|
* can be unreliable
|
|
19004
|
+
* @param {string[]} userIds
|
|
18805
19005
|
*/
|
|
18806
19006
|
acceptAllWaitingRoomRequest(t) {
|
|
18807
19007
|
return u(this, null, function* () {
|
|
@@ -18815,7 +19015,7 @@ let Pt = (Hg = class extends jt {
|
|
|
18815
19015
|
/**
|
|
18816
19016
|
* Rejects requests from waitlisted participants if user
|
|
18817
19017
|
* has appropriate permissions.
|
|
18818
|
-
* @param id participantId of the waitlisted participant.
|
|
19018
|
+
* @param {string} id participantId of the waitlisted participant.
|
|
18819
19019
|
*/
|
|
18820
19020
|
rejectWaitingRoomRequest(t) {
|
|
18821
19021
|
return u(this, null, function* () {
|
|
@@ -18863,6 +19063,10 @@ let Pt = (Hg = class extends jt {
|
|
|
18863
19063
|
});
|
|
18864
19064
|
});
|
|
18865
19065
|
}
|
|
19066
|
+
/**
|
|
19067
|
+
* @param {string[]} peerIds
|
|
19068
|
+
* @param {Array.<('audio'|'video'|'screenshareAudio'|'screenshareVideo')>} [kinds]
|
|
19069
|
+
*/
|
|
18866
19070
|
subscribe(r) {
|
|
18867
19071
|
return u(this, arguments, function* (t, e = ["audio", "video", "screenshareAudio", "screenshareVideo"]) {
|
|
18868
19072
|
if (this.viewMode !== "MANUAL")
|
|
@@ -18881,6 +19085,10 @@ let Pt = (Hg = class extends jt {
|
|
|
18881
19085
|
}), n(this, Ee).getValue("peerSessionStore").emit(k.UPDATE_ACTIVE, { viewMode: this.viewMode, page: this.currentPage });
|
|
18882
19086
|
});
|
|
18883
19087
|
}
|
|
19088
|
+
/**
|
|
19089
|
+
* @param {string[]} peerIds
|
|
19090
|
+
* @param {Array.<('audio'|'video'|'screenshareAudio'|'screenshareVideo')>} [kinds]
|
|
19091
|
+
*/
|
|
18884
19092
|
unsubscribe(r) {
|
|
18885
19093
|
return u(this, arguments, function* (t, e = ["audio", "video", "screenshareAudio", "screenshareVideo"]) {
|
|
18886
19094
|
if (this.viewMode !== "MANUAL")
|
|
@@ -19023,6 +19231,10 @@ let Pt = (Hg = class extends jt {
|
|
|
19023
19231
|
return (yield n(this, wt).getRoomPeers(t, e, r)).peers.map(_r.formatSocketPeerMessage);
|
|
19024
19232
|
});
|
|
19025
19233
|
}
|
|
19234
|
+
/**
|
|
19235
|
+
* @param {string[]} participantIds
|
|
19236
|
+
* @param {PresetUpdates} permissions
|
|
19237
|
+
*/
|
|
19026
19238
|
updatePermissions(t, e) {
|
|
19027
19239
|
return u(this, null, function* () {
|
|
19028
19240
|
const r = this.joined.toArray().filter((a) => t.includes(a.id)).map((a) => a.userId), i = [...new Set(r)];
|
|
@@ -20522,6 +20734,10 @@ q = new WeakMap(), la = new WeakMap(), ua = new WeakMap(), Jd = new WeakMap(), f
|
|
|
20522
20734
|
};
|
|
20523
20735
|
var $t;
|
|
20524
20736
|
class tv extends jt {
|
|
20737
|
+
/**
|
|
20738
|
+
* @param {Context} context
|
|
20739
|
+
* @param {Logger} logger
|
|
20740
|
+
*/
|
|
20525
20741
|
constructor(e, r) {
|
|
20526
20742
|
super(r);
|
|
20527
20743
|
h(this, "localMediaHandler");
|
|
@@ -20584,6 +20800,14 @@ class tv extends jt {
|
|
|
20584
20800
|
var e;
|
|
20585
20801
|
return (e = n(this, $t)) == null ? void 0 : e.getValue("peerId");
|
|
20586
20802
|
}
|
|
20803
|
+
/**
|
|
20804
|
+
* @param {Object} options
|
|
20805
|
+
* @param {boolean} [options.video]
|
|
20806
|
+
* @param {boolean} [options.audio]
|
|
20807
|
+
* @param {MediaConstraints} [options.constraints]
|
|
20808
|
+
* @param {boolean} [skipAwaits=false]
|
|
20809
|
+
* @param {Context} [context=null]
|
|
20810
|
+
*/
|
|
20587
20811
|
init() {
|
|
20588
20812
|
return u(this, arguments, function* (e = {}, r = !1, i = null) {
|
|
20589
20813
|
var a, o, c, d, l, p, g;
|
|
@@ -20683,6 +20907,7 @@ class tv extends jt {
|
|
|
20683
20907
|
* If there are more than 1 audio middlewares,
|
|
20684
20908
|
* they will be executed in the sequence they were added in.
|
|
20685
20909
|
* If you want the sequence to be altered, please remove all previous middlewares and re-add.
|
|
20910
|
+
* @param {AudioMiddleware} audioMiddleware
|
|
20686
20911
|
*/
|
|
20687
20912
|
addAudioMiddleware(e) {
|
|
20688
20913
|
return u(this, null, function* () {
|
|
@@ -20691,6 +20916,7 @@ class tv extends jt {
|
|
|
20691
20916
|
}
|
|
20692
20917
|
/**
|
|
20693
20918
|
* Removes the audio middleware, if it is there.
|
|
20919
|
+
* @param {AudioMiddleware} audioMiddleware
|
|
20694
20920
|
*/
|
|
20695
20921
|
removeAudioMiddleware(e) {
|
|
20696
20922
|
return u(this, null, function* () {
|
|
@@ -20722,6 +20948,7 @@ class tv extends jt {
|
|
|
20722
20948
|
* If there are more than 1 video middlewares,
|
|
20723
20949
|
* they will be executed in the sequence they were added in.
|
|
20724
20950
|
* If you want the sequence to be altered, please remove all previous middlewares and re-add.
|
|
20951
|
+
* @param {VideoMiddleware} videoMiddleware
|
|
20725
20952
|
*/
|
|
20726
20953
|
addVideoMiddleware(e) {
|
|
20727
20954
|
return u(this, null, function* () {
|
|
@@ -20730,8 +20957,8 @@ class tv extends jt {
|
|
|
20730
20957
|
}
|
|
20731
20958
|
/**
|
|
20732
20959
|
* Sets global config to be used by video middlewares.
|
|
20733
|
-
* @param config config
|
|
20734
|
-
* @param config.disablePerFrameCanvasRendering If set to true,
|
|
20960
|
+
* @param {VideoMiddlewareGlobalConfig} config config
|
|
20961
|
+
* @param {boolean} config.disablePerFrameCanvasRendering If set to true,
|
|
20735
20962
|
* Instead of calling Middleware for every frame,
|
|
20736
20963
|
* Middleware will only be called once that too with empty canvas,
|
|
20737
20964
|
* it is the responsibility of the middleware author to keep updating this canvas.
|
|
@@ -20746,6 +20973,7 @@ class tv extends jt {
|
|
|
20746
20973
|
}
|
|
20747
20974
|
/**
|
|
20748
20975
|
* Removes the video middleware, if it is there.
|
|
20976
|
+
* @param {VideoMiddleware} videoMiddleware
|
|
20749
20977
|
*/
|
|
20750
20978
|
removeVideoMiddleware(e) {
|
|
20751
20979
|
return u(this, null, function* () {
|
|
@@ -20864,8 +21092,8 @@ class tv extends jt {
|
|
|
20864
21092
|
}
|
|
20865
21093
|
/**
|
|
20866
21094
|
* Returns the local participant's device, indexed by ID and kind.
|
|
20867
|
-
* @param deviceId The ID of the device.
|
|
20868
|
-
* @param kind The kind of the device: audio, video, or speaker.
|
|
21095
|
+
* @param {string} deviceId The ID of the device.
|
|
21096
|
+
* @param {('audio'|'video'|'speaker')} kind The kind of the device: audio, video, or speaker.
|
|
20869
21097
|
*/
|
|
20870
21098
|
getDeviceById(e, r) {
|
|
20871
21099
|
let i;
|
|
@@ -20873,7 +21101,8 @@ class tv extends jt {
|
|
|
20873
21101
|
}
|
|
20874
21102
|
/**
|
|
20875
21103
|
* Change the current media device that is being used by the local participant.
|
|
20876
|
-
* @param device The device that is to be used.
|
|
21104
|
+
* @param {MediaDeviceInfo} device The device that is to be used.
|
|
21105
|
+
* A device of the same `kind` will be replaced.
|
|
20877
21106
|
* the primary stream.
|
|
20878
21107
|
*/
|
|
20879
21108
|
setDevice(e) {
|
|
@@ -21113,7 +21342,7 @@ let Ye = (jg = class extends tv {
|
|
|
21113
21342
|
* The name of the user can be set by calling this method.
|
|
21114
21343
|
* This will get reflected to other participants ONLY if
|
|
21115
21344
|
* this method is called before the room is joined.
|
|
21116
|
-
* @param name Name of the user.
|
|
21345
|
+
* @param {string} name Name of the user.
|
|
21117
21346
|
*/
|
|
21118
21347
|
setName(t) {
|
|
21119
21348
|
if (!t)
|
|
@@ -27665,6 +27894,9 @@ var FO = Object.defineProperty, BO = Object.getOwnPropertyDescriptor, HO = (s, t
|
|
|
27665
27894
|
return r && i && FO(t, e, i), i;
|
|
27666
27895
|
}, Ps;
|
|
27667
27896
|
class Xv extends jt {
|
|
27897
|
+
/**
|
|
27898
|
+
* @param {Context} context
|
|
27899
|
+
*/
|
|
27668
27900
|
constructor(e) {
|
|
27669
27901
|
const r = e.getValue("logger");
|
|
27670
27902
|
super(r);
|
|
@@ -27693,6 +27925,7 @@ class Xv extends jt {
|
|
|
27693
27925
|
}
|
|
27694
27926
|
/**
|
|
27695
27927
|
* create connected meetings
|
|
27928
|
+
* @param {Array.<{ title: string }>} request
|
|
27696
27929
|
*/
|
|
27697
27930
|
createMeetings(e) {
|
|
27698
27931
|
return u(this, null, function* () {
|
|
@@ -27708,6 +27941,7 @@ class Xv extends jt {
|
|
|
27708
27941
|
}
|
|
27709
27942
|
/**
|
|
27710
27943
|
* update meeting title
|
|
27944
|
+
* @param {Array.<{ id: string, title: string }>} request
|
|
27711
27945
|
*/
|
|
27712
27946
|
updateMeetings(e) {
|
|
27713
27947
|
return u(this, null, function* () {
|
|
@@ -27718,6 +27952,7 @@ class Xv extends jt {
|
|
|
27718
27952
|
}
|
|
27719
27953
|
/**
|
|
27720
27954
|
* delete connected meetings
|
|
27955
|
+
* @param {string[]} meetingIds
|
|
27721
27956
|
*/
|
|
27722
27957
|
deleteMeetings(e) {
|
|
27723
27958
|
return u(this, null, function* () {
|
|
@@ -27758,6 +27993,9 @@ class Xv extends jt {
|
|
|
27758
27993
|
}
|
|
27759
27994
|
/**
|
|
27760
27995
|
* Trigger event to move participants with custom preset
|
|
27996
|
+
* @param {string} sourceMeetingId - id of source meeting
|
|
27997
|
+
* @param {string} destinationMeetingId - id of destination meeting
|
|
27998
|
+
* @param {Array.<{ id: string, presetId: string }>} participants
|
|
27761
27999
|
*/
|
|
27762
28000
|
moveParticipantsWithCustomPreset(e, r, i) {
|
|
27763
28001
|
return u(this, null, function* () {
|
|
@@ -28368,6 +28606,10 @@ var QO = Object.defineProperty, XO = Object.getOwnPropertyDescriptor, Xl = (s, t
|
|
|
28368
28606
|
return r && i && QO(t, e, i), i;
|
|
28369
28607
|
}, Ge, sn, Kg;
|
|
28370
28608
|
let ei = (Kg = class {
|
|
28609
|
+
/**
|
|
28610
|
+
* @param {IContext} context
|
|
28611
|
+
* @param {Controller} controller
|
|
28612
|
+
*/
|
|
28371
28613
|
constructor(t, e) {
|
|
28372
28614
|
m(this, Ge, void 0);
|
|
28373
28615
|
m(this, sn, void 0);
|
|
@@ -28376,6 +28618,14 @@ let ei = (Kg = class {
|
|
|
28376
28618
|
get peerId() {
|
|
28377
28619
|
return n(this, sn).getValue("peerId");
|
|
28378
28620
|
}
|
|
28621
|
+
/**
|
|
28622
|
+
* @param {Object} [options]
|
|
28623
|
+
* @param {boolean} [options.video]
|
|
28624
|
+
* @param {boolean} [options.audio]
|
|
28625
|
+
* @param {MediaConstraints} [options.constraints]
|
|
28626
|
+
* @param {boolean} [skipAwaits=false]
|
|
28627
|
+
* @param {CachedUserDetails} [cachedUserDetails]
|
|
28628
|
+
*/
|
|
28379
28629
|
static initMedia() {
|
|
28380
28630
|
return u(this, arguments, function* (t = {}, e = !1, r = void 0) {
|
|
28381
28631
|
var d;
|
|
@@ -28414,6 +28664,12 @@ let ei = (Kg = class {
|
|
|
28414
28664
|
return d.setValue("meeting", v), v;
|
|
28415
28665
|
});
|
|
28416
28666
|
}
|
|
28667
|
+
/**
|
|
28668
|
+
* @param {string} peerId
|
|
28669
|
+
* @param {ClientOptions} options
|
|
28670
|
+
* @param {string} meetingId
|
|
28671
|
+
* @param {any} args
|
|
28672
|
+
*/
|
|
28417
28673
|
static setupContext(t, e, r, i) {
|
|
28418
28674
|
var d, l;
|
|
28419
28675
|
const a = mr.createContext(t, e), o = D(D({}, dw), e == null ? void 0 : e.modules), c = e.defaults || {
|
|
@@ -28421,7 +28677,7 @@ let ei = (Kg = class {
|
|
|
28421
28677
|
video: !0
|
|
28422
28678
|
};
|
|
28423
28679
|
return a.setValue("options", e), a.setValue("peerId", t), a.setValue("modules", o), a.setValue("sdkName", "web-core"), a.setValue("meetingId", r), a.setValue("apiBase", i.apiBase), a.setValue("baseURI", i.baseURI), a.setValue("userId", i.participantId), a.setValue("organizationId", i.orgId), a.setValue("authToken", e.authToken), a.setValue("overrides", (d = e.overrides) != null ? d : {}), a.setValue("env", lw({ baseURI: i.baseURI })), a.setValue("defaults", c), a.setValue("onError", e.onError || (() => {
|
|
28424
|
-
})), a.setValue("cachedUserDetails", Rs(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.4-staging.
|
|
28680
|
+
})), a.setValue("cachedUserDetails", Rs(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.4-staging.3"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new YO()), a;
|
|
28425
28681
|
}
|
|
28426
28682
|
join() {
|
|
28427
28683
|
return u(this, null, function* () {
|
|
@@ -28429,6 +28685,9 @@ let ei = (Kg = class {
|
|
|
28429
28685
|
return t.self.roomJoined ? null : t.joinRoom();
|
|
28430
28686
|
});
|
|
28431
28687
|
}
|
|
28688
|
+
/**
|
|
28689
|
+
* @param {LeaveRoomState} [state]
|
|
28690
|
+
*/
|
|
28432
28691
|
leave(t) {
|
|
28433
28692
|
return u(this, null, function* () {
|
|
28434
28693
|
bg.cleanup(), n(this, sn).getValue("peerSessionStore").reset();
|
|
@@ -28541,7 +28800,10 @@ let ei = (Kg = class {
|
|
|
28541
28800
|
return this.join();
|
|
28542
28801
|
});
|
|
28543
28802
|
}
|
|
28544
|
-
/**
|
|
28803
|
+
/**
|
|
28804
|
+
* @deprecated Use `leave()` instead
|
|
28805
|
+
* @param {LeaveRoomState} [state]
|
|
28806
|
+
*/
|
|
28545
28807
|
leaveRoom(t) {
|
|
28546
28808
|
return u(this, null, function* () {
|
|
28547
28809
|
return this.leave(t);
|