@opentok/client 2.33.0-alpha.20 → 2.33.0-alpha.22
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 +2 -1
- package/dist/js/opentok.js +21 -17
- 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.d.ts
CHANGED
|
@@ -632,6 +632,7 @@ declare namespace OT {
|
|
|
632
632
|
bitrate: number;
|
|
633
633
|
totalBitrate: number;
|
|
634
634
|
frameRate: number;
|
|
635
|
+
decodedFrameRate: number;
|
|
635
636
|
pauseCount?: number;
|
|
636
637
|
totalPausesDuration?: number;
|
|
637
638
|
freezeCount?: number;
|
|
@@ -649,7 +650,7 @@ declare namespace OT {
|
|
|
649
650
|
codec: string;
|
|
650
651
|
width: number;
|
|
651
652
|
height: number;
|
|
652
|
-
|
|
653
|
+
encodedFrameRate: number;
|
|
653
654
|
bitrate: number;
|
|
654
655
|
totalBitrate: number;
|
|
655
656
|
scalabilityMode?: string;
|
package/dist/js/opentok.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license OpenTok.js 2.33.0
|
|
2
|
+
* @license OpenTok.js 2.33.0 a2a5318be
|
|
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: Mon, 22 Dec 2025 11:15:07 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -8531,7 +8531,7 @@ function staticConfigFactory(_temp) {
|
|
|
8531
8531
|
_ref$axios = _ref.axios,
|
|
8532
8532
|
axios = _ref$axios === void 0 ? _axios.default : _ref$axios,
|
|
8533
8533
|
_ref$properties = _ref.properties,
|
|
8534
|
-
properties = _ref$properties === void 0 ? {"version":"v2.33.0","buildHash":"
|
|
8534
|
+
properties = _ref$properties === void 0 ? {"version":"v2.33.0","buildHash":"a2a5318be","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;
|
|
8535
8535
|
/** @type builtInConfig */
|
|
8536
8536
|
const builtInConfig = (0, _cloneDeep.default)(properties);
|
|
8537
8537
|
/**
|
|
@@ -16972,13 +16972,6 @@ const getStatsHelpers = () => {
|
|
|
16972
16972
|
statCategory.bytesReceived = parseInt(stat.bytesReceived, 10);
|
|
16973
16973
|
}
|
|
16974
16974
|
if (isVideoStat) {
|
|
16975
|
-
if ('framerateMean' in stat) {
|
|
16976
|
-
statCategory.frameRate = Number(stat.framerateMean);
|
|
16977
|
-
} else if ('googFrameRateOutput' in stat) {
|
|
16978
|
-
statCategory.frameRate = Number(stat.googFrameRateOutput);
|
|
16979
|
-
} else if ('googFrameRateInput' in stat) {
|
|
16980
|
-
statCategory.frameRate = Number(stat.googFrameRateInput);
|
|
16981
|
-
}
|
|
16982
16975
|
statCategory.width = stat.frameWidth;
|
|
16983
16976
|
statCategory.height = stat.frameHeight;
|
|
16984
16977
|
if (stats) {
|
|
@@ -17004,6 +16997,7 @@ const getStatsHelpers = () => {
|
|
|
17004
16997
|
const videoRates = calcVideoRates(stat, Date.now(), false);
|
|
17005
16998
|
if (videoRates) {
|
|
17006
16999
|
statCategory.frameRate = videoRates.frameRate;
|
|
17000
|
+
statCategory.decodedFrameRate = videoRates.frameRate;
|
|
17007
17001
|
statCategory.bitrate = videoRates.bitrate;
|
|
17008
17002
|
statCategory.totalBitrate = videoRates.totalBitrate;
|
|
17009
17003
|
}
|
|
@@ -17065,13 +17059,19 @@ const getStatsHelpers = () => {
|
|
|
17065
17059
|
const videoCodecs = stats.filter(stat => stat.type === 'codec' && stat.mimeType.includes('video'));
|
|
17066
17060
|
otStats.video.layers = videos.filter(videoStat => !api.isVideoRemoteInboundRtpStat(videoStat)).map(videoStat => {
|
|
17067
17061
|
var _videoCodecs$find2;
|
|
17068
|
-
const
|
|
17062
|
+
const _calcVideoRates = calcVideoRates(videoStat, startTime, true),
|
|
17063
|
+
frameRate = _calcVideoRates.frameRate,
|
|
17064
|
+
bitrate = _calcVideoRates.bitrate,
|
|
17065
|
+
totalBitrate = _calcVideoRates.totalBitrate;
|
|
17066
|
+
const layerStats = {
|
|
17069
17067
|
width: videoStat.frameWidth,
|
|
17070
17068
|
height: videoStat.frameHeight,
|
|
17071
|
-
codec: (_videoCodecs$find2 = videoCodecs.find(codecStat => codecStat.id === videoStat.codecId)) == null ? void 0 : _videoCodecs$find2.mimeType.split('/')[1]
|
|
17072
|
-
|
|
17069
|
+
codec: (_videoCodecs$find2 = videoCodecs.find(codecStat => codecStat.id === videoStat.codecId)) == null ? void 0 : _videoCodecs$find2.mimeType.split('/')[1],
|
|
17070
|
+
encodedFrameRate: frameRate,
|
|
17071
|
+
bitrate,
|
|
17072
|
+
totalBitrate,
|
|
17073
17073
|
scalabilityMode: videoStat.scalabilityMode
|
|
17074
|
-
}
|
|
17074
|
+
};
|
|
17075
17075
|
if (videoStat.qualityLimitationReason && videoStat.qualityLimitationReason !== 'none') {
|
|
17076
17076
|
layerStats.qualityLimitationReason = videoStat.qualityLimitationReason;
|
|
17077
17077
|
}
|
|
@@ -22914,7 +22914,9 @@ function PublisherFactory(_ref) {
|
|
|
22914
22914
|
* <li><code>video.packetsSent</code> (Number) — The total number of video
|
|
22915
22915
|
* packets sent to the subscriber</li>
|
|
22916
22916
|
*
|
|
22917
|
-
* <li><code>video.frameRate</code> (Number) — The current average video frame rate
|
|
22917
|
+
* <li><code>video.frameRate</code> (Number) — The current average video frame rate. This property
|
|
22918
|
+
* is deprecated and will be removed in the future. Please instead use the <code>encodedFrameRate</code> property in
|
|
22919
|
+
* the different layers.</li>
|
|
22918
22920
|
*
|
|
22919
22921
|
* <li><code>video.layers</code> (Array) — A list of active video encoding layers, ordered
|
|
22920
22922
|
* from highest to lowest resolution. Each layer object includes:
|
|
@@ -22923,7 +22925,7 @@ function PublisherFactory(_ref) {
|
|
|
22923
22925
|
* in pixels</li>
|
|
22924
22926
|
* <li><code>height</code> (Number) — The height of the video resolution for this layer
|
|
22925
22927
|
* in pixels</li>
|
|
22926
|
-
* <li><code>
|
|
22928
|
+
* <li><code>encodedFrameRate</code> (Number) — The frame rate for this layer in frames per
|
|
22927
22929
|
* second</li>
|
|
22928
22930
|
* <li><code>bitrate</code> (Number) — The bitrate used by this layer in bits per
|
|
22929
22931
|
* second</li>
|
|
@@ -40307,7 +40309,9 @@ function SubscriberFactory(_ref2) {
|
|
|
40307
40309
|
* did not reach the subscriber</li>
|
|
40308
40310
|
* <li><code>video.packetsReceived</code> (Number) — The total number of video packets
|
|
40309
40311
|
* received by the subscriber</li>
|
|
40310
|
-
* <li><code>video.frameRate</code> (Number) — The current average video frame rate
|
|
40312
|
+
* <li><code>video.frameRate</code> (Number) — The current average video frame rate. This property is
|
|
40313
|
+
* deprecated and will be removed in the future. Please instead use the <code>video.decodedFrameRate</code> property.</li>
|
|
40314
|
+
* <li><code>video.decodedFrameRate</code> (Number) — The decoded video frame rate (in frames per second)</li>
|
|
40311
40315
|
* <li><code>video.codec</code> (String) — The video codec used by this subscriber</li>
|
|
40312
40316
|
* <li><code>video.pauseCount</code> (Number) — Number of times the subscriber's video
|
|
40313
40317
|
* playback has paused. A pause is detected if no frame is rendered for more than 5 seconds</li>
|