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