@opentok/client 2.33.0-alpha.21 → 2.33.0-alpha.23

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.
@@ -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
- frameRate: number;
653
+ encodedFrameRate: number;
653
654
  bitrate: number;
654
655
  totalBitrate: number;
655
656
  scalabilityMode?: string;
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license OpenTok.js 2.33.0 efe610234
2
+ * @license OpenTok.js 2.33.0 c20842edc
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: Wed, 17 Dec 2025 11:01:33 GMT
8
+ * Date: Mon, 22 Dec 2025 11:22:08 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":"efe610234","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;
8534
+ properties = _ref$properties === void 0 ? {"version":"v2.33.0","buildHash":"c20842edc","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 layerStats = Object.assign({
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
- }, calcVideoRates(videoStat, startTime, true), {
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) &mdash; The total number of video
22915
22915
  * packets sent to the subscriber</li>
22916
22916
  *
22917
- * <li><code>video.frameRate</code> (Number) &mdash; The current average video frame rate</li>
22917
+ * <li><code>video.frameRate</code> (Number) &mdash; 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) &mdash; 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) &mdash; The height of the video resolution for this layer
22925
22927
  * in pixels</li>
22926
- * <li><code>frameRate</code> (Number) &mdash; The frame rate for this layer in frames per
22928
+ * <li><code>encodedFrameRate</code> (Number) &mdash; The frame rate for this layer in frames per
22927
22929
  * second</li>
22928
22930
  * <li><code>bitrate</code> (Number) &mdash; 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) &mdash; The total number of video packets
40309
40311
  * received by the subscriber</li>
40310
- * <li><code>video.frameRate</code> (Number) &mdash; The current average video frame rate</li>
40312
+ * <li><code>video.frameRate</code> (Number) &mdash; 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) &mdash; The decoded video frame rate (in frames per second)</li>
40311
40315
  * <li><code>video.codec</code> (String) &mdash; The video codec used by this subscriber</li>
40312
40316
  * <li><code>video.pauseCount</code> (Number) &mdash; 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>