@webex/plugin-meetings 2.33.1 → 2.34.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.
- package/dist/meeting/index.js +13 -3
- package/dist/meeting/index.js.map +1 -1
- package/dist/roap/turnDiscovery.js +16 -4
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/package.json +17 -17
- package/src/meeting/index.js +15 -3
- package/src/roap/turnDiscovery.ts +4 -4
- package/test/unit/spec/meeting/index.js +56 -4
- package/test/unit/spec/roap/turnDiscovery.ts +36 -20
package/dist/meeting/index.js
CHANGED
|
@@ -4539,6 +4539,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4539
4539
|
|
|
4540
4540
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4541
4541
|
var LOG_HEADER = 'Meeting:index#addMedia -->';
|
|
4542
|
+
var turnDiscoverySkippedReason;
|
|
4543
|
+
var turnServerUsed = false;
|
|
4542
4544
|
|
|
4543
4545
|
if (this.meetingState !== _constants.FULL_STATE.ACTIVE) {
|
|
4544
4546
|
return _promise.default.reject(new _webexErrors.MeetingNotActiveError());
|
|
@@ -4584,7 +4586,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4584
4586
|
|
|
4585
4587
|
return _util.default.validateOptions(options).then(function () {
|
|
4586
4588
|
return _this38.roap.doTurnDiscovery(_this38, false);
|
|
4587
|
-
}).then(function (
|
|
4589
|
+
}).then(function (turnDiscoveryObject) {
|
|
4590
|
+
turnDiscoverySkippedReason = turnDiscoveryObject.turnDiscoverySkippedReason;
|
|
4591
|
+
turnServerUsed = !turnDiscoverySkippedReason;
|
|
4592
|
+
var turnServerInfo = turnDiscoveryObject.turnServerInfo;
|
|
4593
|
+
|
|
4588
4594
|
_this38.mediaProperties.setMediaPeerConnection(_util2.default.createPeerConnection(turnServerInfo));
|
|
4589
4595
|
|
|
4590
4596
|
_this38.setMercuryListener();
|
|
@@ -4628,7 +4634,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4628
4634
|
correlation_id: _this38.correlationId,
|
|
4629
4635
|
locus_id: _this38.locusUrl.split('/').pop(),
|
|
4630
4636
|
reason: error.message,
|
|
4631
|
-
stack: error.stack
|
|
4637
|
+
stack: error.stack,
|
|
4638
|
+
turnDiscoverySkippedReason: turnDiscoverySkippedReason,
|
|
4639
|
+
turnServerUsed: turnServerUsed
|
|
4632
4640
|
});
|
|
4633
4641
|
|
|
4634
4642
|
throw error;
|
|
@@ -4731,7 +4739,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4731
4739
|
locus_id: _this38.locusUrl.split('/').pop(),
|
|
4732
4740
|
reason: error.message,
|
|
4733
4741
|
stack: error.stack,
|
|
4734
|
-
code: error.code
|
|
4742
|
+
code: error.code,
|
|
4743
|
+
turnDiscoverySkippedReason: turnDiscoverySkippedReason,
|
|
4744
|
+
turnServerUsed: turnServerUsed
|
|
4735
4745
|
}); // Upload logs on error while adding media
|
|
4736
4746
|
|
|
4737
4747
|
|