@opentok/client 2.30.3-alpha.11 → 2.30.3-alpha.13

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.30.3 86f91ca
2
+ * @license OpenTok.js 2.30.3 8bcab47
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: Wed, 02 Jul 2025 18:28:38 GMT
8
+ * Date: Mon, 07 Jul 2025 14:50:30 GMT
9
9
  */
10
10
 
11
11
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -8679,7 +8679,7 @@ const logging = (0, _log.default)('StaticConfig');
8679
8679
  */
8680
8680
 
8681
8681
  /** @type builtInConfig */
8682
- const builtInConfig = (0, _cloneDeep.default)({"version":"v2.30.3","buildHash":"86f91ca","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"});
8682
+ const builtInConfig = (0, _cloneDeep.default)({"version":"v2.30.3","buildHash":"8bcab47","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"});
8683
8683
  const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
8684
8684
  const liveConfigMap = {
8685
8685
  apiUrl: 'apiURL',
@@ -25722,10 +25722,19 @@ function NativeVideoElementWrapperFactory(deps) {
25722
25722
  return this.videoWidth() / this.videoHeight();
25723
25723
  };
25724
25724
  _proto.prepareForStreamTransition = function prepareForStreamTransition() {
25725
- const streamImage = this._getStreamImage();
25726
- this._domElement.poster = streamImage;
25725
+ const streamImage = this._getStreamImage({
25726
+ silenceWarning: true
25727
+ });
25728
+ if (streamImage) {
25729
+ this._domElement.poster = streamImage;
25730
+ }
25727
25731
  };
25728
- _proto._getStreamImage = function _getStreamImage() {
25732
+ _proto._getStreamImage = function _getStreamImage(options) {
25733
+ if (options === void 0) {
25734
+ options = {};
25735
+ }
25736
+ const _options = options,
25737
+ silenceWarning = _options.silenceWarning;
25729
25738
  const canvas = OTHelpers.createElement('canvas', {
25730
25739
  width: this.videoWidth(),
25731
25740
  height: this.videoHeight(),
@@ -25745,13 +25754,15 @@ function NativeVideoElementWrapperFactory(deps) {
25745
25754
  if (imgData === null || imgData === 'data:,') {
25746
25755
  // 'data:,' is sometimes returned by canvas.toDataURL when one cannot be
25747
25756
  // generated.
25748
- this.logging.warn('Cannot get image data yet');
25757
+ const logging = silenceWarning ? this.logging.debug : this.logging.warn;
25758
+ logging('Cannot get image data yet');
25749
25759
  return null;
25750
25760
  }
25751
25761
  return imgData;
25752
25762
  };
25753
25763
  _proto.imgData = function imgData() {
25754
- return this._getStreamImage().replace('data:image/png;base64,', '').trim();
25764
+ var _this$_getStreamImage, _this$_getStreamImage2;
25765
+ return (_this$_getStreamImage = (_this$_getStreamImage2 = this._getStreamImage()) == null ? void 0 : _this$_getStreamImage2.replace('data:image/png;base64,', '').trim()) != null ? _this$_getStreamImage : null;
25755
25766
  }
25756
25767
  // Append the Video DOM element to a parent node
25757
25768
  ;