@opentok/client 2.31.0-alpha.16 → 2.31.0-alpha.18

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.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license OpenTok.js 2.31.0 fdce7b294
2
+ * @license OpenTok.js 2.31.0 5c539da4c
3
3
  *
4
4
  * Copyright (c) 2010-2025 TokBox, Inc.
5
5
  * Subject to the applicable Software Development Kit (SDK) License Agreement:
6
6
  * https://www.vonage.com/legal/communications-apis/terms-of-use/
7
7
  *
8
- * Date: Mon, 28 Jul 2025 16:40:47 GMT
8
+ * Date: Tue, 29 Jul 2025 09:25:53 GMT
9
9
  */
10
10
 
11
11
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -8682,7 +8682,7 @@ const logging = (0, _log.default)('StaticConfig');
8682
8682
  */
8683
8683
 
8684
8684
  /** @type builtInConfig */
8685
- const builtInConfig = (0, _cloneDeep.default)({"version":"v2.31.0","buildHash":"fdce7b294","minimumVersion":{"firefox":52,"chrome":49},"debug":false,"websiteURL":"http://www.tokbox.com","configURL":"https://config.opentok.com","ipWhitelistConfigURL":"","cdnURL":"","loggingURL":"https://hlg.tokbox.com/prod","apiURL":"https://anvil.opentok.com"});
8685
+ const builtInConfig = (0, _cloneDeep.default)({"version":"v2.31.0","buildHash":"5c539da4c","minimumVersion":{"firefox":52,"chrome":49},"debug":false,"websiteURL":"http://www.tokbox.com","configURL":"https://config.opentok.com","ipWhitelistConfigURL":"","cdnURL":"","loggingURL":"https://hlg.tokbox.com/prod","apiURL":"https://anvil.opentok.com"});
8686
8686
  const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
