@opentok/client 2.31.0-alpha.58 → 2.31.0-alpha.59

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 2ff03b19e
2
+ * @license OpenTok.js 2.31.0 866b3eb12
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: Fri, 03 Oct 2025 09:53:32 GMT
8
+ * Date: Fri, 03 Oct 2025 11:07:22 GMT
9
9
  */
10
10
 
11
11
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -8605,7 +8605,7 @@ function staticConfigFactory(_temp) {
8605
8605
  _ref$axios = _ref.axios,
8606
8606
  axios = _ref$axios === void 0 ? _axios.default : _ref$axios,
8607
8607
  _ref$properties = _ref.properties,
8608
- properties = _ref$properties === void 0 ? {"version":"v2.31.0","buildHash":"2ff03b19e","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;
8608
+ properties = _ref$properties === void 0 ? {"version":"v2.31.0","buildHash":"866b3eb12","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;
8609
8609
  /** @type builtInConfig */
8610
8610
  const builtInConfig = (0, _cloneDeep.default)(properties);
8611
8611
  /**
@@ -17938,7 +17938,12 @@ function PublisherFactory(_ref) {
17938
17938
  trackListeners.push(listenWithOff(track, 'mute', () => {
17939
17939
  refreshAudioVideoUI();
17940
17940
  }));
17941
- trackListeners.push(listenWithOff(track, 'unmute', () => {
17941
+ trackListeners.push(listenWithOff(track, 'unmute', evt => {
17942
+ // There is a bug in WebView on iOS, where the video track is not recovered
17943
+ if (_env.default.isIosWebView && evt.target.kind === 'video') {
17944
+ var _widgetView;
17945
+ (_widgetView = widgetView) == null ? void 0 : _widgetView.rebindSrcObject();
17946
+ }
17942
17947
  refreshAudioVideoUI();
17943
17948
  }));
17944
17949
  }
@@ -18130,10 +18135,10 @@ function PublisherFactory(_ref) {
18130
18135
  let width = ((_properties$videoDime = properties.videoDimensions) == null ? void 0 : _properties$videoDime.width) || 640;
18131
18136
  let height = ((_properties$videoDime2 = properties.videoDimensions) == null ? void 0 : _properties$videoDime2.height) || 480;
18132
18137
  if (properties.publishVideo) {
18133
- var _widgetView;
18138
+ var _widgetView2;
18134
18139
  // When video is on, we get the real video dimensions. If undefined, we will take the
18135
18140
  // previous defined width|height.
18136
- const video = (_widgetView = widgetView) == null ? void 0 : _widgetView.video();
18141
+ const video = (_widgetView2 = widgetView) == null ? void 0 : _widgetView2.video();
18137
18142
  width = (video == null ? void 0 : video.videoWidth()) || width;
18138
18143
  height = (video == null ? void 0 : video.videoHeight()) || height;
18139
18144
  }