@opentok/client 2.36.0-alpha.22 → 2.36.0-alpha.23

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.36.0 4e3b02287
2
+ * @license OpenTok.js 2.36.0 af3c92cff
3
3
  *
4
4
  * Copyright (c) 2010-2026 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: Sat, 08 Aug 2026 15:01:54 GMT
8
+ * Date: Tue, 11 Aug 2026 14:47:11 GMT
9
9
  */
10
10
 
11
11
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -40050,7 +40050,7 @@ function staticConfigFactory(_temp) {
40050
40050
  _ref$axios = _ref.axios,
40051
40051
  axios = _ref$axios === void 0 ? _axios.default : _ref$axios,
40052
40052
  _ref$properties = _ref.properties,
40053
- properties = _ref$properties === void 0 ? {"version":"v2.36.0","buildHash":"4e3b02287","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;
40053
+ properties = _ref$properties === void 0 ? {"version":"v2.36.0","buildHash":"af3c92cff","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;
40054
40054
  /** @type builtInConfig */
40055
40055
  const builtInConfig = (0, _cloneDeep.default)(properties);
40056
40056
  /**
@@ -45581,15 +45581,19 @@ function PublisherFactory(_ref) {
45581
45581
  webRTCStream.removeTrack(oldTrack);
45582
45582
  webRTCStream.addTrack(newTrack);
45583
45583
  if (!(newTrack.id !== filteredVideoTrackId)) {
45584
- _context36.next = 11;
45584
+ _context36.next = 12;
45585
45585
  break;
45586
45586
  }
45587
45587
  if (oldTrack && oldTrack.stop) {
45588
45588
  oldTrack.stop();
45589
45589
  }
45590
- _context36.next = 11;
45590
+ if (newTrack.isCreatedCanvas) {
45591
+ _context36.next = 12;
45592
+ break;
45593
+ }
45594
+ _context36.next = 12;
45591
45595
  return applyVideoConstraintsTo(newTrack);
45592
- case 11:
45596
+ case 12:
45593
45597
  if (OTHelpers.env.name === 'Firefox' || OTHelpers.env.name === 'Safari') {
45594
45598
  // eslint-disable-next-line no-undef
45595
45599
  if (webRTCStream instanceof MediaStream && _this.videoElement()) {
@@ -45604,7 +45608,7 @@ function PublisherFactory(_ref) {
45604
45608
  }
45605
45609
  privateEvents.emit('streamChange');
45606
45610
  updateVideo();
45607
- case 16:
45611
+ case 17:
45608
45612
  case "end":
45609
45613
  return _context36.stop();
45610
45614
  }