@opentok/client 2.28.5-alpha.1 → 2.28.5-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.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license OpenTok.js 2.28.5 f0ac55a
2
+ * @license OpenTok.js 2.28.5 1e28b7c
3
3
  *
4
4
  * Copyright (c) 2010-2024 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: Fri, 22 Nov 2024 23:17:50 GMT
8
+ * Date: Wed, 27 Nov 2024 19:03:49 GMT
9
9
  */
10
10
 
11
11
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -8107,7 +8107,7 @@ const logging = (0, _log.default)('StaticConfig');
8107
8107
  */
8108
8108
 
8109
8109
  /** @type builtInConfig */
8110
- const builtInConfig = (0, _cloneDeep.default)({"version":"v2.28.5","buildHash":"f0ac55a","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"});
8110
+ const builtInConfig = (0, _cloneDeep.default)({"version":"v2.28.5","buildHash":"1e28b7c","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"});
8111
8111
  const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
8112
8112
  const liveConfigMap = {
8113
8113
  apiUrl: 'apiURL',
@@ -34213,12 +34213,17 @@ function SubscriberFactory(_ref2) {
34213
34213
  return null;
34214
34214
  }
34215
34215
  (0, _eventing.default)(this);
34216
+ const qosQualityScores = {
34217
+ audioQualityScore: undefined,
34218
+ videoQualityScore: undefined
34219
+ };
34216
34220
  const scoreEmitter = createMOSScoreHelper();
34217
34221
  scoreEmitter.startMonitoringInterval({
34218
34222
  getStats: _getStats,
34219
34223
  subscriber: this,
34220
34224
  getCurrentPeerConnection,
34221
- logging
34225
+ logging,
34226
+ qosQualityScores
34222
34227
  });
34223
34228
  _subscriber.once('subscribeComplete', function () {
34224
34229
  try {
@@ -34310,7 +34315,7 @@ function SubscriberFactory(_ref2) {
34310
34315
  remoteConnectionId = _ref12.remoteConnectionId,
34311
34316
  peerId = _ref12.peerId,
34312
34317
  sourceStreamId = _ref12.sourceStreamId;
34313
- const QoSBlob = {
34318
+ const QoSBlob = Object.assign({
34314
34319
  widgetType: 'Subscriber',
34315
34320
  width: _widgetView.width,
34316
34321
  height: _widgetView.height,
@@ -34334,7 +34339,7 @@ function SubscriberFactory(_ref2) {
34334
34339
  preferredFrameRate: _properties.preferredFrameRate,
34335
34340
  audioFallback: !_videoEnabled && _lastSubscribeToVideoReason === 'auto',
34336
34341
  initials: _stream.initials
34337
- };
34342
+ }, qosQualityScores);
34338
34343
  const combinedStats = (0, _assign.default)(QoSBlob, parsedStats);
34339
34344
  analytics.logQOS(combinedStats);
34340
34345
  this.trigger('qos', Object.assign({}, analytics.commonQoSFields(), combinedStats));
@@ -95288,6 +95293,7 @@ const createMOSScoreHelper = () => ({
95288
95293
  subscriber = properties.subscriber,
95289
95294
  getCurrentPeerConnection = properties.getCurrentPeerConnection,
95290
95295
  logging = properties.logging,
95296
+ qosQualityScores = properties.qosQualityScores,
95291
95297
  _properties$rtcScore = properties.rtcScore,
95292
95298
  rtcScore = _properties$rtcScore === void 0 ? _rtcscore.score : _properties$rtcScore,
95293
95299
  _properties$samplingI = properties.samplingInterval,
@@ -95396,6 +95402,10 @@ const createMOSScoreHelper = () => ({
95396
95402
  qualityScore = {};
95397
95403
  currentAudioScore = Number.isNaN(scores.audio) ? undefined : scores.audio;
95398
95404
  currentVideoScore = Number.isNaN(scores.video) ? undefined : scores.video;
95405
+ if (qosQualityScores) {
95406
+ qosQualityScores.audioQualityScore = currentAudioScore;
95407
+ qosQualityScores.videoQualityScore = currentVideoScore;
95408
+ }
95399
95409
  if (scores.audio && subscriber.stream.hasAudio) {
95400
95410
  qualityScore.audioQualityScore = scores.audio;
95401
95411
  }
@@ -95410,7 +95420,7 @@ const createMOSScoreHelper = () => ({
95410
95420
  }
95411
95421
  previousAudioScore = currentAudioScore;
95412
95422
  previousVideoScore = currentVideoScore;
95413
- case 22:
95423
+ case 23:
95414
95424
  case "end":
95415
95425
  return _context.stop();
95416
95426
  }