@opentok/client 2.31.1-alpha.1 → 2.31.1-alpha.2
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.js +14 -6
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +4 -4
- package/dist/js/opentok.min.js.map +1 -1
- package/package.json +1 -1
package/dist/js/opentok.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license OpenTok.js 2.31.1
|
|
2
|
+
* @license OpenTok.js 2.31.1 3f75a2af6
|
|
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:
|
|
8
|
+
* Date: Fri, 03 Oct 2025 10:19:22 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -8688,7 +8688,7 @@ function staticConfigFactory(_temp) {
|
|
|
8688
8688
|
_ref$axios = _ref.axios,
|
|
8689
8689
|
axios = _ref$axios === void 0 ? _axios.default : _ref$axios,
|
|
8690
8690
|
_ref$properties = _ref.properties,
|
|
8691
|
-
properties = _ref$properties === void 0 ? {"version":"v2.31.1","buildHash":"
|
|
8691
|
+
properties = _ref$properties === void 0 ? {"version":"v2.31.1","buildHash":"3f75a2af6","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;
|
|
8692
8692
|
/** @type builtInConfig */
|
|
8693
8693
|
const builtInConfig = (0, _cloneDeep.default)(properties);
|
|
8694
8694
|
/**
|
|
@@ -76054,14 +76054,14 @@ const createMOSScoreHelper = () => ({
|
|
|
76054
76054
|
rtcStats.video.roundTripTime = stat.totalRoundTripTime;
|
|
76055
76055
|
}
|
|
76056
76056
|
if (stat.type === 'inbound-rtp') {
|
|
76057
|
-
var _subscriber$stream;
|
|
76057
|
+
var _subscriber$stream, _subscriber$stream2;
|
|
76058
76058
|
const currVideoStats = stat;
|
|
76059
76059
|
rtcStats.video.packetLoss = calculatePacketsLostPercentage(currVideoStats);
|
|
76060
76060
|
if (lastVideoStats) {
|
|
76061
76061
|
rtcStats.video.bitrate = calculateBitrate(currVideoStats, lastVideoStats);
|
|
76062
76062
|
rtcStats.video.bufferDelay = calculateJitterBufferMovingAverage(currVideoStats, lastVideoStats);
|
|
76063
76063
|
}
|
|
76064
|
-
const actualDimensions = (_subscriber$stream = subscriber.stream) == null ? void 0 : _subscriber$stream.videoDimensions;
|
|
76064
|
+
const actualDimensions = subscriber == null ? void 0 : (_subscriber$stream = subscriber.stream) == null ? void 0 : _subscriber$stream.videoDimensions;
|
|
76065
76065
|
if (actualDimensions) {
|
|
76066
76066
|
rtcStats.video.width = actualDimensions == null ? void 0 : actualDimensions.width;
|
|
76067
76067
|
rtcStats.video.height = actualDimensions == null ? void 0 : actualDimensions.height;
|
|
@@ -76071,8 +76071,16 @@ const createMOSScoreHelper = () => ({
|
|
|
76071
76071
|
rtcStats.video.expectedWidth = subscriber == null ? void 0 : subscriber._preferredResolution.width;
|
|
76072
76072
|
rtcStats.video.expectedHeight = subscriber == null ? void 0 : subscriber._preferredResolution.height;
|
|
76073
76073
|
}
|
|
76074
|
+
if (['screen', 'custom'].includes(subscriber == null ? void 0 : (_subscriber$stream2 = subscriber.stream) == null ? void 0 : _subscriber$stream2.videoType)) {
|
|
76075
|
+
// We cannot guarantee a high frameRate in 'screen' or 'custom' since content can be
|
|
76076
|
+
// static, thus we can expect a low frameRate in this case. However rtcscore will
|
|
76077
|
+
// be dragged by low frameRate. In this case low frameRate is fine, and we avoid a
|
|
76078
|
+
// false bad score, by setting expectedFrameRate to currentFrameRate.
|
|
76079
|
+
rtcStats.video.expectedFrameRate = currVideoStats.framesPerSecond;
|
|
76080
|
+
} else {
|
|
76081
|
+
rtcStats.video.expectedFrameRate = subscriber == null ? void 0 : subscriber._preferredFrameRate;
|
|
76082
|
+
}
|
|
76074
76083
|
rtcStats.video.frameRate = currVideoStats.framesPerSecond;
|
|
76075
|
-
rtcStats.video.expectedFrameRate = subscriber == null ? void 0 : subscriber._preferredFrameRate;
|
|
76076
76084
|
lastVideoStats = currVideoStats;
|
|
76077
76085
|
}
|
|
76078
76086
|
}
|