@webex/plugin-meetings 3.8.0-next.54 → 3.8.0-next.56
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/common/errors/webex-errors.js +12 -2
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meeting/index.js +85 -42
- package/dist/meeting/index.js.map +1 -1
- package/dist/types/common/errors/webex-errors.d.ts +7 -1
- package/dist/types/meeting/index.d.ts +6 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +3 -3
- package/src/common/errors/webex-errors.ts +8 -1
- package/src/meeting/index.ts +60 -19
- package/test/unit/spec/meeting/index.js +137 -12
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.56"
|
1050
1050
|
});
|
1051
1051
|
var _default = exports.default = Breakouts;
|
1052
1052
|
//# sourceMappingURL=index.js.map
|
@@ -8,6 +8,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
});
|
9
9
|
exports.UserNotJoinedError = exports.UserInLobbyError = exports.SpaceIDDeprecatedError = exports.NoMediaEstablishedYetError = exports.MeetingNotActiveError = exports.IceGatheringFailed = exports.AddMediaFailed = void 0;
|
10
10
|
exports.createMeetingsError = createMeetingsError;
|
11
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/assertThisInitialized"));
|
11
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
12
13
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
13
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
|
@@ -159,13 +160,22 @@ WebExMeetingsErrors[IceGatheringFailed.CODE] = IceGatheringFailed;
|
|
159
160
|
* @extends WebexMeetingsError
|
160
161
|
* @property {number} code - 30203
|
161
162
|
* @property {string} message - 'Failed to add media'
|
163
|
+
* @property {Error} [cause] - The underlying error that caused the failure
|
162
164
|
*/
|
163
165
|
var AddMediaFailed = exports.AddMediaFailed = /*#__PURE__*/function (_WebexMeetingsError7) {
|
164
166
|
(0, _inherits2.default)(AddMediaFailed, _WebexMeetingsError7);
|
165
167
|
var _super7 = _createSuper(AddMediaFailed);
|
166
|
-
|
168
|
+
/**
|
169
|
+
* Creates a new AddMediaFailed error
|
170
|
+
* @param {Error} [cause] - The underlying error that caused the media addition to fail
|
171
|
+
*/
|
172
|
+
function AddMediaFailed(cause) {
|
173
|
+
var _this;
|
167
174
|
(0, _classCallCheck2.default)(this, AddMediaFailed);
|
168
|
-
|
175
|
+
_this = _super7.call(this, AddMediaFailed.CODE, 'Failed to add media');
|
176
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "cause", void 0);
|
177
|
+
_this.cause = cause;
|
178
|
+
return _this;
|
169
179
|
}
|
170
180
|
return (0, _createClass2.default)(AddMediaFailed);
|
171
181
|
}(_webexMeetingsError.default);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_webexMeetingsError","_interopRequireDefault","require","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","default","result","NewTarget","constructor","_Reflect$construct","arguments","apply","_possibleConstructorReturn2","Reflect","sham","Proxy","Boolean","prototype","valueOf","call","e","WebExMeetingsErrors","createMeetingsError","code","message","WebexMeetingsError","MeetingNotActiveError","exports","_WebexMeetingsError","_inherits2","_super","_classCallCheck2","CODE","_createClass2","_defineProperty2","UserNotJoinedError","_WebexMeetingsError2","_super2","NoMediaEstablishedYetError","_WebexMeetingsError3","_super3","UserInLobbyError","_WebexMeetingsError4","_super4","SpaceIDDeprecatedError","_WebexMeetingsError5","_super5","IceGatheringFailed","_WebexMeetingsError6","_super6","AddMediaFailed","_WebexMeetingsError7","_super7"],"sources":["webex-errors.ts"],"sourcesContent":["// The document would auto generate the doc for errors\n\n// 1) Error codes for Oauth, login, mercury should be separated out (Code range)\n// 2) Errors from the actual locus server or other server in case, we can use the same error code as locus and redirect it\n// 3) Any errors we generate from the SDK can be split into various categories\n// Parameter validation, user action, connection, media specific(They can have different range)\n\n// TODO: all the errors from the server need to be captured\n\n// add a way to log and send metrics if needed\nimport WebexMeetingsError from './webex-meetings-error';\n\nconst WebExMeetingsErrors = {};\n\n/**\n * Create a {@link WebexMeetingsError} for a given code and message.\n * @private\n * @param {number} [code] - Error code\n * @param {string} [message] - Error message\n * @returns {WebexMeetingsError}\n */\nexport function createMeetingsError(code?: number, message?: string) {\n code = typeof code === 'number' ? code : 0;\n message = typeof message === 'string' && message ? message : 'Unknown error';\n\n return WebExMeetingsErrors[code]\n ? new WebExMeetingsErrors[code]()\n : new WebexMeetingsError(code, message);\n}\n\n/**\n * @class MeetingNotActiveError\n * @classdesc Raised whenever Meeting has already ended and user tries to do a action.\n * @extends WebexMeetingsError\n * @property {number} code - 30101\n * @property {string} message - 'Meeting has already Ended or not Active'\n */\nclass MeetingNotActiveError extends WebexMeetingsError {\n static CODE = 30101;\n\n constructor() {\n super(MeetingNotActiveError.CODE, 'Meeting has already Ended or not Active');\n }\n}\n\nexport {MeetingNotActiveError};\nWebExMeetingsErrors[MeetingNotActiveError.CODE] = MeetingNotActiveError;\n\n/**\n * @class UserNotJoinedError\n * @classdesc Raised whenever the user has already left the meeting and user tries to do a action.\n * @extends WebexMeetingsError\n * @property {number} code - 30102\n * @property {string} message - 'User has already left the meeting'\n */\nclass UserNotJoinedError extends WebexMeetingsError {\n static CODE = 30102;\n\n constructor() {\n super(\n UserNotJoinedError.CODE,\n 'User currently not in meeting. Please join a meeting before adding media.'\n );\n }\n}\n\nexport {UserNotJoinedError};\nWebExMeetingsErrors[UserNotJoinedError.CODE] = UserNotJoinedError;\n\n/**\n * @class NoMediaEstablishedYetError\n * @classdesc Raised whenever the user has not established media yet.\n * @extends WebexMeetingsError\n * @property {number} code - 30103\n * @property {string} message - error message\n */\nclass NoMediaEstablishedYetError extends WebexMeetingsError {\n static CODE = 30103;\n\n // eslint-disable-next-line require-jsdoc\n constructor() {\n super(\n NoMediaEstablishedYetError.CODE,\n 'Webrtc media connection is missing, call addMedia() first'\n );\n }\n}\n\nexport {NoMediaEstablishedYetError};\nWebExMeetingsErrors[NoMediaEstablishedYetError.CODE] = NoMediaEstablishedYetError;\n\n/**\n * @class UserInLobbyError\n * @classdesc Raised whenever the user is in lobby and not joined yet.\n * @extends WebexMeetingsError\n * @property {number} code - 30104\n * @property {string} message - 'user is still in the lobby or not joined'\n */\nclass UserInLobbyError extends WebexMeetingsError {\n static CODE = 30104;\n\n constructor() {\n super(UserInLobbyError.CODE, 'user is still in the lobby or not joined');\n }\n}\n\nexport {UserInLobbyError};\nWebExMeetingsErrors[UserInLobbyError.CODE] = UserInLobbyError;\n\n/**\n * @class SpaceIDDeprecatedError\n * @classdesc Raised whenever the user passes Space ID as destination for create meeting.\n * @extends WebexMeetingsError\n * @property {number} code - 30105\n * @property {string} message - Using the space ID as a destination is no longer supported. Please refer to the [migration guide](https://github.com/webex/webex-js-sdk/wiki/Migration-to-Unified-Space-Meetings) to migrate to use the meeting ID or SIP address.'\n */\nclass SpaceIDDeprecatedError extends WebexMeetingsError {\n static CODE = 30105;\n\n constructor() {\n super(\n SpaceIDDeprecatedError.CODE,\n 'Using the space ID as a destination is no longer supported. Please refer to the [migration guide](https://github.com/webex/webex-js-sdk/wiki/Migration-to-Unified-Space-Meetings) to migrate to use the meeting ID or SIP address.'\n );\n }\n}\n\nexport {SpaceIDDeprecatedError};\nWebExMeetingsErrors[SpaceIDDeprecatedError.CODE] = SpaceIDDeprecatedError;\n\n/**\n * @class IceGatheringFailed\n * @classdesc Raised whenever ice gathering fails.\n * @extends WebexMeetingsError\n * @property {number} code - 30202\n * @property {string} message - 'user failed ice gathering check network/firewall'\n */\nclass IceGatheringFailed extends WebexMeetingsError {\n static CODE = 30202;\n\n constructor() {\n super(IceGatheringFailed.CODE, 'iceConnection: gethering ice candidate failed');\n }\n}\n\nexport {IceGatheringFailed};\nWebExMeetingsErrors[IceGatheringFailed.CODE] = IceGatheringFailed;\n\n/**\n * @class AddMediaFailed\n * @classdesc Raised whenever we fail to successfully add media to a meeting\n * @extends WebexMeetingsError\n * @property {number} code - 30203\n * @property {string} message - 'Failed to add media'\n */\nclass AddMediaFailed extends WebexMeetingsError {\n static CODE = 30203;\n\n constructor() {\n super(AddMediaFailed.CODE, 'Failed to add media');\n }\n}\nexport {AddMediaFailed};\nWebExMeetingsErrors[AddMediaFailed.CODE] = AddMediaFailed;\n"],"mappings":";;;;;;;;;;;;;;;;AAUA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAwD,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,CAAAC,OAAA,EAAAN,OAAA,GAAAO,MAAA,MAAAN,yBAAA,QAAAO,SAAA,OAAAH,gBAAA,CAAAC,OAAA,QAAAG,WAAA,EAAAF,MAAA,GAAAG,kBAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAH,SAAA,YAAAD,MAAA,GAAAH,KAAA,CAAAQ,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,CAAAP,OAAA,QAAAC,MAAA;AAAA,SAAAL,0BAAA,eAAAY,OAAA,qBAAAJ,kBAAA,oBAAAA,kBAAA,CAAAK,IAAA,2BAAAC,KAAA,oCAAAC,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAV,kBAAA,CAAAO,OAAA,8CAAAI,CAAA,sBAVxD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,IAAA,OACN4B,kBAAkB,CAACf,IAAI,EAAE,+CAA+C;EAChF;EAAC,WAAAC,aAAA,CAAA5B,OAAA,EAAA0C,kBAAA;AAAA,EAL8BtB,2BAAkB;AAAA,IAAAS,gBAAA,CAAA7B,OAAA,EAA7C0C,kBAAkB,UACR,KAAK;AAQrB1B,mBAAmB,CAAC0B,kBAAkB,CAACf,IAAI,CAAC,GAAGe,kBAAkB;;AAEjE;AACA;AACA;AACA;AACA;AACA;AACA;AANA,IAOMG,cAAc,GAAAvB,OAAA,CAAAuB,cAAA,0BAAAC,oBAAA;EAAA,IAAAtB,UAAA,CAAAxB,OAAA,EAAA6C,cAAA,EAAAC,oBAAA;EAAA,IAAAC,OAAA,GAAAtD,YAAA,CAAAoD,cAAA;EAGlB,SAAAA,eAAA,EAAc;IAAA,IAAAnB,gBAAA,CAAA1B,OAAA,QAAA6C,cAAA;IAAA,OAAAE,OAAA,CAAAjC,IAAA,OACN+B,cAAc,CAAClB,IAAI,EAAE,qBAAqB;EAClD;EAAC,WAAAC,aAAA,CAAA5B,OAAA,EAAA6C,cAAA;AAAA,EAL0BzB,2BAAkB;AAAA,IAAAS,gBAAA,CAAA7B,OAAA,EAAzC6C,cAAc,UACJ,KAAK;AAOrB7B,mBAAmB,CAAC6B,cAAc,CAAClB,IAAI,CAAC,GAAGkB,cAAc"}
|
1
|
+
{"version":3,"names":["_webexMeetingsError","_interopRequireDefault","require","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","default","result","NewTarget","constructor","_Reflect$construct","arguments","apply","_possibleConstructorReturn2","Reflect","sham","Proxy","Boolean","prototype","valueOf","call","e","WebExMeetingsErrors","createMeetingsError","code","message","WebexMeetingsError","MeetingNotActiveError","exports","_WebexMeetingsError","_inherits2","_super","_classCallCheck2","CODE","_createClass2","_defineProperty2","UserNotJoinedError","_WebexMeetingsError2","_super2","NoMediaEstablishedYetError","_WebexMeetingsError3","_super3","UserInLobbyError","_WebexMeetingsError4","_super4","SpaceIDDeprecatedError","_WebexMeetingsError5","_super5","IceGatheringFailed","_WebexMeetingsError6","_super6","AddMediaFailed","_WebexMeetingsError7","_super7","cause","_this","_assertThisInitialized2"],"sources":["webex-errors.ts"],"sourcesContent":["// The document would auto generate the doc for errors\n\n// 1) Error codes for Oauth, login, mercury should be separated out (Code range)\n// 2) Errors from the actual locus server or other server in case, we can use the same error code as locus and redirect it\n// 3) Any errors we generate from the SDK can be split into various categories\n// Parameter validation, user action, connection, media specific(They can have different range)\n\n// TODO: all the errors from the server need to be captured\n\n// add a way to log and send metrics if needed\nimport WebexMeetingsError from './webex-meetings-error';\n\nconst WebExMeetingsErrors = {};\n\n/**\n * Create a {@link WebexMeetingsError} for a given code and message.\n * @private\n * @param {number} [code] - Error code\n * @param {string} [message] - Error message\n * @returns {WebexMeetingsError}\n */\nexport function createMeetingsError(code?: number, message?: string) {\n code = typeof code === 'number' ? code : 0;\n message = typeof message === 'string' && message ? message : 'Unknown error';\n\n return WebExMeetingsErrors[code]\n ? new WebExMeetingsErrors[code]()\n : new WebexMeetingsError(code, message);\n}\n\n/**\n * @class MeetingNotActiveError\n * @classdesc Raised whenever Meeting has already ended and user tries to do a action.\n * @extends WebexMeetingsError\n * @property {number} code - 30101\n * @property {string} message - 'Meeting has already Ended or not Active'\n */\nclass MeetingNotActiveError extends WebexMeetingsError {\n static CODE = 30101;\n\n constructor() {\n super(MeetingNotActiveError.CODE, 'Meeting has already Ended or not Active');\n }\n}\n\nexport {MeetingNotActiveError};\nWebExMeetingsErrors[MeetingNotActiveError.CODE] = MeetingNotActiveError;\n\n/**\n * @class UserNotJoinedError\n * @classdesc Raised whenever the user has already left the meeting and user tries to do a action.\n * @extends WebexMeetingsError\n * @property {number} code - 30102\n * @property {string} message - 'User has already left the meeting'\n */\nclass UserNotJoinedError extends WebexMeetingsError {\n static CODE = 30102;\n\n constructor() {\n super(\n UserNotJoinedError.CODE,\n 'User currently not in meeting. Please join a meeting before adding media.'\n );\n }\n}\n\nexport {UserNotJoinedError};\nWebExMeetingsErrors[UserNotJoinedError.CODE] = UserNotJoinedError;\n\n/**\n * @class NoMediaEstablishedYetError\n * @classdesc Raised whenever the user has not established media yet.\n * @extends WebexMeetingsError\n * @property {number} code - 30103\n * @property {string} message - error message\n */\nclass NoMediaEstablishedYetError extends WebexMeetingsError {\n static CODE = 30103;\n\n // eslint-disable-next-line require-jsdoc\n constructor() {\n super(\n NoMediaEstablishedYetError.CODE,\n 'Webrtc media connection is missing, call addMedia() first'\n );\n }\n}\n\nexport {NoMediaEstablishedYetError};\nWebExMeetingsErrors[NoMediaEstablishedYetError.CODE] = NoMediaEstablishedYetError;\n\n/**\n * @class UserInLobbyError\n * @classdesc Raised whenever the user is in lobby and not joined yet.\n * @extends WebexMeetingsError\n * @property {number} code - 30104\n * @property {string} message - 'user is still in the lobby or not joined'\n */\nclass UserInLobbyError extends WebexMeetingsError {\n static CODE = 30104;\n\n constructor() {\n super(UserInLobbyError.CODE, 'user is still in the lobby or not joined');\n }\n}\n\nexport {UserInLobbyError};\nWebExMeetingsErrors[UserInLobbyError.CODE] = UserInLobbyError;\n\n/**\n * @class SpaceIDDeprecatedError\n * @classdesc Raised whenever the user passes Space ID as destination for create meeting.\n * @extends WebexMeetingsError\n * @property {number} code - 30105\n * @property {string} message - Using the space ID as a destination is no longer supported. Please refer to the [migration guide](https://github.com/webex/webex-js-sdk/wiki/Migration-to-Unified-Space-Meetings) to migrate to use the meeting ID or SIP address.'\n */\nclass SpaceIDDeprecatedError extends WebexMeetingsError {\n static CODE = 30105;\n\n constructor() {\n super(\n SpaceIDDeprecatedError.CODE,\n 'Using the space ID as a destination is no longer supported. Please refer to the [migration guide](https://github.com/webex/webex-js-sdk/wiki/Migration-to-Unified-Space-Meetings) to migrate to use the meeting ID or SIP address.'\n );\n }\n}\n\nexport {SpaceIDDeprecatedError};\nWebExMeetingsErrors[SpaceIDDeprecatedError.CODE] = SpaceIDDeprecatedError;\n\n/**\n * @class IceGatheringFailed\n * @classdesc Raised whenever ice gathering fails.\n * @extends WebexMeetingsError\n * @property {number} code - 30202\n * @property {string} message - 'user failed ice gathering check network/firewall'\n */\nclass IceGatheringFailed extends WebexMeetingsError {\n static CODE = 30202;\n\n constructor() {\n super(IceGatheringFailed.CODE, 'iceConnection: gethering ice candidate failed');\n }\n}\n\nexport {IceGatheringFailed};\nWebExMeetingsErrors[IceGatheringFailed.CODE] = IceGatheringFailed;\n\n/**\n * @class AddMediaFailed\n * @classdesc Raised whenever we fail to successfully add media to a meeting\n * @extends WebexMeetingsError\n * @property {number} code - 30203\n * @property {string} message - 'Failed to add media'\n * @property {Error} [cause] - The underlying error that caused the failure\n */\nclass AddMediaFailed extends WebexMeetingsError {\n static CODE = 30203;\n cause?: Error;\n\n /**\n * Creates a new AddMediaFailed error\n * @param {Error} [cause] - The underlying error that caused the media addition to fail\n */\n constructor(cause?: Error) {\n super(AddMediaFailed.CODE, 'Failed to add media');\n this.cause = cause;\n }\n}\nexport {AddMediaFailed};\nWebExMeetingsErrors[AddMediaFailed.CODE] = AddMediaFailed;\n"],"mappings":";;;;;;;;;;;;;;;;;AAUA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAwD,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,CAAAC,OAAA,EAAAN,OAAA,GAAAO,MAAA,MAAAN,yBAAA,QAAAO,SAAA,OAAAH,gBAAA,CAAAC,OAAA,QAAAG,WAAA,EAAAF,MAAA,GAAAG,kBAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAH,SAAA,YAAAD,MAAA,GAAAH,KAAA,CAAAQ,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,CAAAP,OAAA,QAAAC,MAAA;AAAA,SAAAL,0BAAA,eAAAY,OAAA,qBAAAJ,kBAAA,oBAAAA,kBAAA,CAAAK,IAAA,2BAAAC,KAAA,oCAAAC,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|
-
version: "3.8.0-next.
|
376
|
+
version: "3.8.0-next.56"
|
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.56"
|
22
22
|
});
|
23
23
|
var _default = exports.default = SILanguage;
|
24
24
|
//# sourceMappingURL=siLanguage.js.map
|
package/dist/meeting/index.js
CHANGED
@@ -6877,7 +6877,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6877
6877
|
key: "waitForMediaConnectionConnected",
|
6878
6878
|
value: (function () {
|
6879
6879
|
var _waitForMediaConnectionConnected = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24() {
|
6880
|
-
var iceConnected, _this$mediaProperties8, _this$mediaProperties9, _this$mediaProperties10, _this$mediaProperties11, _this$mediaProperties12, _this$mediaProperties13, _this$mediaProperties14;
|
6880
|
+
var iceConnected, _this$mediaProperties8, _this$mediaProperties9, _this$mediaProperties10, _this$mediaProperties11, _this$mediaProperties12, _this$mediaProperties13, _this$mediaProperties14, timedOutError;
|
6881
6881
|
return _regenerator.default.wrap(function _callee24$(_context24) {
|
6882
6882
|
while (1) switch (_context24.prev = _context24.next) {
|
6883
6883
|
case 0:
|
@@ -6885,7 +6885,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6885
6885
|
_context24.next = 3;
|
6886
6886
|
return this.mediaProperties.waitForMediaConnectionConnected();
|
6887
6887
|
case 3:
|
6888
|
-
_context24.next =
|
6888
|
+
_context24.next = 32;
|
6889
6889
|
break;
|
6890
6890
|
case 5:
|
6891
6891
|
_context24.prev = 5;
|
@@ -6927,7 +6927,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6927
6927
|
errors: _context24.t14
|
6928
6928
|
};
|
6929
6929
|
_context24.t16 = {
|
6930
|
-
meetingId: this.id
|
6930
|
+
meetingId: this.id,
|
6931
|
+
rawError: _context24.t0
|
6931
6932
|
};
|
6932
6933
|
_context24.t17 = {
|
6933
6934
|
name: 'client.ice.end',
|
@@ -6936,8 +6937,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6936
6937
|
};
|
6937
6938
|
_context24.t1.submitClientEvent.call(_context24.t1, _context24.t17);
|
6938
6939
|
case 29:
|
6939
|
-
|
6940
|
-
|
6940
|
+
timedOutError = new Error("Timed out waiting for media connection to be connected, correlationId=".concat(this.correlationId));
|
6941
|
+
timedOutError.cause = _context24.t0;
|
6942
|
+
throw timedOutError;
|
6943
|
+
case 32:
|
6941
6944
|
case "end":
|
6942
6945
|
return _context24.stop();
|
6943
6946
|
}
|
@@ -7006,6 +7009,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7006
7009
|
deferSDPAnswer = this.deferSDPAnswer;
|
7007
7010
|
this.sdpResponseTimer = setTimeout(function () {
|
7008
7011
|
_loggerProxy.default.logger.warn("".concat(LOG_HEADER, " timeout! no REMOTE SDP ANSWER received within ").concat(_constants.ROAP_OFFER_ANSWER_EXCHANGE_TIMEOUT / 1000, " seconds"));
|
7012
|
+
var error = new Error('Timed out waiting for REMOTE SDP ANSWER');
|
7013
|
+
|
7009
7014
|
// @ts-ignore
|
7010
7015
|
_this43.webex.internal.newMetrics.submitClientEvent({
|
7011
7016
|
name: 'client.media-engine.remote-sdp-received',
|
@@ -7019,10 +7024,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7019
7024
|
},
|
7020
7025
|
options: {
|
7021
7026
|
meetingId: _this43.id,
|
7022
|
-
rawError:
|
7027
|
+
rawError: error
|
7023
7028
|
}
|
7024
7029
|
});
|
7025
|
-
deferSDPAnswer.reject(
|
7030
|
+
deferSDPAnswer.reject(error);
|
7026
7031
|
}, _constants.ROAP_OFFER_ANSWER_EXCHANGE_TIMEOUT);
|
7027
7032
|
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " waiting for REMOTE SDP ANSWER..."));
|
7028
7033
|
return _context25.abrupt("return", deferSDPAnswer.promise);
|
@@ -7162,7 +7167,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7162
7167
|
break;
|
7163
7168
|
case 7:
|
7164
7169
|
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " error waiting for media to connect using UDP, TCP and TURN-TLS"), error);
|
7165
|
-
throw new _webexErrors.AddMediaFailed();
|
7170
|
+
throw new _webexErrors.AddMediaFailed(error);
|
7166
7171
|
case 9:
|
7167
7172
|
case "end":
|
7168
7173
|
return _context28.stop();
|
@@ -7566,9 +7571,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7566
7571
|
connectionType,
|
7567
7572
|
selectedCandidatePairChanges,
|
7568
7573
|
numTransports,
|
7569
|
-
reachabilityStats,
|
7570
7574
|
iceCandidateErrors,
|
7571
|
-
|
7575
|
+
reachabilityMetrics,
|
7572
7576
|
_this$mediaProperties15,
|
7573
7577
|
_this$mediaProperties16,
|
7574
7578
|
_this$mediaProperties17,
|
@@ -7590,12 +7594,11 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7590
7594
|
_this$mediaProperties33,
|
7591
7595
|
_this$mediaProperties34,
|
7592
7596
|
_this$mediaProperties35,
|
7593
|
-
|
7597
|
+
_reachabilityMetrics,
|
7594
7598
|
_yield$this$mediaProp2,
|
7595
7599
|
_selectedCandidatePairChanges,
|
7596
7600
|
_numTransports,
|
7597
7601
|
_iceCandidateErrors,
|
7598
|
-
_isSubnetReachable,
|
7599
7602
|
_args35 = arguments;
|
7600
7603
|
return _regenerator.default.wrap(function _callee35$(_context35) {
|
7601
7604
|
while (1) switch (_context35.prev = _context35.next) {
|
@@ -7714,12 +7717,11 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7714
7717
|
connectionType = _yield$this$mediaProp.connectionType;
|
7715
7718
|
selectedCandidatePairChanges = _yield$this$mediaProp.selectedCandidatePairChanges;
|
7716
7719
|
numTransports = _yield$this$mediaProp.numTransports;
|
7717
|
-
|
7718
|
-
|
7719
|
-
|
7720
|
-
|
7721
|
-
|
7722
|
-
isSubnetReachable = this.webex.meetings.reachability.isSubnetReachable(this.mediaServerIp);
|
7720
|
+
iceCandidateErrors = Object.fromEntries(this.iceCandidateErrors);
|
7721
|
+
_context35.next = 53;
|
7722
|
+
return this.getMediaReachabilityMetricFields();
|
7723
|
+
case 53:
|
7724
|
+
reachabilityMetrics = _context35.sent;
|
7723
7725
|
_metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_SUCCESS, _objectSpread(_objectSpread(_objectSpread({
|
7724
7726
|
correlation_id: this.correlationId,
|
7725
7727
|
locus_id: this.locusUrl.split('/').pop(),
|
@@ -7728,9 +7730,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7728
7730
|
numTransports: numTransports,
|
7729
7731
|
isMultistream: this.isMultistream,
|
7730
7732
|
retriedWithTurnServer: this.addMediaData.retriedWithTurnServer,
|
7731
|
-
isJoinWithMediaRetry: this.joinWithMediaRetryInfo.isRetry
|
7732
|
-
|
7733
|
-
}, reachabilityStats), iceCandidateErrors), {}, {
|
7733
|
+
isJoinWithMediaRetry: this.joinWithMediaRetryInfo.isRetry
|
7734
|
+
}, reachabilityMetrics), iceCandidateErrors), {}, {
|
7734
7735
|
iceCandidatesCount: this.iceCandidatesCount
|
7735
7736
|
}));
|
7736
7737
|
// @ts-ignore
|
@@ -7745,26 +7746,25 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7745
7746
|
// We can log ReceiveSlot SSRCs only after the SDP exchange, so doing it here:
|
7746
7747
|
(_this$remoteMediaMana = this.remoteMediaManager) === null || _this$remoteMediaMana === void 0 ? void 0 : _this$remoteMediaMana.logAllReceiveSlots();
|
7747
7748
|
this.startPeriodicLogUpload();
|
7748
|
-
_context35.next =
|
7749
|
+
_context35.next = 79;
|
7749
7750
|
break;
|
7750
|
-
case
|
7751
|
-
_context35.prev =
|
7751
|
+
case 61:
|
7752
|
+
_context35.prev = 61;
|
7752
7753
|
_context35.t1 = _context35["catch"](19);
|
7753
7754
|
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " failed to establish media connection: "), _context35.t1);
|
7754
7755
|
|
7755
7756
|
// @ts-ignore
|
7756
|
-
_context35.next =
|
7757
|
-
return this.
|
7758
|
-
case
|
7759
|
-
|
7760
|
-
_context35.next =
|
7757
|
+
_context35.next = 66;
|
7758
|
+
return this.getMediaReachabilityMetricFields();
|
7759
|
+
case 66:
|
7760
|
+
_reachabilityMetrics = _context35.sent;
|
7761
|
+
_context35.next = 69;
|
7761
7762
|
return this.mediaProperties.getCurrentConnectionInfo();
|
7762
|
-
case
|
7763
|
+
case 69:
|
7763
7764
|
_yield$this$mediaProp2 = _context35.sent;
|
7764
7765
|
_selectedCandidatePairChanges = _yield$this$mediaProp2.selectedCandidatePairChanges;
|
7765
7766
|
_numTransports = _yield$this$mediaProp2.numTransports;
|
7766
|
-
_iceCandidateErrors = Object.fromEntries(this.iceCandidateErrors);
|
7767
|
-
_isSubnetReachable = this.webex.meetings.reachability.isSubnetReachable(this.mediaServerIp);
|
7767
|
+
_iceCandidateErrors = Object.fromEntries(this.iceCandidateErrors);
|
7768
7768
|
_metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_FAILURE, _objectSpread(_objectSpread(_objectSpread({
|
7769
7769
|
correlation_id: this.correlationId,
|
7770
7770
|
locus_id: this.locusUrl.split('/').pop(),
|
@@ -7781,14 +7781,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7781
7781
|
signalingState: ((_this$mediaProperties15 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties15 === void 0 ? void 0 : (_this$mediaProperties16 = _this$mediaProperties15.multistreamConnection) === null || _this$mediaProperties16 === void 0 ? void 0 : (_this$mediaProperties17 = _this$mediaProperties16.pc) === null || _this$mediaProperties17 === void 0 ? void 0 : (_this$mediaProperties18 = _this$mediaProperties17.pc) === null || _this$mediaProperties18 === void 0 ? void 0 : _this$mediaProperties18.signalingState) || ((_this$mediaProperties19 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties19 === void 0 ? void 0 : (_this$mediaProperties20 = _this$mediaProperties19.mediaConnection) === null || _this$mediaProperties20 === void 0 ? void 0 : (_this$mediaProperties21 = _this$mediaProperties20.pc) === null || _this$mediaProperties21 === void 0 ? void 0 : _this$mediaProperties21.signalingState) || 'unknown',
|
7782
7782
|
connectionState: ((_this$mediaProperties22 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties22 === void 0 ? void 0 : (_this$mediaProperties23 = _this$mediaProperties22.multistreamConnection) === null || _this$mediaProperties23 === void 0 ? void 0 : (_this$mediaProperties24 = _this$mediaProperties23.pc) === null || _this$mediaProperties24 === void 0 ? void 0 : (_this$mediaProperties25 = _this$mediaProperties24.pc) === null || _this$mediaProperties25 === void 0 ? void 0 : _this$mediaProperties25.connectionState) || ((_this$mediaProperties26 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties26 === void 0 ? void 0 : (_this$mediaProperties27 = _this$mediaProperties26.mediaConnection) === null || _this$mediaProperties27 === void 0 ? void 0 : (_this$mediaProperties28 = _this$mediaProperties27.pc) === null || _this$mediaProperties28 === void 0 ? void 0 : _this$mediaProperties28.connectionState) || 'unknown',
|
7783
7783
|
iceConnectionState: ((_this$mediaProperties29 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties29 === void 0 ? void 0 : (_this$mediaProperties30 = _this$mediaProperties29.multistreamConnection) === null || _this$mediaProperties30 === void 0 ? void 0 : (_this$mediaProperties31 = _this$mediaProperties30.pc) === null || _this$mediaProperties31 === void 0 ? void 0 : (_this$mediaProperties32 = _this$mediaProperties31.pc) === null || _this$mediaProperties32 === void 0 ? void 0 : _this$mediaProperties32.iceConnectionState) || ((_this$mediaProperties33 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties33 === void 0 ? void 0 : (_this$mediaProperties34 = _this$mediaProperties33.mediaConnection) === null || _this$mediaProperties34 === void 0 ? void 0 : (_this$mediaProperties35 = _this$mediaProperties34.pc) === null || _this$mediaProperties35 === void 0 ? void 0 : _this$mediaProperties35.iceConnectionState) || 'unknown'
|
7784
|
-
},
|
7785
|
-
isSubnetReachable: _isSubnetReachable
|
7786
|
-
}, _iceCandidateErrors), {}, {
|
7784
|
+
}, _reachabilityMetrics), _iceCandidateErrors), {}, {
|
7787
7785
|
iceCandidatesCount: this.iceCandidatesCount
|
7788
7786
|
}));
|
7789
|
-
_context35.next =
|
7787
|
+
_context35.next = 76;
|
7790
7788
|
return this.cleanUpOnAddMediaFailure();
|
7791
|
-
case
|
7789
|
+
case 76:
|
7792
7790
|
// Upload logs on error while adding media
|
7793
7791
|
_triggerProxy.default.trigger(this, {
|
7794
7792
|
file: 'meeting/index',
|
@@ -7800,15 +7798,15 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7800
7798
|
});
|
7801
7799
|
}
|
7802
7800
|
throw _context35.t1;
|
7803
|
-
case
|
7804
|
-
_context35.prev =
|
7801
|
+
case 79:
|
7802
|
+
_context35.prev = 79;
|
7805
7803
|
this.addMediaData.icePhaseCallback = DEFAULT_ICE_PHASE_CALLBACK;
|
7806
|
-
return _context35.finish(
|
7807
|
-
case
|
7804
|
+
return _context35.finish(79);
|
7805
|
+
case 82:
|
7808
7806
|
case "end":
|
7809
7807
|
return _context35.stop();
|
7810
7808
|
}
|
7811
|
-
}, _callee35, this, [[19,
|
7809
|
+
}, _callee35, this, [[19, 61, 79, 82], [24, 29]]);
|
7812
7810
|
}));
|
7813
7811
|
function addMediaInternal(_x33, _x34, _x35) {
|
7814
7812
|
return _addMediaInternal.apply(this, arguments);
|
@@ -9347,6 +9345,51 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
9347
9345
|
}
|
9348
9346
|
return _promise.default.resolve();
|
9349
9347
|
}
|
9348
|
+
|
9349
|
+
/**
|
9350
|
+
* Gets the media reachability metrics
|
9351
|
+
*
|
9352
|
+
* @returns {Promise<MediaReachabilityMetrics>}
|
9353
|
+
*/
|
9354
|
+
}, {
|
9355
|
+
key: "getMediaReachabilityMetricFields",
|
9356
|
+
value: (function () {
|
9357
|
+
var _getMediaReachabilityMetricFields = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee42() {
|
9358
|
+
var reachabilityMetrics, successKeys, totalSuccessCases, isSubnetReachable;
|
9359
|
+
return _regenerator.default.wrap(function _callee42$(_context42) {
|
9360
|
+
while (1) switch (_context42.prev = _context42.next) {
|
9361
|
+
case 0:
|
9362
|
+
_context42.next = 2;
|
9363
|
+
return this.webex.meetings.reachability.getReachabilityMetrics();
|
9364
|
+
case 2:
|
9365
|
+
reachabilityMetrics = _context42.sent;
|
9366
|
+
successKeys = ['reachability_public_udp_success', 'reachability_public_tcp_success', 'reachability_public_xtls_success', 'reachability_vmn_udp_success', 'reachability_vmn_tcp_success', 'reachability_vmn_xtls_success'];
|
9367
|
+
totalSuccessCases = successKeys.reduce(function (total, key) {
|
9368
|
+
var value = reachabilityMetrics[key];
|
9369
|
+
if (typeof value === 'number') {
|
9370
|
+
return total + value;
|
9371
|
+
}
|
9372
|
+
return total;
|
9373
|
+
}, 0);
|
9374
|
+
isSubnetReachable = null;
|
9375
|
+
if (totalSuccessCases > 0) {
|
9376
|
+
// @ts-ignore
|
9377
|
+
isSubnetReachable = this.webex.meetings.reachability.isSubnetReachable(this.mediaServerIp);
|
9378
|
+
}
|
9379
|
+
return _context42.abrupt("return", _objectSpread(_objectSpread({}, reachabilityMetrics), {}, {
|
9380
|
+
isSubnetReachable: isSubnetReachable
|
9381
|
+
}));
|
9382
|
+
case 8:
|
9383
|
+
case "end":
|
9384
|
+
return _context42.stop();
|
9385
|
+
}
|
9386
|
+
}, _callee42, this);
|
9387
|
+
}));
|
9388
|
+
function getMediaReachabilityMetricFields() {
|
9389
|
+
return _getMediaReachabilityMetricFields.apply(this, arguments);
|
9390
|
+
}
|
9391
|
+
return getMediaReachabilityMetricFields;
|
9392
|
+
}())
|
9350
9393
|
}]);
|
9351
9394
|
return Meeting;
|
9352
9395
|
}(_webexCore.StatelessWebexPlugin);
|