@webex/web-client-media-engine 3.20.2 → 3.20.4
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 +8 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +8 -4
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -7919,6 +7919,7 @@ var rtcStats = function (pc, logger, intervalTime, statsPreProcessor) {
|
|
|
7919
7919
|
var args = arguments;
|
|
7920
7920
|
trace("on".concat(method), makeEvent(method === 'addIceCandidate' ? arguments[0] : arguments[0].sdp));
|
|
7921
7921
|
return nativeMethod.apply(this, [arguments[0]]).then(function () {
|
|
7922
|
+
var _a;
|
|
7922
7923
|
trace("on".concat(method, "OnSuccess"), makeEvent('success'));
|
|
7923
7924
|
if (method.endsWith('Description')) {
|
|
7924
7925
|
if (!_this.transportEventsPreviouslyAdded) {
|
|
@@ -7960,10 +7961,13 @@ var rtcStats = function (pc, logger, intervalTime, statsPreProcessor) {
|
|
|
7960
7961
|
}
|
|
7961
7962
|
}
|
|
7962
7963
|
if (!_this.sctpEventsPreviouslyAdded) {
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7964
|
+
// Some Firefox versions prior to 113 have sctp defined but not the events, so check both here.
|
|
7965
|
+
if ((_a = _this.sctp) === null || _a === void 0 ? void 0 : _a.addEventListener) {
|
|
7966
|
+
_this.sctp.addEventListener('statechange', function () {
|
|
7967
|
+
trace('onsctpStateChange', makeEvent(_this.sctp.state));
|
|
7968
|
+
});
|
|
7969
|
+
_this.sctpEventsPreviouslyAdded = true;
|
|
7970
|
+
}
|
|
7967
7971
|
}
|
|
7968
7972
|
}
|
|
7969
7973
|
if (args.length >= 2 && typeof args[1] === 'function') {
|