@opentok/client 2.35.0-alpha.41 → 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.
- package/dist/js/opentok.d.ts +1 -1
- package/dist/js/opentok.js +22 -13
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +3 -3
- package/dist/js/opentok.min.js.map +1 -1
- package/package.json +1 -1
package/dist/js/opentok.d.ts
CHANGED
|
@@ -867,7 +867,7 @@ declare namespace OT {
|
|
|
867
867
|
|
|
868
868
|
getAudioVolume(): number;
|
|
869
869
|
getImgData(): string | null;
|
|
870
|
-
getStats(callback
|
|
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>;
|
package/dist/js/opentok.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license OpenTok.js 2.35.0
|
|
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: Mon, 01 Jun 2026
|
|
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
|
|
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
|
-
|
|
26276
|
-
|
|
26277
|
-
|
|
26278
|
-
|
|
26279
|
-
|
|
26280
|
-
|
|
26281
|
-
|
|
26282
|
-
|
|
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
|
|
|
@@ -41923,7 +41932,7 @@ function staticConfigFactory(_temp) {
|
|
|
41923
41932
|
_ref$axios = _ref.axios,
|
|
41924
41933
|
axios = _ref$axios === void 0 ? _axios.default : _ref$axios,
|
|
41925
41934
|
_ref$properties = _ref.properties,
|
|
41926
|
-
properties = _ref$properties === void 0 ? {"version":"v2.35.0","buildHash":"
|
|
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;
|
|
41927
41936
|
/** @type builtInConfig */
|
|
41928
41937
|
const builtInConfig = (0, _cloneDeep.default)(properties);
|
|
41929
41938
|
/**
|