8687
8687
  const liveConfigMap = {
8688
8688
  apiUrl: 'apiURL',
@@ -22258,7 +22258,7 @@ function PublisherFactory(_ref) {
22258
22258
  * </p>
22259
22259
  *
22260
22260
  * <p>
22261
- * <em>Note:</em> Video filters are only supported in recent versions of Chrome, Electron, Opera, Edge and Samsung Internet.
22261
+ * <em>Note:</em> Video filters are only supported in recent versions of Chrome, Electron, Opera, Edge, and Samsung Internet.
22262
22262
  * They are not supported in other (non-Chromium-based) browsers or on iOS. You can check if the client
22263
22263
  * supports this feature by calling the
22264
22264
  * <a href="OT.html#hasMediaProcessorSupport">OT.hasMediaProcessorSupport()</a> method.
@@ -22528,7 +22528,7 @@ function PublisherFactory(_ref) {
22528
22528
  * </p>
22529
22529
  *
22530
22530
  * <p>
22531
- * <em>Note:</em> Audio filters are only supported in recent versions of Chrome, Electron, Opera, Edge and Samsung Internet.
22531
+ * <em>Note:</em> Audio filters are only supported in recent versions of Chrome, Electron, Opera, Edge, and Samsung Internet.
22532
22532
  * They are not supported in other (non-Chromium-based) browsers or on iOS. You can check if the client
22533
22533
  * supports this feature by calling the
22534
22534
  * <a href="OT.html#hasMediaProcessorSupport">OT.hasMediaProcessorSupport()</a> method.
@@ -22809,7 +22809,7 @@ function PublisherFactory(_ref) {
22809
22809
  * </p>
22810
22810
  *
22811
22811
  * <p>
22812
- * <em>Note:</em> MediaProcessors are only supported in recent versions of Chrome, Electron, Opera, Edge and Samsung Internet.
22812
+ * <em>Note:</em> MediaProcessors are only supported in recent versions of Chrome, Electron, Opera, Edge, and Samsung Internet.
22813
22813
  * They are not supported in other (non-Chromium-based) browsers or on iOS. You can check if the client
22814
22814
  * supports this feature by calling the
22815
22815
  * <a href="OT.html#hasMediaProcessorSupport">OT.hasMediaProcessorSupport()</a> method.
@@ -22968,7 +22968,7 @@ function PublisherFactory(_ref) {
22968
22968
  * connector, the previously set audio connector is removed.
22969
22969
  *
22970
22970
  * <p>
22971
- * <em>Note:</em> MediaProcessors are only supported in recent versions of Chrome, Electron, Opera, Edge and Samsung Internet.
22971
+ * <em>Note:</em> MediaProcessors are only supported in recent versions of Chrome, Electron, Opera, Edge, and Samsung Internet.
22972
22972
  * They are not supported in other (non-Chromium-based) browsers or on iOS. You can check if the client
22973
22973
  * supports this feature by calling the
22974
22974
  * <a href="OT.html#hasMediaProcessorSupport">OT.hasMediaProcessorSupport()</a> method.
@@ -23277,28 +23277,24 @@ function PublisherFactory(_ref) {
23277
23277
  }();
23278
23278
 
23279
23279
  /**
23280
- * Returns the publisher's properties.videoMaxBitrate value.
23281
- *
23282
- * Get the customer's custom maximum bitrate value used to set the
23283
- * maxBitrate value for each of the encoding RTCP sender elements.
23280
+ * Returns the custom maximum bitrate set for the Publisher.
23284
23281
  *
23285
23282
  * @return {Integer} One of the following values: 0, or any integer value
23286
- * within 5000 and 10000000.
23283
+ * within 5,000 and 10,000,000.
23287
23284
  * @see <a href="#setMaxVideoBitrate">Publisher.setMaxVideoBitrate()</a>
23285
+ * @see <a href="https://tokbox.com/developer/guides/publisher-max-bitrate/js">Publisher Max Bitrate</a>
23288
23286
  * @method #getMaxVideoBitrate
23289
23287
  * @memberOf Publisher
23290
23288
  */
23291
23289
  this.getMaxVideoBitrate = () => properties.videoMaxBitrate;
23292
23290
 
23293
23291
  /**
23294
- * Returns the publisher's properties.videoBitratePreset value.
23295
- *
23296
- * Get the customer's bitrate preset value used to set the maxBitrate
23297
- * value for each of the encoding RTCP sender elements.
23292
+ * Returns the bitrate preset for the Publisher.
23298
23293
  *
23299
23294
  * @return {String} One of the following values: 'custom', 'extra_bw_saver',
23300
23295
  * 'bw_saver' or 'default'
23301
23296
  * @see <a href="#setVideoBitratePreset">Publisher.setVideoBitratePreset()</a>
23297
+ * @see <a href="https://tokbox.com/developer/guides/publisher-max-bitrate/js">Publisher Max Bitrate</a>
23302
23298
  * @method #getVideoBitratePreset
23303
23299
  * @memberOf Publisher
23304
23300
  */
@@ -23384,26 +23380,21 @@ function PublisherFactory(_ref) {
23384
23380
  }();
23385
23381
 
23386
23382
  /**
23387
- * Sets the publisher's maxBitrate value/s that will be distributed to each of
23388
- * the encoding RTCP sender elements when the customer has set a valid integer value,
23389
- * i.e., a value that can be 0 or a value that is between 5000 and 10000000.
23390
- * <p>
23391
- * Use this method to change the video maximum bitrate dynamically.
23392
- * Set the initial video maxBitrate hit by setting an integer value
23393
- * <code>bitrateBps</code> value. If the values have been updated property, the
23394
- * publisher's properties.videoMaxBitrate and properties.videoBitratePreset
23395
- * will be updated accordingly, i.e., properties.videoMaxBitrate will be equal to
23396
- * bitrateBps and properties.videoBitratePreset will be equal to 'custom' only if
23397
- * bitrateBps is different to 0. Otherwise, properties.videoBitratePreset will be
23398
- * equal to VideoBitratePreset.default.
23399
- * <a href="OT.html#initPublisher">OT.initPublisher()</a> method.
23383
+ * Sets a custom maximum video bitrate for the publisher.
23384
+ * Set this to a value between 5,000 and 10,000,000.
23385
+ * Setting the value to 0 removes any previously set custom
23386
+ * bitrate, reverting to the default behavior.
23400
23387
  * <p>
23401
- * At least, Chrome 129+, Safari 18.3+, Firefox 136+ support video maxBitrate.
23388
+ * Setting the maximum bitrate is supported in the
23389
+ * most recent versions of all supported browsers.
23390
+ *
23391
+ * @param {Integer} bitrateBps The video bitrate value -- between
23392
+ * 5,000 and 10,000,000. Set to 0 to remove a custom bitrate
23393
+ * setting and revert to the default behavior.
23402
23394
  *
23403
- * @param {Integer} bitrateBps
23404
23395
  * @see <a href="#getMaxVideoBitrate">Publisher.getMaxVideoBitrate()</a>
23405
- * @see <a href="OT.html#initPublisher">OT.initPublisher()</a>
23406
- * @see properties.videoMaxBitrate
23396
+ * @see <a href="#setVideoBitratePreset">Publisher.setVideoBitratePreset()</a>
23397
+ * @see <a href="https://tokbox.com/developer/guides/publisher-max-bitrate/js">Publisher Max Bitrate</a>
23407
23398
  * @method #setMaxVideoBitrate
23408
23399
  * @memberOf Publisher
23409
23400
  */
@@ -23450,24 +23441,19 @@ function PublisherFactory(_ref) {
23450
23441
  }();
23451
23442
 
23452
23443
  /**
23453
- * Sets the publisher's maxBitrate value/s that will be distributed to each of
23454
- * the encoding RTCP sender elements when the customer has set a valid bitrate
23455
- * preset value, i.e., 'default', 'bw_saver', or 'extra_bw_saver'.
23456
- * <p>
23457
- * Use this method to change the video maximum bitrate dynamically.
23458
- * Set the initial video maxBitrate hit by setting a valid bitrate preset value
23459
- * <code>preset</code> value. If the values have been updated property, the
23460
- * publisher's properties.videoMaxBitrate and properties.videoBitratePreset
23461
- * will be updated accordingly, i.e., properties.videoMaxBitrate will be equal to
23462
- * 0 and properties.videoBitratePreset will be equal to the introduced preset.
23463
- * <a href="OT.html#initPublisher">OT.initPublisher()</a> method.
23444
+ * Sets the maximum video bitrate for the publisher to one of the
23445
+ * following presets: 'default', 'bw_saver', or 'extra_bw_saver'.
23446
+ * For details, see the
23447
+ * <a href="https://tokbox.com/developer/guides/publisher-max-bitrate/js">Publisher Max Bitrate</a>
23448
+ * developer guide.
23464
23449
  * <p>
23465
- * At least, Chrome 129+, Safari 18.3+, Firefox 136+ support video maxBitrate.
23450
+ * Setting the maximum bitrate is supported in the
23451
+ * most recent versions of all supported browsers.
23452
+ *
23453
+ * @param {String} preset The preset to use: either 'default', 'bw_saver', or 'extra_bw_saver'.
23466
23454
  *
23467
- * @param {String} preset
23468
23455
  * @see <a href="#getVideoBitratePreset">Publisher.getVideoBitratePreset()</a>
23469
- * @see <a href="OT.html#initPublisher">OT.initPublisher()</a>
23470
- * @see properties.videoBitratePreset
23456
+ * @see <a href="#setMaxVideoBitrate">Publisher.setMaxVideoBitrate()</a>
23471
23457
  * @method #setVideoBitratePreset
23472
23458
  * @memberOf Publisher
23473
23459
  */
@@ -24344,8 +24330,9 @@ const validPropertyNames = ['name', 'archiving'];
24344
24330
  * <code>OT.initPublisher()</code> method; otherwise, this property is undefined.
24345
24331
  *
24346
24332
  * @property {Boolean} hasCaptions Whether the stream has captions. This property can change if the
24347
- * publisher turns on or off captions (by calling
24348
- * <a href="Publisher.html#publishCaptions">Publisher.publishCaptions()</a>). When this occurs, the
24333
+ * publisher turns captions on or off (by calling the
24334
+ * <a href="Publisher.html#publishCaptions">Publisher.publishCaptions()</a>
24335
+ * method). When this occurs, the
24349
24336
  * {@link Session} object dispatches a <code>streamPropertyChanged</code> event (see
24350
24337
  * {@link StreamPropertyChangedEvent}).
24351
24338
  *
@@ -40554,7 +40541,7 @@ function SubscriberFactory(_ref2) {
40554
40541
  * subscribing to captions (if it is currently being subscribed to) when the <code>value</code>
40555
40542
  * is <code>false</code>.
40556
40543
  * <p>
40557
- * The initial value can be set by specifying the <code>subscribeToCaptions</code>
40544
+ * The initial value can be set by setting the <code>subscribeToCaptions</code>
40558
40545
  * property of the <code>options</code> parameter of the <a href="Session.html#subscribe">Session.subscribe()</a>
40559
40546
  * method. The default value is the <code>hasCaptions</code> property of the stream’s publisher at the time of
40560
40547
  * subscriber initialization (see the
@@ -40605,8 +40592,9 @@ function SubscriberFactory(_ref2) {
40605
40592
  }();
40606
40593
 
40607
40594
  /**
40608
- * Whether the subscriber is receiving captions. This property can change if the subscriber turns on
40609
- * or off captioning (by calling <code>Subscriber.subscribeToCaptions()</code>). The default value is
40595
+ * Whether the subscriber is receiving captions. This property can change if the subscriber turns captioning on
40596
+ * or off (by calling the <code>Subscriber.subscribeToCaptions()</code>
40597
+ * method). The default value is
40610
40598
  * the <code>hasCaptions</code> property of the stream’s publisher at the time of subscriber initialization (see the
40611
40599
  * <a href="https://tokbox.com/developer/sdks/js/reference/Stream.html#properties">Stream.hasCaptions property</a>).
40612
40600
  * <p>
@@ -40710,7 +40698,7 @@ function SubscriberFactory(_ref2) {
40710
40698
  * connector, the previously set video connector is removed.
40711
40699
  *
40712
40700
  * <p>
40713
- * <em>Note:</em> MediaProcessors are only supported in recent versions of Chrome, Electron, Opera, Edge and Samsung Internet.
40701
+ * <em>Note:</em> MediaProcessors are only supported in recent versions of Chrome, Electron, Opera, Edge, and Samsung Internet.
40714
40702
  * They are not supported in other (non-Chromium-based) browsers or on iOS. You can check if the client
40715
40703
  * supports this feature by calling the
40716
40704
  * <a href="OT.html#hasMediaProcessorSupport">OT.hasMediaProcessorSupport()</a> method.
@@ -40900,7 +40888,7 @@ function SubscriberFactory(_ref2) {
40900
40888
  * connector, the previously set audio connector is removed.
40901
40889
  *
40902
40890
  * <p>
40903
- * <em>Note:</em> MediaProcessors are only supported in recent versions of Chrome, Electron, Opera, Edge and Samsung Internet.
40891
+ * <em>Note:</em> MediaProcessors are only supported in recent versions of Chrome, Electron, Opera, Edge, and Samsung Internet.
40904
40892
  * They are not supported in other (non-Chromium-based) browsers or on iOS. You can check if the client
40905
40893
  * supports this feature by calling the
40906
40894
  * <a href="OT.html#hasMediaProcessorSupport">OT.hasMediaProcessorSupport()</a> method.
@@ -42840,7 +42828,7 @@ function initPublisherFactory(deps) {
42840
42828
  * </p>
42841
42829
  * </li>
42842
42830
  * </ul>
42843
- * <em>Note:</em> Audio filters are only supported in recent versions of Chrome, Electron, Opera, Edge and Samsung Internet.
42831
+ * <em>Note:</em> Audio filters are only supported in recent versions of Chrome, Electron, Opera, Edge, and Samsung Internet.
42844
42832
  * They are not supported in other (non-Chromium-based) browsers or on iOS. You can check if the client
42845
42833
  * supports this feature by calling the
42846
42834
  * <a href="OT.html#hasMediaProcessorSupport">OT.hasMediaProcessorSupport()</a> method.
@@ -43295,7 +43283,7 @@ function initPublisherFactory(deps) {
43295
43283
  * </p>
43296
43284
  * </li>
43297
43285
  * </ul>
43298
- * <em>Note:</em> Video filters are only supported in recent versions of Chrome, Electron, Opera, Edge and Samsung Internet.
43286
+ * <em>Note:</em> Video filters are only supported in recent versions of Chrome, Electron, Opera, Edge, and Samsung Internet.
43299
43287
  * They are not supported in other (non-Chromium-based) browsers or on iOS. You can check if the client
43300
43288
  * supports this feature by calling the
43301
43289
  * <a href="OT.html#hasMediaProcessorSupport">OT.hasMediaProcessorSupport()</a> method.
@@ -84797,9 +84785,6 @@ function initSessionFactory(deps) {
84797
84785
  * allowing the client to to remain connected during server rotation. The default value is <code>false</code>
84798
84786
  * (session migration is not enabled). For more information, see
84799
84787
  * <a href="https://tokbox.com/developer/guides/server-rotation/">Server Rotation and Session Migration</a>.
84800
- * <p>
84801
- * <i>This is a beta feature.</i>
84802
- * </p>
84803
84788
  * </li>
84804
84789
  * </ul>
84805
84790
  *