@webex/web-client-media-engine 3.20.2 → 3.20.3

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/esm/index.js CHANGED
@@ -7956,10 +7956,12 @@ var rtcStats = function (pc, logger, intervalTime, statsPreProcessor) {
7956
7956
  }
7957
7957
  }
7958
7958
  if (!_this.sctpEventsPreviouslyAdded) {
7959
- _this.sctp.addEventListener('statechange', function () {
7960
- trace('onsctpStateChange', makeEvent(_this.sctp.state));
7961
- });
7962
- _this.sctpEventsPreviouslyAdded = true;
7959
+ if (_this.sctp) {
7960
+ _this.sctp.addEventListener('statechange', function () {
7961
+ trace('onsctpStateChange', makeEvent(_this.sctp.state));
7962
+ });
7963
+ _this.sctpEventsPreviouslyAdded = true;
7964
+ }
7963
7965
  }
7964
7966
  }
7965
7967
  if (args.length >= 2 && typeof args[1] === 'function') {