@webex/plugin-meetings 3.8.1-next.41 → 3.8.1-next.43
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 +139 -107
- package/dist/meeting/index.js.map +1 -1
- package/dist/types/meeting/index.d.ts +12 -1
- package/dist/webinar/index.js +1 -1
- package/package.json +13 -13
- package/src/meeting/index.ts +40 -5
- package/test/unit/spec/meeting/index.js +121 -21
package/dist/meeting/index.js
CHANGED
@@ -2382,6 +2382,24 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
2382
2382
|
this.callStateForMetrics.correlationId = correlationId;
|
2383
2383
|
}
|
2384
2384
|
|
2385
|
+
/**
|
2386
|
+
* Getter - Returns callStateForMetrics.pstnCorrelationId
|
2387
|
+
* @returns {string | undefined}
|
2388
|
+
*/
|
2389
|
+
}, {
|
2390
|
+
key: "pstnCorrelationId",
|
2391
|
+
get: function get() {
|
2392
|
+
return this.callStateForMetrics.pstnCorrelationId;
|
2393
|
+
}
|
2394
|
+
|
2395
|
+
/**
|
2396
|
+
* Setter - sets callStateForMetrics.pstnCorrelationId
|
2397
|
+
* @param {string | undefined} correlationId
|
2398
|
+
*/,
|
2399
|
+
set: function set(correlationId) {
|
2400
|
+
this.callStateForMetrics.pstnCorrelationId = correlationId;
|
2401
|
+
}
|
2402
|
+
|
2385
2403
|
/**
|
2386
2404
|
* Getter - Returns callStateForMetrics.userNameInput
|
2387
2405
|
* @returns {string}
|
@@ -6507,14 +6525,14 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6507
6525
|
value: function dialInPstn() {
|
6508
6526
|
var _this38 = this;
|
6509
6527
|
if (this.isPhoneProvisioned(this.dialInDeviceStatus)) return _promise.default.resolve(); // prevent multiple dial in devices from being provisioned
|
6510
|
-
|
6511
|
-
var
|
6528
|
+
this.pstnCorrelationId = _uuid.default.v4();
|
6529
|
+
var pstnCorrelationId = this.pstnCorrelationId,
|
6512
6530
|
locusUrl = this.locusUrl;
|
6513
6531
|
if (!this.dialInUrl) this.dialInUrl = "dialin:///".concat(_uuid.default.v4());
|
6514
6532
|
return this.meetingRequest
|
6515
6533
|
// @ts-ignore
|
6516
6534
|
.dialIn({
|
6517
|
-
correlationId:
|
6535
|
+
correlationId: pstnCorrelationId,
|
6518
6536
|
dialInUrl: this.dialInUrl,
|
6519
6537
|
locusUrl: locusUrl,
|
6520
6538
|
clientUrl: this.deviceUrl
|
@@ -6523,11 +6541,15 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6523
6541
|
_metrics.default.sendBehavioralMetric(_constants2.default.ADD_DIAL_IN_FAILURE, {
|
6524
6542
|
correlation_id: _this38.correlationId,
|
6525
6543
|
dial_in_url: _this38.dialInUrl,
|
6544
|
+
dial_in_correlation_id: pstnCorrelationId,
|
6526
6545
|
locus_id: locusUrl.split('/').pop(),
|
6527
6546
|
client_url: _this38.deviceUrl,
|
6528
6547
|
reason: (_error$error2 = error.error) === null || _error$error2 === void 0 ? void 0 : _error$error2.message,
|
6529
6548
|
stack: error.stack
|
6530
6549
|
});
|
6550
|
+
if (_this38.pstnCorrelationId === pstnCorrelationId) {
|
6551
|
+
_this38.pstnCorrelationId = undefined;
|
6552
|
+
}
|
6531
6553
|
return _promise.default.reject(error);
|
6532
6554
|
});
|
6533
6555
|
}
|
@@ -6544,14 +6566,14 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6544
6566
|
value: function dialOutPstn(phoneNumber) {
|
6545
6567
|
var _this39 = this;
|
6546
6568
|
if (this.isPhoneProvisioned(this.dialOutDeviceStatus)) return _promise.default.resolve(); // prevent multiple dial out devices from being provisioned
|
6547
|
-
|
6548
|
-
var
|
6549
|
-
|
6569
|
+
this.pstnCorrelationId = _uuid.default.v4();
|
6570
|
+
var locusUrl = this.locusUrl,
|
6571
|
+
pstnCorrelationId = this.pstnCorrelationId;
|
6550
6572
|
if (!this.dialOutUrl) this.dialOutUrl = "dialout:///".concat(_uuid.default.v4());
|
6551
6573
|
return this.meetingRequest
|
6552
6574
|
// @ts-ignore
|
6553
6575
|
.dialOut({
|
6554
|
-
correlationId:
|
6576
|
+
correlationId: pstnCorrelationId,
|
6555
6577
|
dialOutUrl: this.dialOutUrl,
|
6556
6578
|
phoneNumber: phoneNumber,
|
6557
6579
|
locusUrl: locusUrl,
|
@@ -6561,11 +6583,15 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6561
6583
|
_metrics.default.sendBehavioralMetric(_constants2.default.ADD_DIAL_OUT_FAILURE, {
|
6562
6584
|
correlation_id: _this39.correlationId,
|
6563
6585
|
dial_out_url: _this39.dialOutUrl,
|
6586
|
+
dial_out_correlation_id: pstnCorrelationId,
|
6564
6587
|
locus_id: locusUrl.split('/').pop(),
|
6565
6588
|
client_url: _this39.deviceUrl,
|
6566
6589
|
reason: (_error$error3 = error.error) === null || _error$error3 === void 0 ? void 0 : _error$error3.message,
|
6567
6590
|
stack: error.stack
|
6568
6591
|
});
|
6592
|
+
if (_this39.pstnCorrelationId === pstnCorrelationId) {
|
6593
|
+
_this39.pstnCorrelationId = undefined;
|
6594
|
+
}
|
6569
6595
|
return _promise.default.reject(error);
|
6570
6596
|
});
|
6571
6597
|
}
|
@@ -6580,7 +6606,13 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6580
6606
|
}, {
|
6581
6607
|
key: "disconnectPhoneAudio",
|
6582
6608
|
value: function disconnectPhoneAudio() {
|
6583
|
-
|
6609
|
+
var _this40 = this;
|
6610
|
+
var correlationToClear = this.pstnCorrelationId;
|
6611
|
+
return _promise.default.all([this.isPhoneProvisioned(this.dialInDeviceStatus) ? _util2.default.disconnectPhoneAudio(this, this.dialInUrl) : _promise.default.resolve(), this.isPhoneProvisioned(this.dialOutDeviceStatus) ? _util2.default.disconnectPhoneAudio(this, this.dialOutUrl) : _promise.default.resolve()]).then(function () {
|
6612
|
+
if (_this40.pstnCorrelationId === correlationToClear) {
|
6613
|
+
_this40.pstnCorrelationId = undefined;
|
6614
|
+
}
|
6615
|
+
});
|
6584
6616
|
}
|
6585
6617
|
|
6586
6618
|
/**
|
@@ -6593,7 +6625,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6593
6625
|
}, {
|
6594
6626
|
key: "moveTo",
|
6595
6627
|
value: function moveTo(resourceId) {
|
6596
|
-
var
|
6628
|
+
var _this41 = this;
|
6597
6629
|
if (!resourceId) {
|
6598
6630
|
throw new _parameter.default('Cannot move call without a resourceId.');
|
6599
6631
|
}
|
@@ -6637,12 +6669,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6637
6669
|
while (1) switch (_context21.prev = _context21.next) {
|
6638
6670
|
case 0:
|
6639
6671
|
_context21.prev = 0;
|
6640
|
-
if (!(
|
6672
|
+
if (!(_this41.screenShareFloorState === ScreenShareFloorStatus.GRANTED)) {
|
6641
6673
|
_context21.next = 4;
|
6642
6674
|
break;
|
6643
6675
|
}
|
6644
6676
|
_context21.next = 4;
|
6645
|
-
return
|
6677
|
+
return _this41.releaseScreenShareFloor();
|
6646
6678
|
case 4:
|
6647
6679
|
mediaSettings = {
|
6648
6680
|
mediaDirection: {
|
@@ -6654,37 +6686,37 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6654
6686
|
receiveShare: true
|
6655
6687
|
}
|
6656
6688
|
};
|
6657
|
-
|
6658
|
-
|
6689
|
+
_this41.mediaProperties.setMediaDirection(mediaSettings.mediaDirection);
|
6690
|
+
_this41.mediaProperties.unsetRemoteMedia();
|
6659
6691
|
|
6660
6692
|
// when a move to is intiated by the client , Locus delets the existing media node from the server as soon the device answers the meeting
|
6661
6693
|
// once the device answers we close the old connection and create new media server connection with only share enabled
|
6662
|
-
if (!
|
6694
|
+
if (!_this41.statsAnalyzer) {
|
6663
6695
|
_context21.next = 10;
|
6664
6696
|
break;
|
6665
6697
|
}
|
6666
6698
|
_context21.next = 10;
|
6667
|
-
return
|
6699
|
+
return _this41.statsAnalyzer.stopAnalyzer();
|
6668
6700
|
case 10:
|
6669
6701
|
_context21.next = 12;
|
6670
|
-
return
|
6702
|
+
return _this41.closeRemoteStreams();
|
6671
6703
|
case 12:
|
6672
6704
|
_context21.next = 14;
|
6673
|
-
return
|
6705
|
+
return _this41.closePeerConnections();
|
6674
6706
|
case 14:
|
6675
|
-
|
6676
|
-
|
6677
|
-
|
6678
|
-
|
6707
|
+
_this41.cleanupLocalStreams();
|
6708
|
+
_this41.unsetRemoteStreams();
|
6709
|
+
_this41.unsetPeerConnections();
|
6710
|
+
_this41.reconnectionManager.cleanUp();
|
6679
6711
|
_context21.next = 20;
|
6680
|
-
return
|
6712
|
+
return _this41.addMedia({
|
6681
6713
|
audioEnabled: false,
|
6682
6714
|
videoEnabled: false,
|
6683
6715
|
shareVideoEnabled: true
|
6684
6716
|
});
|
6685
6717
|
case 20:
|
6686
6718
|
_metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_SUCCESS);
|
6687
|
-
|
6719
|
+
_this41.isMoveToInProgress = false;
|
6688
6720
|
_context21.next = 29;
|
6689
6721
|
break;
|
6690
6722
|
case 24:
|
@@ -6692,12 +6724,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6692
6724
|
_context21.t0 = _context21["catch"](0);
|
6693
6725
|
_loggerProxy.default.logger.error('Meeting:index#moveTo --> Failed to moveTo resourceId', _context21.t0);
|
6694
6726
|
_metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_FAILURE, {
|
6695
|
-
correlation_id:
|
6696
|
-
locus_id:
|
6727
|
+
correlation_id: _this41.correlationId,
|
6728
|
+
locus_id: _this41.locusUrl.split('/').pop(),
|
6697
6729
|
reason: _context21.t0.message,
|
6698
6730
|
stack: _context21.t0.stack
|
6699
6731
|
});
|
6700
|
-
|
6732
|
+
_this41.isMoveToInProgress = false;
|
6701
6733
|
case 29:
|
6702
6734
|
case "end":
|
6703
6735
|
return _context21.stop();
|
@@ -6713,17 +6745,17 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6713
6745
|
resourceId: resourceId,
|
6714
6746
|
moveToResource: true
|
6715
6747
|
}).then(function () {
|
6716
|
-
|
6748
|
+
_this41.meetingFiniteStateMachine.join();
|
6717
6749
|
}).catch(function (error) {
|
6718
|
-
|
6750
|
+
_this41.meetingFiniteStateMachine.fail(error);
|
6719
6751
|
_metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_FAILURE, {
|
6720
|
-
correlation_id:
|
6721
|
-
locus_id:
|
6752
|
+
correlation_id: _this41.correlationId,
|
6753
|
+
locus_id: _this41.locusUrl.split('/').pop(),
|
6722
6754
|
reason: error.message,
|
6723
6755
|
stack: error.stack
|
6724
6756
|
});
|
6725
6757
|
_loggerProxy.default.logger.error('Meeting:index#moveTo --> Failed to moveTo resourceId', error);
|
6726
|
-
|
6758
|
+
_this41.isMoveToInProgress = false;
|
6727
6759
|
return _promise.default.reject(error);
|
6728
6760
|
});
|
6729
6761
|
}
|
@@ -6738,7 +6770,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6738
6770
|
}, {
|
6739
6771
|
key: "moveFrom",
|
6740
6772
|
value: function moveFrom(resourceId) {
|
6741
|
-
var
|
6773
|
+
var _this42 = this;
|
6742
6774
|
// On moveFrom ask the developer to re capture it moveFrom then updateMedia
|
6743
6775
|
if (!resourceId) {
|
6744
6776
|
throw new _parameter.default('Cannot move call without a resourceId.');
|
@@ -6753,19 +6785,19 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6753
6785
|
}
|
6754
6786
|
});
|
6755
6787
|
return _util2.default.joinMeetingOptions(this).then(function () {
|
6756
|
-
return _util2.default.leaveMeeting(
|
6788
|
+
return _util2.default.leaveMeeting(_this42, {
|
6757
6789
|
resourceId: resourceId,
|
6758
6790
|
correlationId: oldCorrelationId,
|
6759
6791
|
moveMeeting: true
|
6760
6792
|
}).then(function () {
|
6761
|
-
|
6793
|
+
_this42.resourceId = '';
|
6762
6794
|
_metrics.default.sendBehavioralMetric(_constants2.default.MOVE_FROM_SUCCESS);
|
6763
6795
|
});
|
6764
6796
|
}).catch(function (error) {
|
6765
|
-
|
6797
|
+
_this42.meetingFiniteStateMachine.fail(error);
|
6766
6798
|
_metrics.default.sendBehavioralMetric(_constants2.default.MOVE_FROM_FAILURE, {
|
6767
|
-
correlation_id:
|
6768
|
-
locus_id:
|
6799
|
+
correlation_id: _this42.correlationId,
|
6800
|
+
locus_id: _this42.locusUrl.split('/').pop(),
|
6769
6801
|
reason: error.message,
|
6770
6802
|
stack: error.stack
|
6771
6803
|
});
|
@@ -6888,9 +6920,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
6888
6920
|
}, {
|
6889
6921
|
key: "forwardEvent",
|
6890
6922
|
value: function forwardEvent(eventEmitter, eventTypeToForward, meetingEventType) {
|
6891
|
-
var
|
6923
|
+
var _this43 = this;
|
6892
6924
|
eventEmitter.on(eventTypeToForward, function (data) {
|
6893
|
-
return _triggerProxy.default.trigger(
|
6925
|
+
return _triggerProxy.default.trigger(_this43, {
|
6894
6926
|
file: 'meetings',
|
6895
6927
|
function: 'addMedia'
|
6896
6928
|
}, meetingEventType, data);
|
@@ -7076,7 +7108,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7076
7108
|
key: "waitForRemoteSDPAnswer",
|
7077
7109
|
value: (function () {
|
7078
7110
|
var _waitForRemoteSDPAnswer = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25() {
|
7079
|
-
var
|
7111
|
+
var _this44 = this;
|
7080
7112
|
var LOG_HEADER, deferSDPAnswer;
|
7081
7113
|
return _regenerator.default.wrap(function _callee25$(_context25) {
|
7082
7114
|
while (1) switch (_context25.prev = _context25.next) {
|
@@ -7095,18 +7127,18 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7095
7127
|
var error = new Error('Timed out waiting for REMOTE SDP ANSWER');
|
7096
7128
|
|
7097
7129
|
// @ts-ignore
|
7098
|
-
|
7130
|
+
_this44.webex.internal.newMetrics.submitClientEvent({
|
7099
7131
|
name: 'client.media-engine.remote-sdp-received',
|
7100
7132
|
payload: {
|
7101
7133
|
canProceed: false,
|
7102
7134
|
errors: [
|
7103
7135
|
// @ts-ignore
|
7104
|
-
|
7136
|
+
_this44.webex.internal.newMetrics.callDiagnosticMetrics.getErrorPayloadForClientErrorCode({
|
7105
7137
|
clientErrorCode: _internalPluginMetrics.CALL_DIAGNOSTIC_CONFIG.MISSING_ROAP_ANSWER_CLIENT_CODE
|
7106
7138
|
})]
|
7107
7139
|
},
|
7108
7140
|
options: {
|
7109
|
-
meetingId:
|
7141
|
+
meetingId: _this44.id,
|
7110
7142
|
rawError: error
|
7111
7143
|
}
|
7112
7144
|
});
|
@@ -7613,10 +7645,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7613
7645
|
}, {
|
7614
7646
|
key: "addMedia",
|
7615
7647
|
value: function addMedia() {
|
7616
|
-
var
|
7648
|
+
var _this45 = this;
|
7617
7649
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
7618
7650
|
return this.addMediaInternal(function () {
|
7619
|
-
return
|
7651
|
+
return _this45.turnServerUsed ? 'JOIN_MEETING_FINAL' : 'JOIN_MEETING_RETRY';
|
7620
7652
|
}, undefined, false, options);
|
7621
7653
|
}
|
7622
7654
|
|
@@ -7942,7 +7974,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7942
7974
|
* @memberof Meeting
|
7943
7975
|
*/
|
7944
7976
|
function enqueueMediaUpdate(mediaUpdateType) {
|
7945
|
-
var
|
7977
|
+
var _this46 = this;
|
7946
7978
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
7947
7979
|
var canUpdateMediaNow = this.canUpdateMedia();
|
7948
7980
|
return new _promise.default(function (resolve, reject) {
|
@@ -7953,9 +7985,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
7953
7985
|
options: options
|
7954
7986
|
};
|
7955
7987
|
_loggerProxy.default.logger.log("Meeting:index#enqueueMediaUpdate --> enqueuing media update type=".concat(mediaUpdateType));
|
7956
|
-
|
7988
|
+
_this46.queuedMediaUpdates.push(queueItem);
|
7957
7989
|
if (canUpdateMediaNow) {
|
7958
|
-
|
7990
|
+
_this46.processNextQueuedMediaUpdate();
|
7959
7991
|
}
|
7960
7992
|
});
|
7961
7993
|
}
|
@@ -8060,7 +8092,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8060
8092
|
}, {
|
8061
8093
|
key: "acknowledge",
|
8062
8094
|
value: function acknowledge(type) {
|
8063
|
-
var
|
8095
|
+
var _this47 = this;
|
8064
8096
|
if (!type) {
|
8065
8097
|
return _promise.default.reject(new _parameter.default('Type must be set to acknowledge the meeting.'));
|
8066
8098
|
}
|
@@ -8072,12 +8104,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8072
8104
|
}).then(function (response) {
|
8073
8105
|
return _promise.default.resolve(response);
|
8074
8106
|
}).then(function (response) {
|
8075
|
-
|
8107
|
+
_this47.meetingFiniteStateMachine.ring(type);
|
8076
8108
|
// @ts-ignore
|
8077
|
-
|
8109
|
+
_this47.webex.internal.newMetrics.submitClientEvent({
|
8078
8110
|
name: 'client.alert.displayed',
|
8079
8111
|
options: {
|
8080
|
-
meetingId:
|
8112
|
+
meetingId: _this47.id
|
8081
8113
|
}
|
8082
8114
|
});
|
8083
8115
|
return _promise.default.resolve({
|
@@ -8102,12 +8134,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8102
8134
|
}, {
|
8103
8135
|
key: "decline",
|
8104
8136
|
value: function decline(reason) {
|
8105
|
-
var
|
8137
|
+
var _this48 = this;
|
8106
8138
|
return _util2.default.declineMeeting(this, reason).then(function (decline) {
|
8107
|
-
|
8139
|
+
_this48.meetingFiniteStateMachine.decline();
|
8108
8140
|
return _promise.default.resolve(decline);
|
8109
8141
|
}).catch(function (error) {
|
8110
|
-
|
8142
|
+
_this48.meetingFiniteStateMachine.fail(error);
|
8111
8143
|
return _promise.default.reject(error);
|
8112
8144
|
});
|
8113
8145
|
}
|
@@ -8158,7 +8190,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8158
8190
|
}, {
|
8159
8191
|
key: "leave",
|
8160
8192
|
value: function leave() {
|
8161
|
-
var
|
8193
|
+
var _this49 = this;
|
8162
8194
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
8163
8195
|
var leaveReason = options.reason || _constants.MEETING_REMOVED_REASON.CLIENT_LEAVE_REQUEST;
|
8164
8196
|
|
@@ -8170,7 +8202,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8170
8202
|
var payload = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
8171
8203
|
return (
|
8172
8204
|
// @ts-ignore
|
8173
|
-
|
8205
|
+
_this49.webex.internal.newMetrics.submitClientEvent({
|
8174
8206
|
name: 'client.call.leave',
|
8175
8207
|
payload: _objectSpread({
|
8176
8208
|
trigger: 'user-interaction',
|
@@ -8178,7 +8210,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8178
8210
|
leaveReason: options.clientEventLeaveReason
|
8179
8211
|
}, payload),
|
8180
8212
|
options: {
|
8181
|
-
meetingId:
|
8213
|
+
meetingId: _this49.id
|
8182
8214
|
}
|
8183
8215
|
})
|
8184
8216
|
);
|
@@ -8187,24 +8219,24 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8187
8219
|
return _util2.default.leaveMeeting(this, options).then(function (leave) {
|
8188
8220
|
// CA team recommends submitting this *after* locus /leave
|
8189
8221
|
submitLeaveMetric();
|
8190
|
-
|
8191
|
-
|
8222
|
+
_this49.meetingFiniteStateMachine.leave();
|
8223
|
+
_this49.clearMeetingData();
|
8192
8224
|
|
8193
8225
|
// upload logs on leave irrespective of meeting delete
|
8194
|
-
_triggerProxy.default.trigger(
|
8226
|
+
_triggerProxy.default.trigger(_this49, {
|
8195
8227
|
file: 'meeting/index',
|
8196
8228
|
function: 'leave'
|
8197
|
-
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS,
|
8229
|
+
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this49);
|
8198
8230
|
|
8199
8231
|
// TODO: more testing before we remove this code, we are not sure the scenarios for destroy here
|
8200
|
-
if (
|
8232
|
+
if (_this49.wirelessShare || _this49.guest) {
|
8201
8233
|
// If screen sharing clean the meeting object
|
8202
|
-
_triggerProxy.default.trigger(
|
8234
|
+
_triggerProxy.default.trigger(_this49, {
|
8203
8235
|
file: 'meeting/index',
|
8204
8236
|
function: 'leave'
|
8205
8237
|
}, _constants.EVENTS.DESTROY_MEETING, {
|
8206
8238
|
reason: options.reason,
|
8207
|
-
meetingId:
|
8239
|
+
meetingId: _this49.id
|
8208
8240
|
});
|
8209
8241
|
}
|
8210
8242
|
_loggerProxy.default.logger.log('Meeting:index#leave --> LEAVE REASON ', leaveReason);
|
@@ -8221,16 +8253,16 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8221
8253
|
shownToUser: false
|
8222
8254
|
}]
|
8223
8255
|
});
|
8224
|
-
|
8256
|
+
_this49.meetingFiniteStateMachine.fail(error);
|
8225
8257
|
_loggerProxy.default.logger.error('Meeting:index#leave --> Failed to leave ', error);
|
8226
8258
|
// upload logs on leave irrespective of meeting delete
|
8227
|
-
_triggerProxy.default.trigger(
|
8259
|
+
_triggerProxy.default.trigger(_this49, {
|
8228
8260
|
file: 'meeting/index',
|
8229
8261
|
function: 'leave'
|
8230
|
-
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS,
|
8262
|
+
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this49);
|
8231
8263
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_LEAVE_FAILURE, {
|
8232
|
-
correlation_id:
|
8233
|
-
locus_id:
|
8264
|
+
correlation_id: _this49.correlationId,
|
8265
|
+
locus_id: _this49.locusUrl.split('/').pop(),
|
8234
8266
|
reason: error.message,
|
8235
8267
|
stack: error.stack,
|
8236
8268
|
code: error.code
|
@@ -8250,7 +8282,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8250
8282
|
}, {
|
8251
8283
|
key: "startWhiteboardShare",
|
8252
8284
|
value: function startWhiteboardShare(channelUrl, resourceToken) {
|
8253
|
-
var
|
8285
|
+
var _this50 = this;
|
8254
8286
|
var whiteboard = this.locusInfo.mediaShares.find(function (element) {
|
8255
8287
|
return element.name === 'whiteboard';
|
8256
8288
|
});
|
@@ -8283,13 +8315,13 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8283
8315
|
body.resourceToken = resourceToken;
|
8284
8316
|
}
|
8285
8317
|
return this.meetingRequest.changeMeetingFloor(body).then(function () {
|
8286
|
-
|
8318
|
+
_this50.screenShareFloorState = ScreenShareFloorStatus.RELEASED;
|
8287
8319
|
return _promise.default.resolve();
|
8288
8320
|
}).catch(function (error) {
|
8289
8321
|
_loggerProxy.default.logger.error('Meeting:index#startWhiteboardShare --> Error ', error);
|
8290
8322
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_START_WHITEBOARD_SHARE_FAILURE, {
|
8291
|
-
correlation_id:
|
8292
|
-
locus_id:
|
8323
|
+
correlation_id: _this50.correlationId,
|
8324
|
+
locus_id: _this50.locusUrl.split('/').pop(),
|
8293
8325
|
reason: error.message,
|
8294
8326
|
stack: error.stack,
|
8295
8327
|
board: {
|
@@ -8312,7 +8344,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8312
8344
|
}, {
|
8313
8345
|
key: "stopWhiteboardShare",
|
8314
8346
|
value: function stopWhiteboardShare(channelUrl) {
|
8315
|
-
var
|
8347
|
+
var _this51 = this;
|
8316
8348
|
var whiteboard = this.locusInfo.mediaShares.find(function (element) {
|
8317
8349
|
return element.name === 'whiteboard';
|
8318
8350
|
});
|
@@ -8341,8 +8373,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8341
8373
|
}).catch(function (error) {
|
8342
8374
|
_loggerProxy.default.logger.error('Meeting:index#stopWhiteboardShare --> Error ', error);
|
8343
8375
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_STOP_WHITEBOARD_SHARE_FAILURE, {
|
8344
|
-
correlation_id:
|
8345
|
-
locus_id:
|
8376
|
+
correlation_id: _this51.correlationId,
|
8377
|
+
locus_id: _this51.locusUrl.split('/').pop(),
|
8346
8378
|
reason: error.message,
|
8347
8379
|
stack: error.stack,
|
8348
8380
|
board: {
|
@@ -8364,7 +8396,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8364
8396
|
}, {
|
8365
8397
|
key: "requestScreenShareFloor",
|
8366
8398
|
value: function requestScreenShareFloor() {
|
8367
|
-
var
|
8399
|
+
var _this52 = this;
|
8368
8400
|
if (!this.mediaProperties.hasLocalShareStream() || !this.mediaProperties.mediaDirection.sendShare) {
|
8369
8401
|
_loggerProxy.default.logger.log("Meeting:index#requestScreenShareFloor --> NOT requesting floor, because we don't have the share stream anymore (shareStream=".concat(this.mediaProperties.shareVideoStream ? 'yes' : 'no', ", sendShare=").concat(this.mediaProperties.mediaDirection.sendShare, ")"));
|
8370
8402
|
this.screenShareFloorState = ScreenShareFloorStatus.RELEASED;
|
@@ -8395,34 +8427,34 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8395
8427
|
resourceUrl: this.resourceUrl,
|
8396
8428
|
shareInstanceId: this.localShareInstanceId
|
8397
8429
|
}).then(function () {
|
8398
|
-
|
8430
|
+
_this52.screenShareFloorState = ScreenShareFloorStatus.GRANTED;
|
8399
8431
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_SHARE_SUCCESS, {
|
8400
|
-
correlation_id:
|
8401
|
-
locus_id:
|
8432
|
+
correlation_id: _this52.correlationId,
|
8433
|
+
locus_id: _this52.locusUrl.split('/').pop()
|
8402
8434
|
});
|
8403
8435
|
return _promise.default.resolve();
|
8404
8436
|
}).catch(function (error) {
|
8405
8437
|
_loggerProxy.default.logger.error('Meeting:index#share --> Error ', error);
|
8406
8438
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_SHARE_FAILURE, {
|
8407
|
-
correlation_id:
|
8408
|
-
locus_id:
|
8439
|
+
correlation_id: _this52.correlationId,
|
8440
|
+
locus_id: _this52.locusUrl.split('/').pop(),
|
8409
8441
|
reason: error.message,
|
8410
8442
|
stack: error.stack
|
8411
8443
|
});
|
8412
8444
|
|
8413
8445
|
// @ts-ignore
|
8414
|
-
|
8446
|
+
_this52.webex.internal.newMetrics.submitClientEvent({
|
8415
8447
|
name: 'client.share.floor-granted.local',
|
8416
8448
|
payload: {
|
8417
8449
|
mediaType: 'share',
|
8418
8450
|
errors: _util2.default.getChangeMeetingFloorErrorPayload(error.message),
|
8419
|
-
shareInstanceId:
|
8451
|
+
shareInstanceId: _this52.localShareInstanceId
|
8420
8452
|
},
|
8421
8453
|
options: {
|
8422
|
-
meetingId:
|
8454
|
+
meetingId: _this52.id
|
8423
8455
|
}
|
8424
8456
|
});
|
8425
|
-
|
8457
|
+
_this52.screenShareFloorState = ScreenShareFloorStatus.RELEASED;
|
8426
8458
|
return _promise.default.reject(error);
|
8427
8459
|
});
|
8428
8460
|
}
|
@@ -8445,10 +8477,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8445
8477
|
}, {
|
8446
8478
|
key: "requestScreenShareFloorIfPending",
|
8447
8479
|
value: function requestScreenShareFloorIfPending() {
|
8448
|
-
var
|
8480
|
+
var _this53 = this;
|
8449
8481
|
if (this.floorGrantPending && this.state === _constants.MEETING_STATE.STATES.JOINED) {
|
8450
8482
|
this.requestScreenShareFloor().then(function () {
|
8451
|
-
|
8483
|
+
_this53.floorGrantPending = false;
|
8452
8484
|
});
|
8453
8485
|
}
|
8454
8486
|
}
|
@@ -8462,7 +8494,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8462
8494
|
}, {
|
8463
8495
|
key: "releaseScreenShareFloor",
|
8464
8496
|
value: function releaseScreenShareFloor() {
|
8465
|
-
var
|
8497
|
+
var _this54 = this;
|
8466
8498
|
var content = this.locusInfo.mediaShares.find(function (element) {
|
8467
8499
|
return element.name === _constants.CONTENT;
|
8468
8500
|
});
|
@@ -8503,8 +8535,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8503
8535
|
}).catch(function (error) {
|
8504
8536
|
_loggerProxy.default.logger.error('Meeting:index#releaseScreenShareFloor --> Error ', error);
|
8505
8537
|
_metrics.default.sendBehavioralMetric(_constants2.default.STOP_FLOOR_REQUEST_FAILURE, {
|
8506
|
-
correlation_id:
|
8507
|
-
locus_id:
|
8538
|
+
correlation_id: _this54.correlationId,
|
8539
|
+
locus_id: _this54.locusUrl.split('/').pop(),
|
8508
8540
|
reason: error.message,
|
8509
8541
|
stack: error.stack
|
8510
8542
|
});
|
@@ -8684,7 +8716,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8684
8716
|
}, {
|
8685
8717
|
key: "changeVideoLayout",
|
8686
8718
|
value: function changeVideoLayout(layoutType) {
|
8687
|
-
var
|
8719
|
+
var _this55 = this;
|
8688
8720
|
var renderInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
8689
8721
|
var main = renderInfo.main,
|
8690
8722
|
content = renderInfo.content;
|
@@ -8738,7 +8770,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8738
8770
|
}
|
8739
8771
|
this.lastVideoLayoutInfo = (0, _lodash.cloneDeep)(layoutInfo);
|
8740
8772
|
this.locusInfo.once(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_LAYOUT_UPDATED, function (envelope) {
|
8741
|
-
_triggerProxy.default.trigger(
|
8773
|
+
_triggerProxy.default.trigger(_this55, {
|
8742
8774
|
file: 'meeting/index',
|
8743
8775
|
function: 'changeVideoLayout'
|
8744
8776
|
}, _constants.EVENT_TRIGGERS.MEETING_CONTROLS_LAYOUT_UPDATE, {
|
@@ -8854,7 +8886,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8854
8886
|
}, {
|
8855
8887
|
key: "endMeetingForAll",
|
8856
8888
|
value: function endMeetingForAll() {
|
8857
|
-
var
|
8889
|
+
var _this56 = this;
|
8858
8890
|
// @ts-ignore
|
8859
8891
|
this.webex.internal.newMetrics.submitClientEvent({
|
8860
8892
|
name: 'client.call.leave',
|
@@ -8872,25 +8904,25 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
8872
8904
|
locus_id: this.locusId
|
8873
8905
|
});
|
8874
8906
|
return _util2.default.endMeetingForAll(this).then(function (end) {
|
8875
|
-
|
8876
|
-
|
8907
|
+
_this56.meetingFiniteStateMachine.end();
|
8908
|
+
_this56.clearMeetingData();
|
8877
8909
|
// upload logs on leave irrespective of meeting delete
|
8878
|
-
_triggerProxy.default.trigger(
|
8910
|
+
_triggerProxy.default.trigger(_this56, {
|
8879
8911
|
file: 'meeting/index',
|
8880
8912
|
function: 'endMeetingForAll'
|
8881
|
-
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS,
|
8913
|
+
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this56);
|
8882
8914
|
return end;
|
8883
8915
|
}).catch(function (error) {
|
8884
|
-
|
8916
|
+
_this56.meetingFiniteStateMachine.fail(error);
|
8885
8917
|
_loggerProxy.default.logger.error('Meeting:index#endMeetingForAll --> Failed to end meeting ', error);
|
8886
8918
|
// upload logs on leave irrespective of meeting delete
|
8887
|
-
_triggerProxy.default.trigger(
|
8919
|
+
_triggerProxy.default.trigger(_this56, {
|
8888
8920
|
file: 'meeting/index',
|
8889
8921
|
function: 'endMeetingForAll'
|
8890
|
-
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS,
|
8922
|
+
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this56);
|
8891
8923
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_END_ALL_FAILURE, {
|
8892
|
-
correlation_id:
|
8893
|
-
locus_id:
|
8924
|
+
correlation_id: _this56.correlationId,
|
8925
|
+
locus_id: _this56.locusUrl.split('/').pop(),
|
8894
8926
|
reason: error.message,
|
8895
8927
|
stack: error.stack,
|
8896
8928
|
code: error.code
|
@@ -9051,7 +9083,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
9051
9083
|
_this$mediaProperties43,
|
9052
9084
|
_this$mediaProperties44,
|
9053
9085
|
_this$mediaProperties45,
|
9054
|
-
|
9086
|
+
_this57 = this;
|
9055
9087
|
var LOG_HEADER = 'Meeting:index#updateTranscodedMediaConnection -->';
|
9056
9088
|
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " starting"));
|
9057
9089
|
if (!this.canUpdateMedia()) {
|
@@ -9076,8 +9108,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
9076
9108
|
}).catch(function (error) {
|
9077
9109
|
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " Error: "), error);
|
9078
9110
|
_metrics.default.sendBehavioralMetric(_constants2.default.UPDATE_MEDIA_FAILURE, {
|
9079
|
-
correlation_id:
|
9080
|
-
locus_id:
|
9111
|
+
correlation_id: _this57.correlationId,
|
9112
|
+
locus_id: _this57.locusUrl.split('/').pop(),
|
9081
9113
|
reason: error.message,
|
9082
9114
|
stack: error.stack
|
9083
9115
|
});
|