@webex/plugin-meetings 1.148.0 → 1.149.0

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.
@@ -1305,6 +1305,22 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1305
1305
  };
1306
1306
  }
1307
1307
 
1308
+ var joinRespTxStartAudio = this.getSendingMediaDelayDuration('audio');
1309
+
1310
+ if (joinRespTxStartAudio) {
1311
+ options.audioSetupDelay = _objectSpread(_objectSpread({}, options.audioSetupDelay), {}, {
1312
+ joinRespTxStart: joinRespTxStartAudio
1313
+ });
1314
+ }
1315
+
1316
+ var joinRespTxStartVideo = this.getSendingMediaDelayDuration('video');
1317
+
1318
+ if (joinRespTxStartVideo) {
1319
+ options.videoSetupDelay = _objectSpread(_objectSpread({}, options.videoSetupDelay), {}, {
1320
+ joinRespTxStart: joinRespTxStartVideo
1321
+ });
1322
+ }
1323
+
1308
1324
  if (options.type === _constants.MQA_STATS.CA_TYPE) {
1309
1325
  payload = _metrics.default.initMediaPayload(options.event, identifiers, options);
1310
1326
  } else {
@@ -5393,6 +5409,39 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5393
5409
  var end = this["endSetupDelay".concat(typeMedia)];
5394
5410
  return start && end ? end - start : undefined;
5395
5411
  }
5412
+ /**
5413
+ * @param {string} typeMedia 'audio' or 'video'
5414
+ * @returns {undefined}
5415
+ */
5416
+
5417
+ }, {
5418
+ key: "setStartSendingMediaDelay",
5419
+ value: function setStartSendingMediaDelay(typeMedia) {
5420
+ this["startSendingMediaDelay".concat(typeMedia)] = performance.now();
5421
+ this["endSendingMediaDelay".concat(typeMedia)] = undefined;
5422
+ }
5423
+ /**
5424
+ * @param {string} typeMedia 'audio' or 'video'
5425
+ * @returns {undefined}
5426
+ */
5427
+
5428
+ }, {
5429
+ key: "setEndSendingMediaDelay",
5430
+ value: function setEndSendingMediaDelay(typeMedia) {
5431
+ this["endSendingMediaDelay".concat(typeMedia)] = performance.now();
5432
+ }
5433
+ /**
5434
+ * @param {string} typeMedia 'audio' or 'video'
5435
+ * @returns {string} duration between join response and first media tx
5436
+ */
5437
+
5438
+ }, {
5439
+ key: "getSendingMediaDelayDuration",
5440
+ value: function getSendingMediaDelayDuration(typeMedia) {
5441
+ var start = this["startSendingMediaDelay".concat(typeMedia)];
5442
+ var end = this["endSendingMediaDelay".concat(typeMedia)];
5443
+ return start && end ? end - start : undefined;
5444
+ }
5396
5445
  }]);
5397
5446
  return Meeting;
5398
5447
  }(_webexCore.StatelessWebexPlugin);