@webex/internal-media-core 2.18.1 → 2.18.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/cjs/index.js CHANGED
@@ -18129,10 +18129,21 @@ class MqeBuilder {
18129
18129
  }
18130
18130
  };
18131
18131
  if (stats.type === 'inbound-rtp') {
18132
- var _current$rtpPacketSiz, _stats$bytesReceived, _stats$packetsReceive;
18132
+ var _stats$jitterBufferDe, _current$jitterBuffer, _stats$jitterBufferEm, _current$jitterBuffer2, _current$rtpPacketSiz, _stats$bytesReceived, _stats$packetsReceive;
18133
18133
  storeValueInArray('isRequestedArray', stats.isRequested);
18134
18134
  storeValueInArray('sourceStateArray', stats.sourceState);
18135
18135
  storeValueInArray('jitterArray', stats.jitter);
18136
+ var currentTotalJitterBufferDelay = (_stats$jitterBufferDe = stats.jitterBufferDelay) !== null && _stats$jitterBufferDe !== void 0 ? _stats$jitterBufferDe : 0;
18137
+ var lastTotalJitterBufferDelay = (_current$jitterBuffer = current === null || current === void 0 ? void 0 : current.jitterBufferDelay) !== null && _current$jitterBuffer !== void 0 ? _current$jitterBuffer : 0;
18138
+ var currentTotalJitterBufferEmittedCount = (_stats$jitterBufferEm = stats.jitterBufferEmittedCount) !== null && _stats$jitterBufferEm !== void 0 ? _stats$jitterBufferEm : 0;
18139
+ var lastTotalJitterBufferEmittedCount = (_current$jitterBuffer2 = current === null || current === void 0 ? void 0 : current.jitterBufferEmittedCount) !== null && _current$jitterBuffer2 !== void 0 ? _current$jitterBuffer2 : 0;
18140
+ var jitterBufferDelayPerEmit = 0;
18141
+ if (currentTotalJitterBufferEmittedCount - lastTotalJitterBufferEmittedCount > 0) {
18142
+ var jitterBufferDelayByEmit = currentTotalJitterBufferDelay - lastTotalJitterBufferDelay;
18143
+ var jitterBufferEmittedCountByEmit = currentTotalJitterBufferEmittedCount - lastTotalJitterBufferEmittedCount;
18144
+ jitterBufferDelayPerEmit = Math.round(jitterBufferDelayByEmit / jitterBufferEmittedCountByEmit * 1000);
18145
+ }
18146
+ storeValueInArray('jitterBufferDelayPerEmitArray', jitterBufferDelayPerEmit);
18136
18147
  storeValueInArray('requestedBitrateArray', stats.requestedBitrate);
18137
18148
  storeValueInArray('csiArray', stats.csi);
18138
18149
  var rtpPacketSizeArray = (_current$rtpPacketSiz = current === null || current === void 0 ? void 0 : current.rtpPacketSizeArray) !== null && _current$rtpPacketSiz !== void 0 ? _current$rtpPacketSiz : [];
@@ -18237,6 +18248,7 @@ class MqeBuilder {
18237
18248
  delete stats.isRequestedArray;
18238
18249
  delete stats.sourceStateArray;
18239
18250
  delete stats.jitterArray;
18251
+ delete stats.jitterBufferDelayPerEmitArray;
18240
18252
  delete stats.requestedBitrateArray;
18241
18253
  delete stats.csiArray;
18242
18254
  delete stats.maxRequestedFrameSize;
@@ -18360,7 +18372,7 @@ class MqeBuilder {
18360
18372
  return result;
18361
18373
  }
18362
18374
  buildMqeIntervalStreamReceiveCommon(id) {
18363
- var _getPropertyFromStats13, _getPropertyFromStats14, _getPropertyFromStats15, _getPropertyFromStats16, _getPropertyFromStats17, _getPropertyFromStats18, _getPropertyFromStats29, _getPropertyFromStats30, _getPropertyFromStats31, _getPropertyFromStats32, _getPropertyFromStats33, _getCodecFromStatsByS;
18375
+ var _getPropertyFromStats13, _getPropertyFromStats14, _getPropertyFromStats15, _getPropertyFromStats16, _getPropertyFromStats17, _getPropertyFromStats18, _getPropertyFromStats29, _getPropertyFromStats30, _getPropertyFromStats31, _getPropertyFromStats32, _getPropertyFromStats33, _getPropertyFromStats34, _getCodecFromStatsByS;
18364
18376
  var result = structuredClone(initialMqeIntervalStreamReceiveCommon);
18365
18377
  var current = this.currentIntervalStats;
18366
18378
  var previous = this.previousIntervalStats;
@@ -18394,22 +18406,28 @@ class MqeBuilder {
18394
18406
  result.requestedFrameRate = currentMaxRequestedFrameRateForMaxRequestedFrameSize;
18395
18407
  result.optimalFrameRate = currentMaxRequestedFrameRateForMaxRequestedFrameSize;
18396
18408
  }
18397
- var currentJitterArray = (_getPropertyFromStats29 = getPropertyFromStatsById(current, id, 'jitterArray')) !== null && _getPropertyFromStats29 !== void 0 ? _getPropertyFromStats29 : [];
18409
+ var jitterBufferDelayPerEmitArray = (_getPropertyFromStats29 = getPropertyFromStatsById(current, id, 'jitterBufferDelayPerEmitArray')) !== null && _getPropertyFromStats29 !== void 0 ? _getPropertyFromStats29 : [];
18410
+ result.jitterBufferDelay = {
18411
+ minDelay: min(jitterBufferDelayPerEmitArray),
18412
+ meanDelay: Math.round(mean(jitterBufferDelayPerEmitArray)),
18413
+ maxDelay: max(jitterBufferDelayPerEmitArray)
18414
+ };
18415
+ var currentJitterArray = (_getPropertyFromStats30 = getPropertyFromStatsById(current, id, 'jitterArray')) !== null && _getPropertyFromStats30 !== void 0 ? _getPropertyFromStats30 : [];
18398
18416
  result.meanRtpJitter = mean(currentJitterArray) * 1000;
18399
18417
  result.maxRtpJitter = max(currentJitterArray) * 1000;
18400
- var currentBytesReceived = (_getPropertyFromStats30 = getPropertyFromStatsById(current, id, 'bytesReceived')) !== null && _getPropertyFromStats30 !== void 0 ? _getPropertyFromStats30 : 0;
18401
- var previousBytesReceived = (_getPropertyFromStats31 = getPropertyFromStatsById(previous, id, 'bytesReceived')) !== null && _getPropertyFromStats31 !== void 0 ? _getPropertyFromStats31 : 0;
18402
- var currentRetransmittedBytesReceived = (_getPropertyFromStats32 = getPropertyFromStatsById(current, id, 'retransmittedBytesReceived')) !== null && _getPropertyFromStats32 !== void 0 ? _getPropertyFromStats32 : 0;
18403
- var previousRetransmittedBytesReceived = (_getPropertyFromStats33 = getPropertyFromStatsById(previous, id, 'retransmittedBytesReceived')) !== null && _getPropertyFromStats33 !== void 0 ? _getPropertyFromStats33 : 0;
18418
+ var currentBytesReceived = (_getPropertyFromStats31 = getPropertyFromStatsById(current, id, 'bytesReceived')) !== null && _getPropertyFromStats31 !== void 0 ? _getPropertyFromStats31 : 0;
18419
+ var previousBytesReceived = (_getPropertyFromStats32 = getPropertyFromStatsById(previous, id, 'bytesReceived')) !== null && _getPropertyFromStats32 !== void 0 ? _getPropertyFromStats32 : 0;
18420
+ var currentRetransmittedBytesReceived = (_getPropertyFromStats33 = getPropertyFromStatsById(current, id, 'retransmittedBytesReceived')) !== null && _getPropertyFromStats33 !== void 0 ? _getPropertyFromStats33 : 0;
18421
+ var previousRetransmittedBytesReceived = (_getPropertyFromStats34 = getPropertyFromStatsById(previous, id, 'retransmittedBytesReceived')) !== null && _getPropertyFromStats34 !== void 0 ? _getPropertyFromStats34 : 0;
18404
18422
  result.receivedBitrate = bytesToBitrate(currentBytesReceived - previousBytesReceived - (currentRetransmittedBytesReceived - previousRetransmittedBytesReceived), MQE_INTERVAL);
18405
18423
  if (this.mediaKind === 'audio') {
18406
- var _getPropertyFromStats34;
18407
- var currentRequestedBitrateArray = (_getPropertyFromStats34 = getPropertyFromStatsById(current, id, 'requestedBitrateArray')) !== null && _getPropertyFromStats34 !== void 0 ? _getPropertyFromStats34 : [];
18424
+ var _getPropertyFromStats35;
18425
+ var currentRequestedBitrateArray = (_getPropertyFromStats35 = getPropertyFromStatsById(current, id, 'requestedBitrateArray')) !== null && _getPropertyFromStats35 !== void 0 ? _getPropertyFromStats35 : [];
18408
18426
  result.requestedBitrate = max(currentRequestedBitrateArray);
18409
18427
  result.optimalBitrate = max(currentRequestedBitrateArray);
18410
18428
  } else {
18411
- var _getPropertyFromStats35;
18412
- var currentMaxRequestedBitrateForMaxRequestedFrameSize = (_getPropertyFromStats35 = getPropertyFromStatsById(current, id, 'maxRequestedBitrateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats35 !== void 0 ? _getPropertyFromStats35 : 0;
18429
+ var _getPropertyFromStats36;
18430
+ var currentMaxRequestedBitrateForMaxRequestedFrameSize = (_getPropertyFromStats36 = getPropertyFromStatsById(current, id, 'maxRequestedBitrateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats36 !== void 0 ? _getPropertyFromStats36 : 0;
18413
18431
  result.requestedBitrate = currentMaxRequestedBitrateForMaxRequestedFrameSize;
18414
18432
  result.optimalBitrate = currentMaxRequestedBitrateForMaxRequestedFrameSize;
18415
18433
  }
@@ -18474,25 +18492,25 @@ class MqeBuilder {
18474
18492
  return result;
18475
18493
  }
18476
18494
  buildMqeIntervalStreamTransmitVideo(id) {
18477
- var _getPropertyFromStats36, _getPropertyFromStats37, _getPropertyFromStats38, _getPropertyFromStats39, _getPropertyFromStats40, _getPropertyFromStats41, _getPropertyFromStats42, _getPropertyFromStats43, _getPropertyFromStats44, _getH264ProfileFromSt2;
18495
+ var _getPropertyFromStats37, _getPropertyFromStats38, _getPropertyFromStats39, _getPropertyFromStats40, _getPropertyFromStats41, _getPropertyFromStats42, _getPropertyFromStats43, _getPropertyFromStats44, _getPropertyFromStats45, _getH264ProfileFromSt2;
18478
18496
  var result = structuredClone(initialMqeIntervalStreamTransmitVideo);
18479
18497
  result.common = this.buildMqeIntervalStreamTransmitCommon(id);
18480
18498
  var current = this.currentIntervalStats;
18481
18499
  var previous = this.previousIntervalStats;
18482
- var currentMaxFrameSizeHeightForMaxRequestedFrameSize = (_getPropertyFromStats36 = getPropertyFromStatsById(current, id, 'maxFrameSizeHeightForMaxRequestedFrameSize')) !== null && _getPropertyFromStats36 !== void 0 ? _getPropertyFromStats36 : 0;
18483
- var currentMaxFrameSizeWidthForMaxRequestedFrameSize = (_getPropertyFromStats37 = getPropertyFromStatsById(current, id, 'maxFrameSizeWidthForMaxRequestedFrameSize')) !== null && _getPropertyFromStats37 !== void 0 ? _getPropertyFromStats37 : 0;
18500
+ var currentMaxFrameSizeHeightForMaxRequestedFrameSize = (_getPropertyFromStats37 = getPropertyFromStatsById(current, id, 'maxFrameSizeHeightForMaxRequestedFrameSize')) !== null && _getPropertyFromStats37 !== void 0 ? _getPropertyFromStats37 : 0;
18501
+ var currentMaxFrameSizeWidthForMaxRequestedFrameSize = (_getPropertyFromStats38 = getPropertyFromStatsById(current, id, 'maxFrameSizeWidthForMaxRequestedFrameSize')) !== null && _getPropertyFromStats38 !== void 0 ? _getPropertyFromStats38 : 0;
18484
18502
  result.transmittedFrameSize = pixelsToFrameSize(currentMaxFrameSizeWidthForMaxRequestedFrameSize, currentMaxFrameSizeHeightForMaxRequestedFrameSize);
18485
- var currentMaxRequestedFrameSize = (_getPropertyFromStats38 = getPropertyFromStatsById(current, id, 'maxRequestedFrameSize')) !== null && _getPropertyFromStats38 !== void 0 ? _getPropertyFromStats38 : 0;
18503
+ var currentMaxRequestedFrameSize = (_getPropertyFromStats39 = getPropertyFromStatsById(current, id, 'maxRequestedFrameSize')) !== null && _getPropertyFromStats39 !== void 0 ? _getPropertyFromStats39 : 0;
18486
18504
  result.requestedFrameSize = currentMaxRequestedFrameSize;
18487
18505
  result.transmittedHeight = currentMaxFrameSizeHeightForMaxRequestedFrameSize;
18488
18506
  result.transmittedWidth = currentMaxFrameSizeWidthForMaxRequestedFrameSize;
18489
- var currentKeyFramesEncoded = (_getPropertyFromStats39 = getPropertyFromStatsById(current, id, 'keyFramesEncoded')) !== null && _getPropertyFromStats39 !== void 0 ? _getPropertyFromStats39 : 0;
18490
- var previousKeyFramesEncoded = (_getPropertyFromStats40 = getPropertyFromStatsById(previous, id, 'keyFramesEncoded')) !== null && _getPropertyFromStats40 !== void 0 ? _getPropertyFromStats40 : 0;
18507
+ var currentKeyFramesEncoded = (_getPropertyFromStats40 = getPropertyFromStatsById(current, id, 'keyFramesEncoded')) !== null && _getPropertyFromStats40 !== void 0 ? _getPropertyFromStats40 : 0;
18508
+ var previousKeyFramesEncoded = (_getPropertyFromStats41 = getPropertyFromStatsById(previous, id, 'keyFramesEncoded')) !== null && _getPropertyFromStats41 !== void 0 ? _getPropertyFromStats41 : 0;
18491
18509
  result.transmittedKeyFrames = currentKeyFramesEncoded - previousKeyFramesEncoded;
18492
- var currentFirCount = (_getPropertyFromStats41 = getPropertyFromStatsById(current, id, 'firCount')) !== null && _getPropertyFromStats41 !== void 0 ? _getPropertyFromStats41 : 0;
18493
- var previousFirCount = (_getPropertyFromStats42 = getPropertyFromStatsById(previous, id, 'firCount')) !== null && _getPropertyFromStats42 !== void 0 ? _getPropertyFromStats42 : 0;
18494
- var currentPliCount = (_getPropertyFromStats43 = getPropertyFromStatsById(current, id, 'pliCount')) !== null && _getPropertyFromStats43 !== void 0 ? _getPropertyFromStats43 : 0;
18495
- var previousPliCount = (_getPropertyFromStats44 = getPropertyFromStatsById(previous, id, 'pliCount')) !== null && _getPropertyFromStats44 !== void 0 ? _getPropertyFromStats44 : 0;
18510
+ var currentFirCount = (_getPropertyFromStats42 = getPropertyFromStatsById(current, id, 'firCount')) !== null && _getPropertyFromStats42 !== void 0 ? _getPropertyFromStats42 : 0;
18511
+ var previousFirCount = (_getPropertyFromStats43 = getPropertyFromStatsById(previous, id, 'firCount')) !== null && _getPropertyFromStats43 !== void 0 ? _getPropertyFromStats43 : 0;
18512
+ var currentPliCount = (_getPropertyFromStats44 = getPropertyFromStatsById(current, id, 'pliCount')) !== null && _getPropertyFromStats44 !== void 0 ? _getPropertyFromStats44 : 0;
18513
+ var previousPliCount = (_getPropertyFromStats45 = getPropertyFromStatsById(previous, id, 'pliCount')) !== null && _getPropertyFromStats45 !== void 0 ? _getPropertyFromStats45 : 0;
18496
18514
  result.requestedKeyFrames = currentFirCount - previousFirCount + (currentPliCount - previousPliCount);
18497
18515
  result.localConfigurationChanges = 0;
18498
18516
  var currentH264CodecProfile = (_getH264ProfileFromSt2 = getH264ProfileFromStatsByStreamStatsId(current, id)) !== null && _getH264ProfileFromSt2 !== void 0 ? _getH264ProfileFromSt2 : 'BP';
@@ -18514,34 +18532,34 @@ class MqeBuilder {
18514
18532
  return result;
18515
18533
  }
18516
18534
  buildMqeIntervalStreamTransmitCommon(id) {
18517
- var _getPropertyFromStats45, _getPropertyFromStats46, _getPropertyFromStats47, _getPropertyFromStats48, _getPropertyFromStats51, _getPropertyFromStats52, _getPropertyFromStats53, _getPropertyFromStats54, _getCodecFromStatsByS2;
18535
+ var _getPropertyFromStats46, _getPropertyFromStats47, _getPropertyFromStats48, _getPropertyFromStats49, _getPropertyFromStats52, _getPropertyFromStats53, _getPropertyFromStats54, _getPropertyFromStats55, _getCodecFromStatsByS2;
18518
18536
  var result = structuredClone(initialMqeIntervalStreamTransmitCommon);
18519
18537
  var current = this.currentIntervalStats;
18520
18538
  var previous = this.previousIntervalStats;
18521
- var currentPacketsSent = (_getPropertyFromStats45 = getPropertyFromStatsById(current, id, 'packetsSent')) !== null && _getPropertyFromStats45 !== void 0 ? _getPropertyFromStats45 : 0;
18522
- var previousPacketsSent = (_getPropertyFromStats46 = getPropertyFromStatsById(previous, id, 'packetsSent')) !== null && _getPropertyFromStats46 !== void 0 ? _getPropertyFromStats46 : 0;
18523
- var currentRetransmittedPacketsSent = (_getPropertyFromStats47 = getPropertyFromStatsById(current, id, 'retransmittedPacketsSent')) !== null && _getPropertyFromStats47 !== void 0 ? _getPropertyFromStats47 : 0;
18524
- var previousRetransmittedPacketsSent = (_getPropertyFromStats48 = getPropertyFromStatsById(previous, id, 'retransmittedPacketsSent')) !== null && _getPropertyFromStats48 !== void 0 ? _getPropertyFromStats48 : 0;
18539
+ var currentPacketsSent = (_getPropertyFromStats46 = getPropertyFromStatsById(current, id, 'packetsSent')) !== null && _getPropertyFromStats46 !== void 0 ? _getPropertyFromStats46 : 0;
18540
+ var previousPacketsSent = (_getPropertyFromStats47 = getPropertyFromStatsById(previous, id, 'packetsSent')) !== null && _getPropertyFromStats47 !== void 0 ? _getPropertyFromStats47 : 0;
18541
+ var currentRetransmittedPacketsSent = (_getPropertyFromStats48 = getPropertyFromStatsById(current, id, 'retransmittedPacketsSent')) !== null && _getPropertyFromStats48 !== void 0 ? _getPropertyFromStats48 : 0;
18542
+ var previousRetransmittedPacketsSent = (_getPropertyFromStats49 = getPropertyFromStatsById(previous, id, 'retransmittedPacketsSent')) !== null && _getPropertyFromStats49 !== void 0 ? _getPropertyFromStats49 : 0;
18525
18543
  result.rtpPackets = currentPacketsSent - previousPacketsSent - (currentRetransmittedPacketsSent - previousRetransmittedPacketsSent);
18526
18544
  if (this.mediaKind === 'video') {
18527
- var _getPropertyFromStats49, _getPropertyFromStats50;
18528
- var currentMaxTransmittedFrameRateForMaxRequestedFrameSize = (_getPropertyFromStats49 = getPropertyFromStatsById(current, id, 'maxTransmittedFrameRateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats49 !== void 0 ? _getPropertyFromStats49 : 0;
18545
+ var _getPropertyFromStats50, _getPropertyFromStats51;
18546
+ var currentMaxTransmittedFrameRateForMaxRequestedFrameSize = (_getPropertyFromStats50 = getPropertyFromStatsById(current, id, 'maxTransmittedFrameRateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats50 !== void 0 ? _getPropertyFromStats50 : 0;
18529
18547
  result.transmittedFrameRate = currentMaxTransmittedFrameRateForMaxRequestedFrameSize;
18530
- var currentMaxRequestedFrameRateForMaxRequestedFrameSize = (_getPropertyFromStats50 = getPropertyFromStatsById(current, id, 'maxRequestedFrameRateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats50 !== void 0 ? _getPropertyFromStats50 : 0;
18548
+ var currentMaxRequestedFrameRateForMaxRequestedFrameSize = (_getPropertyFromStats51 = getPropertyFromStatsById(current, id, 'maxRequestedFrameRateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats51 !== void 0 ? _getPropertyFromStats51 : 0;
18531
18549
  result.requestedFrames = currentMaxRequestedFrameRateForMaxRequestedFrameSize;
18532
18550
  }
18533
- var currentBytesSent = (_getPropertyFromStats51 = getPropertyFromStatsById(current, id, 'bytesSent')) !== null && _getPropertyFromStats51 !== void 0 ? _getPropertyFromStats51 : 0;
18534
- var previousBytesSent = (_getPropertyFromStats52 = getPropertyFromStatsById(previous, id, 'bytesSent')) !== null && _getPropertyFromStats52 !== void 0 ? _getPropertyFromStats52 : 0;
18535
- var currentRetransmittedBytesSent = (_getPropertyFromStats53 = getPropertyFromStatsById(current, id, 'retransmittedBytesSent')) !== null && _getPropertyFromStats53 !== void 0 ? _getPropertyFromStats53 : 0;
18536
- var previousRetransmittedBytesSent = (_getPropertyFromStats54 = getPropertyFromStatsById(previous, id, 'retransmittedBytesSent')) !== null && _getPropertyFromStats54 !== void 0 ? _getPropertyFromStats54 : 0;
18551
+ var currentBytesSent = (_getPropertyFromStats52 = getPropertyFromStatsById(current, id, 'bytesSent')) !== null && _getPropertyFromStats52 !== void 0 ? _getPropertyFromStats52 : 0;
18552
+ var previousBytesSent = (_getPropertyFromStats53 = getPropertyFromStatsById(previous, id, 'bytesSent')) !== null && _getPropertyFromStats53 !== void 0 ? _getPropertyFromStats53 : 0;
18553
+ var currentRetransmittedBytesSent = (_getPropertyFromStats54 = getPropertyFromStatsById(current, id, 'retransmittedBytesSent')) !== null && _getPropertyFromStats54 !== void 0 ? _getPropertyFromStats54 : 0;
18554
+ var previousRetransmittedBytesSent = (_getPropertyFromStats55 = getPropertyFromStatsById(previous, id, 'retransmittedBytesSent')) !== null && _getPropertyFromStats55 !== void 0 ? _getPropertyFromStats55 : 0;
18537
18555
  result.transmittedBitrate = bytesToBitrate(currentBytesSent - previousBytesSent - (currentRetransmittedBytesSent - previousRetransmittedBytesSent), MQE_INTERVAL);
18538
18556
  if (this.mediaKind === 'audio') {
18539
- var _getPropertyFromStats55;
18540
- var currentRequestedBitrateArray = (_getPropertyFromStats55 = getPropertyFromStatsById(current, id, 'requestedBitrateArray')) !== null && _getPropertyFromStats55 !== void 0 ? _getPropertyFromStats55 : [];
18557
+ var _getPropertyFromStats56;
18558
+ var currentRequestedBitrateArray = (_getPropertyFromStats56 = getPropertyFromStatsById(current, id, 'requestedBitrateArray')) !== null && _getPropertyFromStats56 !== void 0 ? _getPropertyFromStats56 : [];
18541
18559
  result.requestedBitrate = max(currentRequestedBitrateArray);
18542
18560
  } else {
18543
- var _getPropertyFromStats56;
18544
- var currentMaxRequestedBitrateForMaxRequestedFrameSize = (_getPropertyFromStats56 = getPropertyFromStatsById(current, id, 'maxRequestedBitrateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats56 !== void 0 ? _getPropertyFromStats56 : 0;
18561
+ var _getPropertyFromStats57;
18562
+ var currentMaxRequestedBitrateForMaxRequestedFrameSize = (_getPropertyFromStats57 = getPropertyFromStatsById(current, id, 'maxRequestedBitrateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats57 !== void 0 ? _getPropertyFromStats57 : 0;
18545
18563
  result.requestedBitrate = currentMaxRequestedBitrateForMaxRequestedFrameSize;
18546
18564
  }
18547
18565
  var currentCodec = (_getCodecFromStatsByS2 = getCodecFromStatsByStreamStatsId(current, id)) !== null && _getCodecFromStatsByS2 !== void 0 ? _getCodecFromStatsByS2 : this.mediaKind === 'audio' ? 'opus' : 'H264';
package/dist/esm/index.js CHANGED
@@ -18125,10 +18125,21 @@ class MqeBuilder {
18125
18125
  }
18126
18126
  };
18127
18127
  if (stats.type === 'inbound-rtp') {
18128
- var _current$rtpPacketSiz, _stats$bytesReceived, _stats$packetsReceive;
18128
+ var _stats$jitterBufferDe, _current$jitterBuffer, _stats$jitterBufferEm, _current$jitterBuffer2, _current$rtpPacketSiz, _stats$bytesReceived, _stats$packetsReceive;
18129
18129
  storeValueInArray('isRequestedArray', stats.isRequested);
18130
18130
  storeValueInArray('sourceStateArray', stats.sourceState);
18131
18131
  storeValueInArray('jitterArray', stats.jitter);
18132
+ var currentTotalJitterBufferDelay = (_stats$jitterBufferDe = stats.jitterBufferDelay) !== null && _stats$jitterBufferDe !== void 0 ? _stats$jitterBufferDe : 0;
18133
+ var lastTotalJitterBufferDelay = (_current$jitterBuffer = current === null || current === void 0 ? void 0 : current.jitterBufferDelay) !== null && _current$jitterBuffer !== void 0 ? _current$jitterBuffer : 0;
18134
+ var currentTotalJitterBufferEmittedCount = (_stats$jitterBufferEm = stats.jitterBufferEmittedCount) !== null && _stats$jitterBufferEm !== void 0 ? _stats$jitterBufferEm : 0;
18135
+ var lastTotalJitterBufferEmittedCount = (_current$jitterBuffer2 = current === null || current === void 0 ? void 0 : current.jitterBufferEmittedCount) !== null && _current$jitterBuffer2 !== void 0 ? _current$jitterBuffer2 : 0;
18136
+ var jitterBufferDelayPerEmit = 0;
18137
+ if (currentTotalJitterBufferEmittedCount - lastTotalJitterBufferEmittedCount > 0) {
18138
+ var jitterBufferDelayByEmit = currentTotalJitterBufferDelay - lastTotalJitterBufferDelay;
18139
+ var jitterBufferEmittedCountByEmit = currentTotalJitterBufferEmittedCount - lastTotalJitterBufferEmittedCount;
18140
+ jitterBufferDelayPerEmit = Math.round(jitterBufferDelayByEmit / jitterBufferEmittedCountByEmit * 1000);
18141
+ }
18142
+ storeValueInArray('jitterBufferDelayPerEmitArray', jitterBufferDelayPerEmit);
18132
18143
  storeValueInArray('requestedBitrateArray', stats.requestedBitrate);
18133
18144
  storeValueInArray('csiArray', stats.csi);
18134
18145
  var rtpPacketSizeArray = (_current$rtpPacketSiz = current === null || current === void 0 ? void 0 : current.rtpPacketSizeArray) !== null && _current$rtpPacketSiz !== void 0 ? _current$rtpPacketSiz : [];
@@ -18233,6 +18244,7 @@ class MqeBuilder {
18233
18244
  delete stats.isRequestedArray;
18234
18245
  delete stats.sourceStateArray;
18235
18246
  delete stats.jitterArray;
18247
+ delete stats.jitterBufferDelayPerEmitArray;
18236
18248
  delete stats.requestedBitrateArray;
18237
18249
  delete stats.csiArray;
18238
18250
  delete stats.maxRequestedFrameSize;
@@ -18356,7 +18368,7 @@ class MqeBuilder {
18356
18368
  return result;
18357
18369
  }
18358
18370
  buildMqeIntervalStreamReceiveCommon(id) {
18359
- var _getPropertyFromStats13, _getPropertyFromStats14, _getPropertyFromStats15, _getPropertyFromStats16, _getPropertyFromStats17, _getPropertyFromStats18, _getPropertyFromStats29, _getPropertyFromStats30, _getPropertyFromStats31, _getPropertyFromStats32, _getPropertyFromStats33, _getCodecFromStatsByS;
18371
+ var _getPropertyFromStats13, _getPropertyFromStats14, _getPropertyFromStats15, _getPropertyFromStats16, _getPropertyFromStats17, _getPropertyFromStats18, _getPropertyFromStats29, _getPropertyFromStats30, _getPropertyFromStats31, _getPropertyFromStats32, _getPropertyFromStats33, _getPropertyFromStats34, _getCodecFromStatsByS;
18360
18372
  var result = structuredClone(initialMqeIntervalStreamReceiveCommon);
18361
18373
  var current = this.currentIntervalStats;
18362
18374
  var previous = this.previousIntervalStats;
@@ -18390,22 +18402,28 @@ class MqeBuilder {
18390
18402
  result.requestedFrameRate = currentMaxRequestedFrameRateForMaxRequestedFrameSize;
18391
18403
  result.optimalFrameRate = currentMaxRequestedFrameRateForMaxRequestedFrameSize;
18392
18404
  }
18393
- var currentJitterArray = (_getPropertyFromStats29 = getPropertyFromStatsById(current, id, 'jitterArray')) !== null && _getPropertyFromStats29 !== void 0 ? _getPropertyFromStats29 : [];
18405
+ var jitterBufferDelayPerEmitArray = (_getPropertyFromStats29 = getPropertyFromStatsById(current, id, 'jitterBufferDelayPerEmitArray')) !== null && _getPropertyFromStats29 !== void 0 ? _getPropertyFromStats29 : [];
18406
+ result.jitterBufferDelay = {
18407
+ minDelay: min(jitterBufferDelayPerEmitArray),
18408
+ meanDelay: Math.round(mean(jitterBufferDelayPerEmitArray)),
18409
+ maxDelay: max(jitterBufferDelayPerEmitArray)
18410
+ };
18411
+ var currentJitterArray = (_getPropertyFromStats30 = getPropertyFromStatsById(current, id, 'jitterArray')) !== null && _getPropertyFromStats30 !== void 0 ? _getPropertyFromStats30 : [];
18394
18412
  result.meanRtpJitter = mean(currentJitterArray) * 1000;
18395
18413
  result.maxRtpJitter = max(currentJitterArray) * 1000;
18396
- var currentBytesReceived = (_getPropertyFromStats30 = getPropertyFromStatsById(current, id, 'bytesReceived')) !== null && _getPropertyFromStats30 !== void 0 ? _getPropertyFromStats30 : 0;
18397
- var previousBytesReceived = (_getPropertyFromStats31 = getPropertyFromStatsById(previous, id, 'bytesReceived')) !== null && _getPropertyFromStats31 !== void 0 ? _getPropertyFromStats31 : 0;
18398
- var currentRetransmittedBytesReceived = (_getPropertyFromStats32 = getPropertyFromStatsById(current, id, 'retransmittedBytesReceived')) !== null && _getPropertyFromStats32 !== void 0 ? _getPropertyFromStats32 : 0;
18399
- var previousRetransmittedBytesReceived = (_getPropertyFromStats33 = getPropertyFromStatsById(previous, id, 'retransmittedBytesReceived')) !== null && _getPropertyFromStats33 !== void 0 ? _getPropertyFromStats33 : 0;
18414
+ var currentBytesReceived = (_getPropertyFromStats31 = getPropertyFromStatsById(current, id, 'bytesReceived')) !== null && _getPropertyFromStats31 !== void 0 ? _getPropertyFromStats31 : 0;
18415
+ var previousBytesReceived = (_getPropertyFromStats32 = getPropertyFromStatsById(previous, id, 'bytesReceived')) !== null && _getPropertyFromStats32 !== void 0 ? _getPropertyFromStats32 : 0;
18416
+ var currentRetransmittedBytesReceived = (_getPropertyFromStats33 = getPropertyFromStatsById(current, id, 'retransmittedBytesReceived')) !== null && _getPropertyFromStats33 !== void 0 ? _getPropertyFromStats33 : 0;
18417
+ var previousRetransmittedBytesReceived = (_getPropertyFromStats34 = getPropertyFromStatsById(previous, id, 'retransmittedBytesReceived')) !== null && _getPropertyFromStats34 !== void 0 ? _getPropertyFromStats34 : 0;
18400
18418
  result.receivedBitrate = bytesToBitrate(currentBytesReceived - previousBytesReceived - (currentRetransmittedBytesReceived - previousRetransmittedBytesReceived), MQE_INTERVAL);
18401
18419
  if (this.mediaKind === 'audio') {
18402
- var _getPropertyFromStats34;
18403
- var currentRequestedBitrateArray = (_getPropertyFromStats34 = getPropertyFromStatsById(current, id, 'requestedBitrateArray')) !== null && _getPropertyFromStats34 !== void 0 ? _getPropertyFromStats34 : [];
18420
+ var _getPropertyFromStats35;
18421
+ var currentRequestedBitrateArray = (_getPropertyFromStats35 = getPropertyFromStatsById(current, id, 'requestedBitrateArray')) !== null && _getPropertyFromStats35 !== void 0 ? _getPropertyFromStats35 : [];
18404
18422
  result.requestedBitrate = max(currentRequestedBitrateArray);
18405
18423
  result.optimalBitrate = max(currentRequestedBitrateArray);
18406
18424
  } else {
18407
- var _getPropertyFromStats35;
18408
- var currentMaxRequestedBitrateForMaxRequestedFrameSize = (_getPropertyFromStats35 = getPropertyFromStatsById(current, id, 'maxRequestedBitrateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats35 !== void 0 ? _getPropertyFromStats35 : 0;
18425
+ var _getPropertyFromStats36;
18426
+ var currentMaxRequestedBitrateForMaxRequestedFrameSize = (_getPropertyFromStats36 = getPropertyFromStatsById(current, id, 'maxRequestedBitrateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats36 !== void 0 ? _getPropertyFromStats36 : 0;
18409
18427
  result.requestedBitrate = currentMaxRequestedBitrateForMaxRequestedFrameSize;
18410
18428
  result.optimalBitrate = currentMaxRequestedBitrateForMaxRequestedFrameSize;
18411
18429
  }
@@ -18470,25 +18488,25 @@ class MqeBuilder {
18470
18488
  return result;
18471
18489
  }
18472
18490
  buildMqeIntervalStreamTransmitVideo(id) {
18473
- var _getPropertyFromStats36, _getPropertyFromStats37, _getPropertyFromStats38, _getPropertyFromStats39, _getPropertyFromStats40, _getPropertyFromStats41, _getPropertyFromStats42, _getPropertyFromStats43, _getPropertyFromStats44, _getH264ProfileFromSt2;
18491
+ var _getPropertyFromStats37, _getPropertyFromStats38, _getPropertyFromStats39, _getPropertyFromStats40, _getPropertyFromStats41, _getPropertyFromStats42, _getPropertyFromStats43, _getPropertyFromStats44, _getPropertyFromStats45, _getH264ProfileFromSt2;
18474
18492
  var result = structuredClone(initialMqeIntervalStreamTransmitVideo);
18475
18493
  result.common = this.buildMqeIntervalStreamTransmitCommon(id);
18476
18494
  var current = this.currentIntervalStats;
18477
18495
  var previous = this.previousIntervalStats;
18478
- var currentMaxFrameSizeHeightForMaxRequestedFrameSize = (_getPropertyFromStats36 = getPropertyFromStatsById(current, id, 'maxFrameSizeHeightForMaxRequestedFrameSize')) !== null && _getPropertyFromStats36 !== void 0 ? _getPropertyFromStats36 : 0;
18479
- var currentMaxFrameSizeWidthForMaxRequestedFrameSize = (_getPropertyFromStats37 = getPropertyFromStatsById(current, id, 'maxFrameSizeWidthForMaxRequestedFrameSize')) !== null && _getPropertyFromStats37 !== void 0 ? _getPropertyFromStats37 : 0;
18496
+ var currentMaxFrameSizeHeightForMaxRequestedFrameSize = (_getPropertyFromStats37 = getPropertyFromStatsById(current, id, 'maxFrameSizeHeightForMaxRequestedFrameSize')) !== null && _getPropertyFromStats37 !== void 0 ? _getPropertyFromStats37 : 0;
18497
+ var currentMaxFrameSizeWidthForMaxRequestedFrameSize = (_getPropertyFromStats38 = getPropertyFromStatsById(current, id, 'maxFrameSizeWidthForMaxRequestedFrameSize')) !== null && _getPropertyFromStats38 !== void 0 ? _getPropertyFromStats38 : 0;
18480
18498
  result.transmittedFrameSize = pixelsToFrameSize(currentMaxFrameSizeWidthForMaxRequestedFrameSize, currentMaxFrameSizeHeightForMaxRequestedFrameSize);
18481
- var currentMaxRequestedFrameSize = (_getPropertyFromStats38 = getPropertyFromStatsById(current, id, 'maxRequestedFrameSize')) !== null && _getPropertyFromStats38 !== void 0 ? _getPropertyFromStats38 : 0;
18499
+ var currentMaxRequestedFrameSize = (_getPropertyFromStats39 = getPropertyFromStatsById(current, id, 'maxRequestedFrameSize')) !== null && _getPropertyFromStats39 !== void 0 ? _getPropertyFromStats39 : 0;
18482
18500
  result.requestedFrameSize = currentMaxRequestedFrameSize;
18483
18501
  result.transmittedHeight = currentMaxFrameSizeHeightForMaxRequestedFrameSize;
18484
18502
  result.transmittedWidth = currentMaxFrameSizeWidthForMaxRequestedFrameSize;
18485
- var currentKeyFramesEncoded = (_getPropertyFromStats39 = getPropertyFromStatsById(current, id, 'keyFramesEncoded')) !== null && _getPropertyFromStats39 !== void 0 ? _getPropertyFromStats39 : 0;
18486
- var previousKeyFramesEncoded = (_getPropertyFromStats40 = getPropertyFromStatsById(previous, id, 'keyFramesEncoded')) !== null && _getPropertyFromStats40 !== void 0 ? _getPropertyFromStats40 : 0;
18503
+ var currentKeyFramesEncoded = (_getPropertyFromStats40 = getPropertyFromStatsById(current, id, 'keyFramesEncoded')) !== null && _getPropertyFromStats40 !== void 0 ? _getPropertyFromStats40 : 0;
18504
+ var previousKeyFramesEncoded = (_getPropertyFromStats41 = getPropertyFromStatsById(previous, id, 'keyFramesEncoded')) !== null && _getPropertyFromStats41 !== void 0 ? _getPropertyFromStats41 : 0;
18487
18505
  result.transmittedKeyFrames = currentKeyFramesEncoded - previousKeyFramesEncoded;
18488
- var currentFirCount = (_getPropertyFromStats41 = getPropertyFromStatsById(current, id, 'firCount')) !== null && _getPropertyFromStats41 !== void 0 ? _getPropertyFromStats41 : 0;
18489
- var previousFirCount = (_getPropertyFromStats42 = getPropertyFromStatsById(previous, id, 'firCount')) !== null && _getPropertyFromStats42 !== void 0 ? _getPropertyFromStats42 : 0;
18490
- var currentPliCount = (_getPropertyFromStats43 = getPropertyFromStatsById(current, id, 'pliCount')) !== null && _getPropertyFromStats43 !== void 0 ? _getPropertyFromStats43 : 0;
18491
- var previousPliCount = (_getPropertyFromStats44 = getPropertyFromStatsById(previous, id, 'pliCount')) !== null && _getPropertyFromStats44 !== void 0 ? _getPropertyFromStats44 : 0;
18506
+ var currentFirCount = (_getPropertyFromStats42 = getPropertyFromStatsById(current, id, 'firCount')) !== null && _getPropertyFromStats42 !== void 0 ? _getPropertyFromStats42 : 0;
18507
+ var previousFirCount = (_getPropertyFromStats43 = getPropertyFromStatsById(previous, id, 'firCount')) !== null && _getPropertyFromStats43 !== void 0 ? _getPropertyFromStats43 : 0;
18508
+ var currentPliCount = (_getPropertyFromStats44 = getPropertyFromStatsById(current, id, 'pliCount')) !== null && _getPropertyFromStats44 !== void 0 ? _getPropertyFromStats44 : 0;
18509
+ var previousPliCount = (_getPropertyFromStats45 = getPropertyFromStatsById(previous, id, 'pliCount')) !== null && _getPropertyFromStats45 !== void 0 ? _getPropertyFromStats45 : 0;
18492
18510
  result.requestedKeyFrames = currentFirCount - previousFirCount + (currentPliCount - previousPliCount);
18493
18511
  result.localConfigurationChanges = 0;
18494
18512
  var currentH264CodecProfile = (_getH264ProfileFromSt2 = getH264ProfileFromStatsByStreamStatsId(current, id)) !== null && _getH264ProfileFromSt2 !== void 0 ? _getH264ProfileFromSt2 : 'BP';
@@ -18510,34 +18528,34 @@ class MqeBuilder {
18510
18528
  return result;
18511
18529
  }
18512
18530
  buildMqeIntervalStreamTransmitCommon(id) {
18513
- var _getPropertyFromStats45, _getPropertyFromStats46, _getPropertyFromStats47, _getPropertyFromStats48, _getPropertyFromStats51, _getPropertyFromStats52, _getPropertyFromStats53, _getPropertyFromStats54, _getCodecFromStatsByS2;
18531
+ var _getPropertyFromStats46, _getPropertyFromStats47, _getPropertyFromStats48, _getPropertyFromStats49, _getPropertyFromStats52, _getPropertyFromStats53, _getPropertyFromStats54, _getPropertyFromStats55, _getCodecFromStatsByS2;
18514
18532
  var result = structuredClone(initialMqeIntervalStreamTransmitCommon);
18515
18533
  var current = this.currentIntervalStats;
18516
18534
  var previous = this.previousIntervalStats;
18517
- var currentPacketsSent = (_getPropertyFromStats45 = getPropertyFromStatsById(current, id, 'packetsSent')) !== null && _getPropertyFromStats45 !== void 0 ? _getPropertyFromStats45 : 0;
18518
- var previousPacketsSent = (_getPropertyFromStats46 = getPropertyFromStatsById(previous, id, 'packetsSent')) !== null && _getPropertyFromStats46 !== void 0 ? _getPropertyFromStats46 : 0;
18519
- var currentRetransmittedPacketsSent = (_getPropertyFromStats47 = getPropertyFromStatsById(current, id, 'retransmittedPacketsSent')) !== null && _getPropertyFromStats47 !== void 0 ? _getPropertyFromStats47 : 0;
18520
- var previousRetransmittedPacketsSent = (_getPropertyFromStats48 = getPropertyFromStatsById(previous, id, 'retransmittedPacketsSent')) !== null && _getPropertyFromStats48 !== void 0 ? _getPropertyFromStats48 : 0;
18535
+ var currentPacketsSent = (_getPropertyFromStats46 = getPropertyFromStatsById(current, id, 'packetsSent')) !== null && _getPropertyFromStats46 !== void 0 ? _getPropertyFromStats46 : 0;
18536
+ var previousPacketsSent = (_getPropertyFromStats47 = getPropertyFromStatsById(previous, id, 'packetsSent')) !== null && _getPropertyFromStats47 !== void 0 ? _getPropertyFromStats47 : 0;
18537
+ var currentRetransmittedPacketsSent = (_getPropertyFromStats48 = getPropertyFromStatsById(current, id, 'retransmittedPacketsSent')) !== null && _getPropertyFromStats48 !== void 0 ? _getPropertyFromStats48 : 0;
18538
+ var previousRetransmittedPacketsSent = (_getPropertyFromStats49 = getPropertyFromStatsById(previous, id, 'retransmittedPacketsSent')) !== null && _getPropertyFromStats49 !== void 0 ? _getPropertyFromStats49 : 0;
18521
18539
  result.rtpPackets = currentPacketsSent - previousPacketsSent - (currentRetransmittedPacketsSent - previousRetransmittedPacketsSent);
18522
18540
  if (this.mediaKind === 'video') {
18523
- var _getPropertyFromStats49, _getPropertyFromStats50;
18524
- var currentMaxTransmittedFrameRateForMaxRequestedFrameSize = (_getPropertyFromStats49 = getPropertyFromStatsById(current, id, 'maxTransmittedFrameRateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats49 !== void 0 ? _getPropertyFromStats49 : 0;
18541
+ var _getPropertyFromStats50, _getPropertyFromStats51;
18542
+ var currentMaxTransmittedFrameRateForMaxRequestedFrameSize = (_getPropertyFromStats50 = getPropertyFromStatsById(current, id, 'maxTransmittedFrameRateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats50 !== void 0 ? _getPropertyFromStats50 : 0;
18525
18543
  result.transmittedFrameRate = currentMaxTransmittedFrameRateForMaxRequestedFrameSize;
18526
- var currentMaxRequestedFrameRateForMaxRequestedFrameSize = (_getPropertyFromStats50 = getPropertyFromStatsById(current, id, 'maxRequestedFrameRateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats50 !== void 0 ? _getPropertyFromStats50 : 0;
18544
+ var currentMaxRequestedFrameRateForMaxRequestedFrameSize = (_getPropertyFromStats51 = getPropertyFromStatsById(current, id, 'maxRequestedFrameRateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats51 !== void 0 ? _getPropertyFromStats51 : 0;
18527
18545
  result.requestedFrames = currentMaxRequestedFrameRateForMaxRequestedFrameSize;
18528
18546
  }
18529
- var currentBytesSent = (_getPropertyFromStats51 = getPropertyFromStatsById(current, id, 'bytesSent')) !== null && _getPropertyFromStats51 !== void 0 ? _getPropertyFromStats51 : 0;
18530
- var previousBytesSent = (_getPropertyFromStats52 = getPropertyFromStatsById(previous, id, 'bytesSent')) !== null && _getPropertyFromStats52 !== void 0 ? _getPropertyFromStats52 : 0;
18531
- var currentRetransmittedBytesSent = (_getPropertyFromStats53 = getPropertyFromStatsById(current, id, 'retransmittedBytesSent')) !== null && _getPropertyFromStats53 !== void 0 ? _getPropertyFromStats53 : 0;
18532
- var previousRetransmittedBytesSent = (_getPropertyFromStats54 = getPropertyFromStatsById(previous, id, 'retransmittedBytesSent')) !== null && _getPropertyFromStats54 !== void 0 ? _getPropertyFromStats54 : 0;
18547
+ var currentBytesSent = (_getPropertyFromStats52 = getPropertyFromStatsById(current, id, 'bytesSent')) !== null && _getPropertyFromStats52 !== void 0 ? _getPropertyFromStats52 : 0;
18548
+ var previousBytesSent = (_getPropertyFromStats53 = getPropertyFromStatsById(previous, id, 'bytesSent')) !== null && _getPropertyFromStats53 !== void 0 ? _getPropertyFromStats53 : 0;
18549
+ var currentRetransmittedBytesSent = (_getPropertyFromStats54 = getPropertyFromStatsById(current, id, 'retransmittedBytesSent')) !== null && _getPropertyFromStats54 !== void 0 ? _getPropertyFromStats54 : 0;
18550
+ var previousRetransmittedBytesSent = (_getPropertyFromStats55 = getPropertyFromStatsById(previous, id, 'retransmittedBytesSent')) !== null && _getPropertyFromStats55 !== void 0 ? _getPropertyFromStats55 : 0;
18533
18551
  result.transmittedBitrate = bytesToBitrate(currentBytesSent - previousBytesSent - (currentRetransmittedBytesSent - previousRetransmittedBytesSent), MQE_INTERVAL);
18534
18552
  if (this.mediaKind === 'audio') {
18535
- var _getPropertyFromStats55;
18536
- var currentRequestedBitrateArray = (_getPropertyFromStats55 = getPropertyFromStatsById(current, id, 'requestedBitrateArray')) !== null && _getPropertyFromStats55 !== void 0 ? _getPropertyFromStats55 : [];
18553
+ var _getPropertyFromStats56;
18554
+ var currentRequestedBitrateArray = (_getPropertyFromStats56 = getPropertyFromStatsById(current, id, 'requestedBitrateArray')) !== null && _getPropertyFromStats56 !== void 0 ? _getPropertyFromStats56 : [];
18537
18555
  result.requestedBitrate = max(currentRequestedBitrateArray);
18538
18556
  } else {
18539
- var _getPropertyFromStats56;
18540
- var currentMaxRequestedBitrateForMaxRequestedFrameSize = (_getPropertyFromStats56 = getPropertyFromStatsById(current, id, 'maxRequestedBitrateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats56 !== void 0 ? _getPropertyFromStats56 : 0;
18557
+ var _getPropertyFromStats57;
18558
+ var currentMaxRequestedBitrateForMaxRequestedFrameSize = (_getPropertyFromStats57 = getPropertyFromStatsById(current, id, 'maxRequestedBitrateForMaxRequestedFrameSize')) !== null && _getPropertyFromStats57 !== void 0 ? _getPropertyFromStats57 : 0;
18541
18559
  result.requestedBitrate = currentMaxRequestedBitrateForMaxRequestedFrameSize;
18542
18560
  }
18543
18561
  var currentCodec = (_getCodecFromStatsByS2 = getCodecFromStatsByStreamStatsId(current, id)) !== null && _getCodecFromStatsByS2 !== void 0 ? _getCodecFromStatsByS2 : this.mediaKind === 'audio' ? 'opus' : 'H264';
@@ -1 +1 @@
1
- {"version":3,"file":"MqeBuilder.d.ts","sourceRoot":"","sources":["../../../src/StatsAnalyzer/MqeBuilder.ts"],"names":[],"mappings":"AAIA,OAAO,EAUL,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,EAC/B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAe,QAAQ,EAAE,MAAM,SAAS,CAAC;AAmBhD,8BAAsB,UAAU;IAE9B,oBAAoB,EAAE,QAAQ,CAAa;IAG3C,qBAAqB,EAAE,QAAQ,CAAa;IAE5C,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC;IAE1B,SAAS,CAAC,kBAAkB,EAAE,OAAO,CAAC;IAEtC,SAAS,CAAC,SAAS,EAAE,wBAAwB,CAAC,WAAW,CAAC,CAAC;IAE3D,SAAS,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC;gBAO3B,MAAM,EAAE;QAClB,MAAM,EAAE,OAAO,CAAC;QAChB,kBAAkB,EAAE,OAAO,CAAC;QAC5B,SAAS,EAAE,wBAAwB,CAAC,WAAW,CAAC,CAAC;QACjD,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC;KAC9B;IAYD,QAAQ,CAAC,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQ5C,0BAA0B,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAoQpD,KAAK,IAAI,IAAI;IAQb,oBAAoB,IAAI,IAAI;IAgD5B,SAAS,CAAC,6BAA6B,IAAI,wBAAwB;IAyBnE,SAAS,CAAC,8BAA8B,IAAI,yBAAyB;IAgHrE,SAAS,CAAC,kCAAkC,CAAC,EAAE,EAAE,MAAM,GAAG,6BAA6B;IAiBvF,SAAS,CAAC,kCAAkC,CAAC,EAAE,EAAE,MAAM,GAAG,6BAA6B;IAkFvF,SAAS,CAAC,mCAAmC,CAAC,EAAE,EAAE,MAAM,GAAG,8BAA8B;IA0JzF,SAAS,CAAC,+BAA+B,IAAI,0BAA0B;IA8GvE,SAAS,CAAC,mCAAmC,CAAC,EAAE,EAAE,MAAM,GAAG,8BAA8B;IA6BzF,SAAS,CAAC,mCAAmC,CAAC,EAAE,EAAE,MAAM,GAAG,8BAA8B;IAwFzF,SAAS,CAAC,oCAAoC,CAAC,EAAE,EAAE,MAAM,GAAG,+BAA+B;CAyF5F"}
1
+ {"version":3,"file":"MqeBuilder.d.ts","sourceRoot":"","sources":["../../../src/StatsAnalyzer/MqeBuilder.ts"],"names":[],"mappings":"AAIA,OAAO,EAUL,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,EAC/B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAe,QAAQ,EAAE,MAAM,SAAS,CAAC;AAmBhD,8BAAsB,UAAU;IAE9B,oBAAoB,EAAE,QAAQ,CAAa;IAG3C,qBAAqB,EAAE,QAAQ,CAAa;IAE5C,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC;IAE1B,SAAS,CAAC,kBAAkB,EAAE,OAAO,CAAC;IAEtC,SAAS,CAAC,SAAS,EAAE,wBAAwB,CAAC,WAAW,CAAC,CAAC;IAE3D,SAAS,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC;gBAO3B,MAAM,EAAE;QAClB,MAAM,EAAE,OAAO,CAAC;QAChB,kBAAkB,EAAE,OAAO,CAAC;QAC5B,SAAS,EAAE,wBAAwB,CAAC,WAAW,CAAC,CAAC;QACjD,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC;KAC9B;IAYD,QAAQ,CAAC,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQ5C,0BAA0B,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IA2RpD,KAAK,IAAI,IAAI;IAQb,oBAAoB,IAAI,IAAI;IAiD5B,SAAS,CAAC,6BAA6B,IAAI,wBAAwB;IAyBnE,SAAS,CAAC,8BAA8B,IAAI,yBAAyB;IAgHrE,SAAS,CAAC,kCAAkC,CAAC,EAAE,EAAE,MAAM,GAAG,6BAA6B;IAiBvF,SAAS,CAAC,kCAAkC,CAAC,EAAE,EAAE,MAAM,GAAG,6BAA6B;IAkFvF,SAAS,CAAC,mCAAmC,CAAC,EAAE,EAAE,MAAM,GAAG,8BAA8B;IAqKzF,SAAS,CAAC,+BAA+B,IAAI,0BAA0B;IA8GvE,SAAS,CAAC,mCAAmC,CAAC,EAAE,EAAE,MAAM,GAAG,8BAA8B;IA6BzF,SAAS,CAAC,mCAAmC,CAAC,EAAE,EAAE,MAAM,GAAG,8BAA8B;IAwFzF,SAAS,CAAC,oCAAoC,CAAC,EAAE,EAAE,MAAM,GAAG,+BAA+B;CAyF5F"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webex/internal-media-core",
3
- "version": "2.18.1",
3
+ "version": "2.18.2",
4
4
  "files": [
5
5
  "dist/cjs",
6
6
  "dist/esm",