@webex/plugin-meetings 3.8.0-next.52 → 3.8.0-next.54
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/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meeting/index.js +55 -63
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +1 -5
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/util.js +0 -17
- package/dist/meeting/util.js.map +1 -1
- package/dist/types/meeting/index.d.ts +2 -2
- package/dist/types/meeting/util.d.ts +0 -6
- package/dist/webinar/index.js +1 -1
- package/package.json +22 -22
- package/src/meeting/index.ts +35 -58
- package/src/meeting/locusMediaRequest.ts +1 -6
- package/src/meeting/util.ts +0 -18
- package/test/unit/spec/meeting/index.js +16 -52
- package/test/unit/spec/meeting/locusMediaRequest.ts +1 -6
- package/test/unit/spec/meeting/utils.js +0 -8
- package/test/unit/spec/meetings/index.js +9 -0
package/dist/breakouts/index.js
CHANGED
@@ -1046,7 +1046,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
|
|
1046
1046
|
this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
|
1047
1047
|
}
|
1048
1048
|
},
|
1049
|
-
version: "3.8.0-next.
|
1049
|
+
version: "3.8.0-next.54"
|
1050
1050
|
});
|
1051
1051
|
var _default = exports.default = Breakouts;
|
1052
1052
|
//# sourceMappingURL=index.js.map
|
@@ -373,7 +373,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
|
|
373
373
|
throw error;
|
374
374
|
});
|
375
375
|
},
|
376
|
-
version: "3.8.0-next.
|
376
|
+
version: "3.8.0-next.54"
|
377
377
|
});
|
378
378
|
var _default = exports.default = SimultaneousInterpretation;
|
379
379
|
//# sourceMappingURL=index.js.map
|
@@ -18,7 +18,7 @@ var SILanguage = _webexCore.WebexPlugin.extend({
|
|
18
18
|
languageCode: 'number',
|
19
19
|
languageName: 'string'
|
20
20
|
},
|
21
|
-
version: "3.8.0-next.
|
21
|
+
version: "3.8.0-next.54"
|
22
22
|
});
|
23
23
|
var _default = exports.default = SILanguage;
|
24
24
|
//# sourceMappingURL=siLanguage.js.map
|
package/dist/meeting/index.js
CHANGED
@@ -617,10 +617,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
617
617
|
/**
|
618
618
|
* Handles ROAP_FAILURE event from the webrtc media connection
|
619
619
|
*
|
620
|
-
* @param {Error}
|
620
|
+
* @param {Error} error
|
621
621
|
* @returns {void}
|
622
622
|
*/
|
623
|
-
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "handleRoapFailure", function (
|
623
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "handleRoapFailure", function (error) {
|
624
624
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
625
625
|
var sendBehavioralMetric = function sendBehavioralMetric(metricName, error, correlationId) {
|
626
626
|
var _error$cause;
|
@@ -635,7 +635,6 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
635
635
|
};
|
636
636
|
_metrics.default.sendBehavioralMetric(metricName, data, metadata);
|
637
637
|
};
|
638
|
-
var error = _util2.default.markErrorAsHandledBySdk(roapError);
|
639
638
|
if (error instanceof _internalMediaCore.Errors.SdpOfferCreationError) {
|
640
639
|
sendBehavioralMetric(_constants2.default.PEERCONNECTION_FAILURE, error, _this.correlationId);
|
641
640
|
|
@@ -681,7 +680,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
681
680
|
if (_this.deferSDPAnswer) {
|
682
681
|
clearTimeout(_this.sdpResponseTimer);
|
683
682
|
_this.sdpResponseTimer = undefined;
|
684
|
-
_this.deferSDPAnswer.reject(
|
683
|
+
_this.deferSDPAnswer.reject();
|
685
684
|
}
|
686
685
|
} else if (error instanceof _internalMediaCore.Errors.SdpError) {
|
687
686
|
// this covers also the case of Errors.IceGatheringError which extends Errors.SdpError
|
@@ -808,8 +807,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
808
807
|
}
|
809
808
|
}), {
|
810
809
|
logText: "".concat(LOG_HEADER, " Roap Offer")
|
811
|
-
}).catch(function (
|
812
|
-
var error = _util2.default.markErrorAsHandledBySdk(originalError);
|
810
|
+
}).catch(function (error) {
|
813
811
|
var multistreamNotSupported = error instanceof _multistreamNotSupportedError.default;
|
814
812
|
|
815
813
|
// @ts-ignore
|
@@ -2305,6 +2303,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
2305
2303
|
*/
|
2306
2304
|
(0, _classPrivateFieldSet2.default)((0, _assertThisInitialized2.default)(_this), _isoLocalClientMeetingJoinTime, undefined);
|
2307
2305
|
|
2306
|
+
// We clear the error cache of CA events on every new meeting instance
|
2307
|
+
// @ts-ignore - Fix type
|
2308
|
+
_this.webex.internal.newMetrics.callDiagnosticMetrics.clearErrorCache();
|
2309
|
+
|
2308
2310
|
/**
|
2309
2311
|
* IP Address of the remote media server
|
2310
2312
|
* @instance
|
@@ -6288,10 +6290,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6288
6290
|
file: 'meeting/index',
|
6289
6291
|
function: 'join'
|
6290
6292
|
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this36);
|
6291
|
-
|
6292
|
-
joinFailed(proxyError);
|
6293
|
+
joinFailed(error);
|
6293
6294
|
_this36.deferJoin = undefined;
|
6294
|
-
return _promise.default.reject(
|
6295
|
+
return _promise.default.reject(error);
|
6295
6296
|
}).then(function (join) {
|
6296
6297
|
// @ts-ignore - config coming from registerPlugin
|
6297
6298
|
if (_this36.config.enableAutomaticLLM) {
|
@@ -6876,7 +6877,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6876
6877
|
key: "waitForMediaConnectionConnected",
|
6877
6878
|
value: (function () {
|
6878
6879
|
var _waitForMediaConnectionConnected = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24() {
|
6879
|
-
var iceConnected,
|
6880
|
+
var iceConnected, _this$mediaProperties8, _this$mediaProperties9, _this$mediaProperties10, _this$mediaProperties11, _this$mediaProperties12, _this$mediaProperties13, _this$mediaProperties14;
|
6880
6881
|
return _regenerator.default.wrap(function _callee24$(_context24) {
|
6881
6882
|
while (1) switch (_context24.prev = _context24.next) {
|
6882
6883
|
case 0:
|
@@ -6884,61 +6885,59 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6884
6885
|
_context24.next = 3;
|
6885
6886
|
return this.mediaProperties.waitForMediaConnectionConnected();
|
6886
6887
|
case 3:
|
6887
|
-
_context24.next =
|
6888
|
+
_context24.next = 30;
|
6888
6889
|
break;
|
6889
6890
|
case 5:
|
6890
6891
|
_context24.prev = 5;
|
6891
6892
|
_context24.t0 = _context24["catch"](0);
|
6892
6893
|
iceConnected = _context24.t0.iceConnected;
|
6893
|
-
handledBySdk = false;
|
6894
6894
|
if (this.hasMediaConnectionConnectedAtLeastOnce) {
|
6895
|
-
_context24.next =
|
6895
|
+
_context24.next = 29;
|
6896
6896
|
break;
|
6897
6897
|
}
|
6898
|
-
_context24.t1 = this.webex.internal.newMetrics
|
6899
|
-
_context24.t2 =
|
6900
|
-
_context24.t3 =
|
6901
|
-
_context24.t4 =
|
6902
|
-
_context24.t5 =
|
6903
|
-
_context24.
|
6898
|
+
_context24.t1 = this.webex.internal.newMetrics;
|
6899
|
+
_context24.t2 = !this.turnServerUsed;
|
6900
|
+
_context24.t3 = this.addMediaData.icePhaseCallback();
|
6901
|
+
_context24.t4 = this.webex.internal.newMetrics.callDiagnosticMetrics;
|
6902
|
+
_context24.t5 = _internalPluginMetrics.CallDiagnosticUtils;
|
6903
|
+
_context24.t6 = ((_this$mediaProperties8 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties8 === void 0 ? void 0 : (_this$mediaProperties9 = _this$mediaProperties8.multistreamConnection) === null || _this$mediaProperties9 === void 0 ? void 0 : (_this$mediaProperties10 = _this$mediaProperties9.pc) === null || _this$mediaProperties10 === void 0 ? void 0 : (_this$mediaProperties11 = _this$mediaProperties10.pc) === null || _this$mediaProperties11 === void 0 ? void 0 : _this$mediaProperties11.signalingState) || ((_this$mediaProperties12 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties12 === void 0 ? void 0 : (_this$mediaProperties13 = _this$mediaProperties12.mediaConnection) === null || _this$mediaProperties13 === void 0 ? void 0 : (_this$mediaProperties14 = _this$mediaProperties13.pc) === null || _this$mediaProperties14 === void 0 ? void 0 : _this$mediaProperties14.signalingState) || 'unknown';
|
6904
|
+
_context24.t7 = iceConnected;
|
6905
|
+
_context24.t8 = this.turnServerUsed;
|
6906
|
+
_context24.next = 19;
|
6904
6907
|
return this.webex.meetings.reachability.isWebexMediaBackendUnreachable().catch(function () {
|
6905
6908
|
return false;
|
6906
6909
|
});
|
6907
|
-
case
|
6908
|
-
_context24.
|
6909
|
-
_context24.
|
6910
|
-
signalingState: _context24.
|
6911
|
-
iceConnected: _context24.
|
6912
|
-
turnServerUsed: _context24.
|
6913
|
-
unreachable: _context24.
|
6910
|
+
case 19:
|
6911
|
+
_context24.t9 = _context24.sent;
|
6912
|
+
_context24.t10 = {
|
6913
|
+
signalingState: _context24.t6,
|
6914
|
+
iceConnected: _context24.t7,
|
6915
|
+
turnServerUsed: _context24.t8,
|
6916
|
+
unreachable: _context24.t9
|
6914
6917
|
};
|
6915
|
-
_context24.
|
6916
|
-
_context24.
|
6917
|
-
clientErrorCode: _context24.
|
6918
|
+
_context24.t11 = _context24.t5.generateClientErrorCodeForIceFailure.call(_context24.t5, _context24.t10);
|
6919
|
+
_context24.t12 = {
|
6920
|
+
clientErrorCode: _context24.t11
|
6918
6921
|
};
|
6919
|
-
|
6920
|
-
|
6921
|
-
|
6922
|
-
|
6922
|
+
_context24.t13 = _context24.t4.getErrorPayloadForClientErrorCode.call(_context24.t4, _context24.t12);
|
6923
|
+
_context24.t14 = [_context24.t13];
|
6924
|
+
_context24.t15 = {
|
6925
|
+
canProceed: _context24.t2,
|
6926
|
+
icePhase: _context24.t3,
|
6927
|
+
errors: _context24.t14
|
6928
|
+
};
|
6929
|
+
_context24.t16 = {
|
6930
|
+
meetingId: this.id
|
6931
|
+
};
|
6932
|
+
_context24.t17 = {
|
6923
6933
|
name: 'client.ice.end',
|
6924
|
-
payload:
|
6925
|
-
|
6926
|
-
|
6927
|
-
|
6928
|
-
|
6929
|
-
|
6930
|
-
|
6931
|
-
meetingId: this.id
|
6932
|
-
}
|
6933
|
-
});
|
6934
|
-
handledBySdk = true;
|
6935
|
-
case 24:
|
6936
|
-
timedOutError = new Error("Timed out waiting for media connection to be connected, correlationId=".concat(this.correlationId));
|
6937
|
-
if (handledBySdk) {
|
6938
|
-
timedOutError = _util2.default.markErrorAsHandledBySdk(timedOutError);
|
6939
|
-
}
|
6940
|
-
throw timedOutError;
|
6941
|
-
case 27:
|
6934
|
+
payload: _context24.t15,
|
6935
|
+
options: _context24.t16
|
6936
|
+
};
|
6937
|
+
_context24.t1.submitClientEvent.call(_context24.t1, _context24.t17);
|
6938
|
+
case 29:
|
6939
|
+
throw new Error("Timed out waiting for media connection to be connected, correlationId=".concat(this.correlationId));
|
6940
|
+
case 30:
|
6942
6941
|
case "end":
|
6943
6942
|
return _context24.stop();
|
6944
6943
|
}
|
@@ -7007,9 +7006,6 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7007
7006
|
deferSDPAnswer = this.deferSDPAnswer;
|
7008
7007
|
this.sdpResponseTimer = setTimeout(function () {
|
7009
7008
|
_loggerProxy.default.logger.warn("".concat(LOG_HEADER, " timeout! no REMOTE SDP ANSWER received within ").concat(_constants.ROAP_OFFER_ANSWER_EXCHANGE_TIMEOUT / 1000, " seconds"));
|
7010
|
-
var timeoutError = new Error('Timeout waiting for SDP answer');
|
7011
|
-
var timeoutErrorProxy = _util2.default.markErrorAsHandledBySdk(timeoutError);
|
7012
|
-
|
7013
7009
|
// @ts-ignore
|
7014
7010
|
_this43.webex.internal.newMetrics.submitClientEvent({
|
7015
7011
|
name: 'client.media-engine.remote-sdp-received',
|
@@ -7023,7 +7019,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7023
7019
|
},
|
7024
7020
|
options: {
|
7025
7021
|
meetingId: _this43.id,
|
7026
|
-
rawError:
|
7022
|
+
rawError: new Error('Timeout waiting for SDP answer')
|
7027
7023
|
}
|
7028
7024
|
});
|
7029
7025
|
deferSDPAnswer.reject(new Error('Timed out waiting for REMOTE SDP ANSWER'));
|
@@ -7149,7 +7145,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7149
7145
|
key: "handleWaitForMediaConnectionConnectedError",
|
7150
7146
|
value: (function () {
|
7151
7147
|
var _handleWaitForMediaConnectionConnectedError = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee28(error, remoteMediaManagerConfig, bundlePolicy) {
|
7152
|
-
var LOG_HEADER
|
7148
|
+
var LOG_HEADER;
|
7153
7149
|
return _regenerator.default.wrap(function _callee28$(_context28) {
|
7154
7150
|
while (1) switch (_context28.prev = _context28.next) {
|
7155
7151
|
case 0:
|
@@ -7162,16 +7158,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7162
7158
|
_context28.next = 5;
|
7163
7159
|
return this.retryWithForcedTurnDiscovery(remoteMediaManagerConfig, bundlePolicy);
|
7164
7160
|
case 5:
|
7165
|
-
_context28.next =
|
7161
|
+
_context28.next = 9;
|
7166
7162
|
break;
|
7167
7163
|
case 7:
|
7168
7164
|
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " error waiting for media to connect using UDP, TCP and TURN-TLS"), error);
|
7169
|
-
|
7170
|
-
|
7171
|
-
addMediaFailedError = _util2.default.markErrorAsHandledBySdk(addMediaFailedError);
|
7172
|
-
}
|
7173
|
-
throw addMediaFailedError;
|
7174
|
-
case 11:
|
7165
|
+
throw new _webexErrors.AddMediaFailed();
|
7166
|
+
case 9:
|
7175
7167
|
case "end":
|
7176
7168
|
return _context28.stop();
|
7177
7169
|
}
|