@opentok/client 2.28.6-alpha.15 → 2.28.6-alpha.16

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.28.6 83cc6c1
2
+ * @license OpenTok.js 2.28.6 bbc26b0
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: Thu, 16 Jan 2025 22:23:40 GMT
8
+ * Date: Fri, 17 Jan 2025 17:47:35 GMT
9
9
  */
10
10
 
11
11
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -8118,7 +8118,7 @@ const logging = (0, _log.default)('StaticConfig');
8118
8118
  */
8119
8119
 
8120
8120
  /** @type builtInConfig */
8121
- const builtInConfig = (0, _cloneDeep.default)({"version":"v2.28.6","buildHash":"83cc6c1","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"});
8121
+ const builtInConfig = (0, _cloneDeep.default)({"version":"v2.28.6","buildHash":"bbc26b0","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"});
8122
8122
  const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
8123
8123
  const liveConfigMap = {
8124
8124
  apiUrl: 'apiURL',
@@ -17470,7 +17470,8 @@ function PublisherFactory(_ref) {
17470
17470
  remoteConnectionId,
17471
17471
  scalableVideo: simulcastEnabled,
17472
17472
  sourceStreamId: (0, _getMediaModeBySourceStreamId.default)(sourceStreamId),
17473
- publisherAudioFallbackEnabled: ((_properties$audioFall = properties.audioFallback) == null ? void 0 : _properties$audioFall.publisher) || false
17473
+ publisherAudioFallbackEnabled: ((_properties$audioFall = properties.audioFallback) == null ? void 0 : _properties$audioFall.publisher) || false,
17474
+ cpuPerformanceState: this.session._.getCpuPerformanceState()
17474
17475
  };
17475
17476
  let videoSource = isScreenSharing && isCustomVideoTrack && 'Screen' || isScreenSharing && options.videoSource || isCustomVideoTrack && 'Custom' || properties.constraints.video && 'Camera' || null;
17476
17477
 
@@ -34702,7 +34703,8 @@ function SubscriberFactory(_ref2) {
34702
34703
  preferredResolutionWidth: (_properties$preferred2 = _properties.preferredResolution) == null ? void 0 : _properties$preferred2.width,
34703
34704
  preferredFrameRate: _properties.preferredFrameRate,
34704
34705
  audioFallback: !_videoEnabled && _lastSubscribeToVideoReason === 'auto',
34705
- initials: _stream.initials
34706
+ initials: _stream.initials,
34707
+ cpuPerformanceState: _session._.getCpuPerformanceState()
34706
34708
  }, qosQualityScores);
34707
34709
  const combinedStats = (0, _assign.default)(QoSBlob, parsedStats);
34708
34710
  analytics.logQOS(combinedStats);
@@ -40034,11 +40036,13 @@ function SessionFactory(deps) {
40034
40036
  this.archives = new OTHelpers.Collection();
40035
40037
  let _singlePeerConnectionController;
40036
40038
  let cpuPressureMonitor;
40039
+ let _cpuPerformanceState;
40037
40040
  if (PressureObserver) {
40038
40041
  cpuPressureMonitor = new _cpuPressureMonitor.default();
40039
40042
  cpuPressureMonitor.initMonitoring(PressureObserver);
40040
40043
  cpuPressureMonitor.startMonitoring();
40041
40044
  cpuPressureMonitor.on('pressureMonitorEvent', newState => {
40045
+ _cpuPerformanceState = newState;
40042
40046
  this.dispatchEvent(new Events.CpuPerformanceChangedEvent(newState));
40043
40047
  });
40044
40048
  }
@@ -41869,6 +41873,9 @@ function SessionFactory(deps) {
41869
41873
  getProxyUrl() {
41870
41874
  return proxyUrl;
41871
41875
  },
41876
+ getCpuPerformanceState() {
41877
+ return _cpuPerformanceState;
41878
+ },
41872
41879
  isE2ee() {
41873
41880
  return _session.sessionInfo.e2ee && _e2eeSecretSet && !!_session.capabilities.supportsE2ee;
41874
41881
  },