@opentok/client 2.32.0-alpha.4 → 2.32.0-alpha.5

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.32.0 ee5f34d07
2
+ * @license OpenTok.js 2.32.0 255a6c896
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: Tue, 14 Oct 2025 18:02:24 GMT
8
+ * Date: Wed, 15 Oct 2025 07:11:26 GMT
9
9
  */
10
10
 
11
11
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -8547,7 +8547,7 @@ function staticConfigFactory(_temp) {
8547
8547
  _ref$axios = _ref.axios,
8548
8548
  axios = _ref$axios === void 0 ? _axios.default : _ref$axios,
8549
8549
  _ref$properties = _ref.properties,
8550
- properties = _ref$properties === void 0 ? {"version":"v2.32.0","buildHash":"ee5f34d07","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","vonageApiURL":""} : _ref$properties;
8550
+ properties = _ref$properties === void 0 ? {"version":"v2.32.0","buildHash":"255a6c896","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","vonageApiURL":""} : _ref$properties;
8551
8551
  /** @type builtInConfig */
8552
8552
  const builtInConfig = (0, _cloneDeep.default)(properties);
8553
8553
  /**
@@ -15448,7 +15448,8 @@ function StylableComponent(self, initialStyles, showControls, logSetStyleWithPay
15448
15448
  * Publisher.getImgData()</a> method (for example, you could call
15449
15449
  * <code>myPublisher.setStyle("backgroundImageURI", myPublisher.getImgData())</code>).
15450
15450
  * If the URL or the image data is invalid, the property is ignored (the attempt to set
15451
- * the image fails silently).</li>
15451
+ * the image fails silently). The current background will be removed if no image is passed
15452
+ * and the initials will be shown if previously set.</li>
15452
15453
  *
15453
15454
  * <li><code>buttonDisplayMode</code> (String) &mdash; How to display the microphone
15454
15455
  * controls. Possible values are: <code>"auto"</code> (controls are displayed when the
@@ -15527,7 +15528,8 @@ function StylableComponent(self, initialStyles, showControls, logSetStyleWithPay
15527
15528
  * Subscriber.getImgData()</a> method (for example, you could call
15528
15529
  * <code>mySubscriber.setStyle("backgroundImageURI", mySubscriber.getImgData())</code>).
15529
15530
  * If the URL or the image data is invalid, the property is ignored (the attempt to set
15530
- * the image fails silently).</li>
15531
+ * the image fails silently). The current background will be removed if no image is passed
15532
+ * and the initials will be shown if previously set.</li>
15531
15533
  *
15532
15534
  * <li><code>buttonDisplayMode</code> (String) &mdash; How to display the speaker
15533
15535
  * controls. Possible values are: <code>"auto"</code> (controls are displayed when the
@@ -16694,6 +16696,16 @@ function WidgetViewFactory(_temp) {
16694
16696
  }
16695
16697
  };
16696
16698
  _proto.setBackgroundImageURI = function setBackgroundImageURI(bgImgURI) {
16699
+ if (!bgImgURI) {
16700
+ if (this._lastInitials) {
16701
+ this.setInitials(this._lastInitials);
16702
+ } else {
16703
+ OTHelpers.css(this._posterContainer, 'backgroundImage', null);
16704
+ OTHelpers.css(this._posterContainer, 'backgroundSize', null);
16705
+ OTHelpers.css(this._posterContainer, 'opacity', null);
16706
+ }
16707
+ return;
16708
+ }
16697
16709
  // If initials are set, this should override.
16698
16710
  OTHelpers.css(this._posterContainer, 'backgroundImage', `url(${bgImgURI})`);
16699
16711
  OTHelpers.css(this._posterContainer, 'backgroundSize', 'contain');
@@ -16705,6 +16717,7 @@ function WidgetViewFactory(_temp) {
16705
16717
  OTHelpers.css(this._posterContainer, 'backgroundImage', `url('data:image/svg+xml,${serializedSvg}')`);
16706
16718
  OTHelpers.css(this._posterContainer, 'backgroundSize', 'auto 55%');
16707
16719
  OTHelpers.css(this._posterContainer, 'opacity', '1.0');
16720
+ this._lastInitials = initials;
16708
16721
  };
16709
16722
  _proto.isAudioBlocked = function isAudioBlocked() {
16710
16723
  return Boolean(this._videoElementFacade && this._videoElementFacade.isAudioBlocked());