@opentok/client 2.35.0-alpha.40 → 2.35.0-alpha.42

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.
@@ -867,7 +867,7 @@ declare namespace OT {
867
867
 
868
868
  getAudioVolume(): number;
869
869
  getImgData(): string | null;
870
- getStats(callback: (error?: OTError, stats?: SubscriberStats) => void): void;
870
+ getStats(callback?: (error?: OTError, stats?: SubscriberStats) => void): Promise<SubscriberStats>;
871
871
  getRtcStatsReport(): Promise<Map<string, any>>;
872
872
  getStyle(): SubscriberStyle;
873
873
  subscribeToCaptions(value: boolean): Promise<void>;
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license OpenTok.js 2.35.0 4b5815904
2
+ * @license OpenTok.js 2.35.0 8151457ce
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: Fri, 29 May 2026 13:19:47 GMT
8
+ * Date: Mon, 01 Jun 2026 08:31:04 GMT
9
9
  */
10
10
 
11
11
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -26199,7 +26199,7 @@ function SubscriberFactory(_ref2) {
26199
26199
  * Vonage Video Media Router from using its own audio-only toggling implementation.
26200
26200
  * (See the documentation for the <a href="OT.html#initPublisher">OT.initPublisher()</a> method.)
26201
26201
  *
26202
- * @param {Function} completionHandler A function that takes the following
26202
+ * @param {Function} completionHandler An optional function that takes the following
26203
26203
  * parameters:
26204
26204
  *
26205
26205
  * <ul>
@@ -26265,21 +26265,30 @@ function SubscriberFactory(_ref2) {
26265
26265
  * </li>
26266
26266
  * </ul>
26267
26267
  *
26268
+ * @returns {Promise<SubscriberStats>}
26269
+ *
26268
26270
  * @see <a href="Publisher.html#getStats">Publisher.getStats()</a>
26269
26271
  * @see <a href="#getRtcStatsReport">Publisher.getRtcStatsReport()</a>
26270
26272
  *
26271
26273
  * @method #getStats
26272
26274
  * @memberOf Subscriber
26273
26275
  */
26274
- this.getStats = callback => {
26275
- activateDownlinkStatsChannel();
26276
- notifyGetStatsCalled();
26277
- _getStats(_statsSources.default.SDK, (error, stats) => {
26278
- if (error) {
26279
- callback(error);
26280
- return;
26281
- }
26282
- callback(null, stats);
26276
+ this.getStats = function (callback) {
26277
+ if (callback === void 0) {
26278
+ callback = () => {};
26279
+ }
26280
+ return new Promise((resolve, reject) => {
26281
+ activateDownlinkStatsChannel();
26282
+ notifyGetStatsCalled();
26283
+ _getStats(_statsSources.default.SDK, (error, stats) => {
26284
+ if (error) {
26285
+ callback(error);
26286
+ reject(error);
26287
+ return;
26288
+ }
26289
+ callback(null, stats);
26290
+ resolve(stats);
26291
+ });
26283
26292
  });
26284
26293
  };
26285
26294
 
@@ -29436,10 +29445,6 @@ function getUserMediaFactory(deps) {
29436
29445
  return customGetUserMedia(...arguments);
29437
29446
  }
29438
29447
  if (navigator.mediaDevices) {
29439
- if (env.isAndroidWebView) {
29440
- // eslint-disable-next-line no-undef
29441
- return parent.navigator.mediaDevices.getUserMedia(...arguments);
29442
- }
29443
29448
  return navigator.mediaDevices.getUserMedia(...arguments);
29444
29449
  }
29445
29450
  return Promise.reject(new Error('Cannot find getUserMedia'));
@@ -41927,7 +41932,7 @@ function staticConfigFactory(_temp) {
41927
41932
  _ref$axios = _ref.axios,
41928
41933
  axios = _ref$axios === void 0 ? _axios.default : _ref$axios,
41929
41934
  _ref$properties = _ref.properties,
41930
- properties = _ref$properties === void 0 ? {"version":"v2.35.0","buildHash":"4b5815904","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;
41935
+ properties = _ref$properties === void 0 ? {"version":"v2.35.0","buildHash":"8151457ce","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;
41931
41936
  /** @type builtInConfig */
41932
41937
  const builtInConfig = (0, _cloneDeep.default)(properties);
41933
41938
  /**