@webex/plugin-meetings 3.0.0-beta.262 → 3.0.0-beta.264
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/locus-info/mediaSharesUtils.js +15 -1
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/meeting/index.js +178 -131
- package/dist/meeting/index.js.map +1 -1
- package/dist/reachability/index.js +95 -33
- package/dist/reachability/index.js.map +1 -1
- package/dist/types/meeting/index.d.ts +2 -2
- package/dist/types/reachability/index.d.ts +18 -1
- package/package.json +19 -19
- package/src/locus-info/mediaSharesUtils.ts +16 -0
- package/src/meeting/index.ts +44 -27
- package/src/reachability/index.ts +64 -1
- package/test/unit/spec/locus-info/mediaSharesUtils.ts +10 -0
- package/test/unit/spec/meeting/index.js +98 -55
- package/test/unit/spec/reachability/index.ts +208 -2
package/dist/meeting/index.js
CHANGED
|
@@ -2628,7 +2628,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2628
2628
|
previousContentShare = (_payload$previous = payload.previous) === null || _payload$previous === void 0 ? void 0 : _payload$previous.content;
|
|
2629
2629
|
previousWhiteboardShare = (_payload$previous2 = payload.previous) === null || _payload$previous2 === void 0 ? void 0 : _payload$previous2.whiteboard;
|
|
2630
2630
|
_this14.triggerAnnotationInfoEvent(contentShare, previousContentShare);
|
|
2631
|
-
if (!(contentShare.beneficiaryId === (previousContentShare === null || previousContentShare === void 0 ? void 0 : previousContentShare.beneficiaryId) && contentShare.disposition === (previousContentShare === null || previousContentShare === void 0 ? void 0 : previousContentShare.disposition) && whiteboardShare.beneficiaryId === (previousWhiteboardShare === null || previousWhiteboardShare === void 0 ? void 0 : previousWhiteboardShare.beneficiaryId) && whiteboardShare.disposition === (previousWhiteboardShare === null || previousWhiteboardShare === void 0 ? void 0 : previousWhiteboardShare.disposition) && whiteboardShare.resourceUrl === (previousWhiteboardShare === null || previousWhiteboardShare === void 0 ? void 0 : previousWhiteboardShare.resourceUrl))) {
|
|
2631
|
+
if (!(contentShare.beneficiaryId === (previousContentShare === null || previousContentShare === void 0 ? void 0 : previousContentShare.beneficiaryId) && contentShare.disposition === (previousContentShare === null || previousContentShare === void 0 ? void 0 : previousContentShare.disposition) && contentShare.deviceUrlSharing === previousContentShare.deviceUrlSharing && whiteboardShare.beneficiaryId === (previousWhiteboardShare === null || previousWhiteboardShare === void 0 ? void 0 : previousWhiteboardShare.beneficiaryId) && whiteboardShare.disposition === (previousWhiteboardShare === null || previousWhiteboardShare === void 0 ? void 0 : previousWhiteboardShare.disposition) && whiteboardShare.resourceUrl === (previousWhiteboardShare === null || previousWhiteboardShare === void 0 ? void 0 : previousWhiteboardShare.resourceUrl))) {
|
|
2632
2632
|
_context6.next = 6;
|
|
2633
2633
|
break;
|
|
2634
2634
|
}
|
|
@@ -2640,10 +2640,15 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2640
2640
|
newShareStatus = _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE;
|
|
2641
2641
|
}
|
|
2642
2642
|
// LOCAL - check if we started sharing content
|
|
2643
|
-
else if (_this14.selfId === contentShare.beneficiaryId && contentShare.disposition === _constants.FLOOR_ACTION.GRANTED) {
|
|
2643
|
+
else if (_this14.selfId === contentShare.beneficiaryId && contentShare.disposition === _constants.FLOOR_ACTION.GRANTED && contentShare.deviceUrlSharing === _this14.deviceUrl) {
|
|
2644
2644
|
// CONTENT - sharing content local
|
|
2645
2645
|
newShareStatus = _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE;
|
|
2646
2646
|
}
|
|
2647
|
+
// SAME USER REMOTE - check if same user started sharing content from another client
|
|
2648
|
+
else if (_this14.selfId === contentShare.beneficiaryId && contentShare.disposition === _constants.FLOOR_ACTION.GRANTED && contentShare.deviceUrlSharing !== _this14.deviceUrl) {
|
|
2649
|
+
// CONTENT - same user sharing content remote
|
|
2650
|
+
newShareStatus = _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE;
|
|
2651
|
+
}
|
|
2647
2652
|
// If we did not hit the cases above, no one is sharng content, so we check if we are sharing whiteboard
|
|
2648
2653
|
// There is no concept of local/remote share for whiteboard
|
|
2649
2654
|
// It does not matter who requested to share the whiteboard, everyone gets the same view
|
|
@@ -5533,64 +5538,106 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5533
5538
|
return _promise.default.resolve();
|
|
5534
5539
|
}).then(function () {
|
|
5535
5540
|
return _this39.mediaProperties.getCurrentConnectionType();
|
|
5536
|
-
}).then(function (
|
|
5537
|
-
var
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5541
|
+
}).then( /*#__PURE__*/function () {
|
|
5542
|
+
var _ref24 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(connectionType) {
|
|
5543
|
+
var _this39$remoteMediaMa;
|
|
5544
|
+
var reachabilityStats;
|
|
5545
|
+
return _regenerator.default.wrap(function _callee18$(_context18) {
|
|
5546
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
5547
|
+
case 0:
|
|
5548
|
+
_context18.next = 2;
|
|
5549
|
+
return _this39.webex.meetings.reachability.getReachabilityMetrics();
|
|
5550
|
+
case 2:
|
|
5551
|
+
reachabilityStats = _context18.sent;
|
|
5552
|
+
_metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_SUCCESS, _objectSpread({
|
|
5553
|
+
correlation_id: _this39.correlationId,
|
|
5554
|
+
locus_id: _this39.locusUrl.split('/').pop(),
|
|
5555
|
+
connectionType: connectionType,
|
|
5556
|
+
isMultistream: _this39.isMultistream
|
|
5557
|
+
}, reachabilityStats));
|
|
5558
|
+
// @ts-ignore
|
|
5559
|
+
_this39.webex.internal.newMetrics.submitClientEvent({
|
|
5560
|
+
name: 'client.media-engine.ready',
|
|
5561
|
+
options: {
|
|
5562
|
+
meetingId: _this39.id
|
|
5563
|
+
}
|
|
5564
|
+
});
|
|
5565
|
+
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " successfully established media connection, type=").concat(connectionType));
|
|
5552
5566
|
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5567
|
+
// We can log ReceiveSlot SSRCs only after the SDP exchange, so doing it here:
|
|
5568
|
+
(_this39$remoteMediaMa = _this39.remoteMediaManager) === null || _this39$remoteMediaMa === void 0 ? void 0 : _this39$remoteMediaMa.logAllReceiveSlots();
|
|
5569
|
+
case 7:
|
|
5570
|
+
case "end":
|
|
5571
|
+
return _context18.stop();
|
|
5572
|
+
}
|
|
5573
|
+
}, _callee18);
|
|
5574
|
+
}));
|
|
5575
|
+
return function (_x13) {
|
|
5576
|
+
return _ref24.apply(this, arguments);
|
|
5577
|
+
};
|
|
5578
|
+
}()).catch( /*#__PURE__*/function () {
|
|
5579
|
+
var _ref25 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(error) {
|
|
5580
|
+
var _this39$mediaProperti, _this39$mediaProperti2, _this39$mediaProperti3, _this39$mediaProperti4, _this39$mediaProperti5, _this39$mediaProperti6, _this39$mediaProperti7, _this39$mediaProperti8, _this39$mediaProperti9, _this39$mediaProperti10, _this39$mediaProperti11, _this39$mediaProperti12, _this39$mediaProperti13, _this39$mediaProperti14, _this39$mediaProperti15, _this39$mediaProperti16, _this39$mediaProperti17, _this39$mediaProperti18, _this39$mediaProperti19, _this39$mediaProperti20, _this39$mediaProperti21;
|
|
5581
|
+
var reachabilityMetrics;
|
|
5582
|
+
return _regenerator.default.wrap(function _callee19$(_context19) {
|
|
5583
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
5584
|
+
case 0:
|
|
5585
|
+
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " failed to establish media connection: "), error);
|
|
5571
5586
|
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5587
|
+
// @ts-ignore
|
|
5588
|
+
_context19.next = 3;
|
|
5589
|
+
return _this39.webex.meetings.reachability.getReachabilityMetrics();
|
|
5590
|
+
case 3:
|
|
5591
|
+
reachabilityMetrics = _context19.sent;
|
|
5592
|
+
_metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_FAILURE, _objectSpread({
|
|
5593
|
+
correlation_id: _this39.correlationId,
|
|
5594
|
+
locus_id: _this39.locusUrl.split('/').pop(),
|
|
5595
|
+
reason: error.message,
|
|
5596
|
+
stack: error.stack,
|
|
5597
|
+
code: error.code,
|
|
5598
|
+
turnDiscoverySkippedReason: turnDiscoverySkippedReason,
|
|
5599
|
+
turnServerUsed: turnServerUsed,
|
|
5600
|
+
isMultistream: _this39.isMultistream,
|
|
5601
|
+
signalingState: ((_this39$mediaProperti = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti === void 0 ? void 0 : (_this39$mediaProperti2 = _this39$mediaProperti.multistreamConnection) === null || _this39$mediaProperti2 === void 0 ? void 0 : (_this39$mediaProperti3 = _this39$mediaProperti2.pc) === null || _this39$mediaProperti3 === void 0 ? void 0 : (_this39$mediaProperti4 = _this39$mediaProperti3.pc) === null || _this39$mediaProperti4 === void 0 ? void 0 : _this39$mediaProperti4.signalingState) || ((_this39$mediaProperti5 = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti5 === void 0 ? void 0 : (_this39$mediaProperti6 = _this39$mediaProperti5.mediaConnection) === null || _this39$mediaProperti6 === void 0 ? void 0 : (_this39$mediaProperti7 = _this39$mediaProperti6.pc) === null || _this39$mediaProperti7 === void 0 ? void 0 : _this39$mediaProperti7.signalingState) || 'unknown',
|
|
5602
|
+
connectionState: ((_this39$mediaProperti8 = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti8 === void 0 ? void 0 : (_this39$mediaProperti9 = _this39$mediaProperti8.multistreamConnection) === null || _this39$mediaProperti9 === void 0 ? void 0 : (_this39$mediaProperti10 = _this39$mediaProperti9.pc) === null || _this39$mediaProperti10 === void 0 ? void 0 : (_this39$mediaProperti11 = _this39$mediaProperti10.pc) === null || _this39$mediaProperti11 === void 0 ? void 0 : _this39$mediaProperti11.connectionState) || ((_this39$mediaProperti12 = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti12 === void 0 ? void 0 : (_this39$mediaProperti13 = _this39$mediaProperti12.mediaConnection) === null || _this39$mediaProperti13 === void 0 ? void 0 : (_this39$mediaProperti14 = _this39$mediaProperti13.pc) === null || _this39$mediaProperti14 === void 0 ? void 0 : _this39$mediaProperti14.connectionState) || 'unknown',
|
|
5603
|
+
iceConnectionState: ((_this39$mediaProperti15 = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti15 === void 0 ? void 0 : (_this39$mediaProperti16 = _this39$mediaProperti15.multistreamConnection) === null || _this39$mediaProperti16 === void 0 ? void 0 : (_this39$mediaProperti17 = _this39$mediaProperti16.pc) === null || _this39$mediaProperti17 === void 0 ? void 0 : (_this39$mediaProperti18 = _this39$mediaProperti17.pc) === null || _this39$mediaProperti18 === void 0 ? void 0 : _this39$mediaProperti18.iceConnectionState) || ((_this39$mediaProperti19 = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti19 === void 0 ? void 0 : (_this39$mediaProperti20 = _this39$mediaProperti19.mediaConnection) === null || _this39$mediaProperti20 === void 0 ? void 0 : (_this39$mediaProperti21 = _this39$mediaProperti20.pc) === null || _this39$mediaProperti21 === void 0 ? void 0 : _this39$mediaProperti21.iceConnectionState) || 'unknown'
|
|
5604
|
+
}, reachabilityMetrics));
|
|
5605
|
+
|
|
5606
|
+
// Clean up stats analyzer, peer connection, and turn off listeners
|
|
5607
|
+
if (!_this39.statsAnalyzer) {
|
|
5608
|
+
_context19.next = 8;
|
|
5609
|
+
break;
|
|
5610
|
+
}
|
|
5611
|
+
_context19.next = 8;
|
|
5612
|
+
return _this39.statsAnalyzer.stopAnalyzer();
|
|
5613
|
+
case 8:
|
|
5614
|
+
_this39.statsAnalyzer = null;
|
|
5615
|
+
if (_this39.mediaProperties.webrtcMediaConnection) {
|
|
5616
|
+
_this39.closePeerConnections();
|
|
5617
|
+
_this39.unsetPeerConnections();
|
|
5618
|
+
}
|
|
5580
5619
|
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5620
|
+
// Upload logs on error while adding media
|
|
5621
|
+
_triggerProxy.default.trigger(_this39, {
|
|
5622
|
+
file: 'meeting/index',
|
|
5623
|
+
function: 'addMedia'
|
|
5624
|
+
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this39);
|
|
5625
|
+
if (error instanceof _internalMediaCore.Errors.SdpError) {
|
|
5626
|
+
_this39.leave({
|
|
5627
|
+
reason: _constants.MEETING_REMOVED_REASON.MEETING_CONNECTION_FAILED
|
|
5628
|
+
});
|
|
5629
|
+
}
|
|
5630
|
+
throw error;
|
|
5631
|
+
case 13:
|
|
5632
|
+
case "end":
|
|
5633
|
+
return _context19.stop();
|
|
5634
|
+
}
|
|
5635
|
+
}, _callee19);
|
|
5636
|
+
}));
|
|
5637
|
+
return function (_x14) {
|
|
5638
|
+
return _ref25.apply(this, arguments);
|
|
5639
|
+
};
|
|
5640
|
+
}());
|
|
5594
5641
|
}
|
|
5595
5642
|
|
|
5596
5643
|
/**
|
|
@@ -5660,35 +5707,35 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5660
5707
|
* @memberof Meeting
|
|
5661
5708
|
*/
|
|
5662
5709
|
function () {
|
|
5663
|
-
var _updateMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
5710
|
+
var _updateMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(options) {
|
|
5664
5711
|
var audioEnabled, videoEnabled, shareAudioEnabled, shareVideoEnabled;
|
|
5665
|
-
return _regenerator.default.wrap(function
|
|
5666
|
-
while (1) switch (
|
|
5712
|
+
return _regenerator.default.wrap(function _callee20$(_context20) {
|
|
5713
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
5667
5714
|
case 0:
|
|
5668
5715
|
this.checkMediaConnection();
|
|
5669
5716
|
audioEnabled = options.audioEnabled, videoEnabled = options.videoEnabled, shareAudioEnabled = options.shareAudioEnabled, shareVideoEnabled = options.shareVideoEnabled;
|
|
5670
5717
|
_loggerProxy.default.logger.log("Meeting:index#updateMedia --> called with options=".concat((0, _stringify.default)(options)));
|
|
5671
5718
|
if (this.canUpdateMedia()) {
|
|
5672
|
-
|
|
5719
|
+
_context20.next = 5;
|
|
5673
5720
|
break;
|
|
5674
5721
|
}
|
|
5675
|
-
return
|
|
5722
|
+
return _context20.abrupt("return", this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.UPDATE_MEDIA, options));
|
|
5676
5723
|
case 5:
|
|
5677
5724
|
if (!this.isMultistream) {
|
|
5678
|
-
|
|
5725
|
+
_context20.next = 10;
|
|
5679
5726
|
break;
|
|
5680
5727
|
}
|
|
5681
5728
|
if (!(shareAudioEnabled !== undefined || shareVideoEnabled !== undefined)) {
|
|
5682
|
-
|
|
5729
|
+
_context20.next = 8;
|
|
5683
5730
|
break;
|
|
5684
5731
|
}
|
|
5685
5732
|
throw new Error('toggling shareAudioEnabled or shareVideoEnabled in a multistream meeting is not supported, to control receiving screen share call meeting.remoteMediaManager.setLayout() with appropriate layout');
|
|
5686
5733
|
case 8:
|
|
5687
|
-
|
|
5734
|
+
_context20.next = 12;
|
|
5688
5735
|
break;
|
|
5689
5736
|
case 10:
|
|
5690
5737
|
if (!(shareAudioEnabled !== undefined)) {
|
|
5691
|
-
|
|
5738
|
+
_context20.next = 12;
|
|
5692
5739
|
break;
|
|
5693
5740
|
}
|
|
5694
5741
|
throw new Error('toggling shareAudioEnabled in a transcoded meeting is not supported as of now');
|
|
@@ -5713,20 +5760,20 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5713
5760
|
this.mediaProperties.mediaDirection.receiveShare = !!(shareAudioEnabled || shareVideoEnabled);
|
|
5714
5761
|
}
|
|
5715
5762
|
if (this.isMultistream) {
|
|
5716
|
-
|
|
5763
|
+
_context20.next = 18;
|
|
5717
5764
|
break;
|
|
5718
5765
|
}
|
|
5719
|
-
|
|
5766
|
+
_context20.next = 18;
|
|
5720
5767
|
return this.updateTranscodedMediaConnection();
|
|
5721
5768
|
case 18:
|
|
5722
|
-
return
|
|
5769
|
+
return _context20.abrupt("return", undefined);
|
|
5723
5770
|
case 19:
|
|
5724
5771
|
case "end":
|
|
5725
|
-
return
|
|
5772
|
+
return _context20.stop();
|
|
5726
5773
|
}
|
|
5727
|
-
},
|
|
5774
|
+
}, _callee20, this);
|
|
5728
5775
|
}));
|
|
5729
|
-
function updateMedia(
|
|
5776
|
+
function updateMedia(_x15) {
|
|
5730
5777
|
return _updateMedia.apply(this, arguments);
|
|
5731
5778
|
}
|
|
5732
5779
|
return updateMedia;
|
|
@@ -6635,39 +6682,39 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6635
6682
|
}, {
|
|
6636
6683
|
key: "enableMusicMode",
|
|
6637
6684
|
value: function () {
|
|
6638
|
-
var _enableMusicMode = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6639
|
-
return _regenerator.default.wrap(function
|
|
6640
|
-
while (1) switch (
|
|
6685
|
+
var _enableMusicMode = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(shouldEnableMusicMode) {
|
|
6686
|
+
return _regenerator.default.wrap(function _callee21$(_context21) {
|
|
6687
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
6641
6688
|
case 0:
|
|
6642
6689
|
this.checkMediaConnection();
|
|
6643
6690
|
if (this.isMultistream) {
|
|
6644
|
-
|
|
6691
|
+
_context21.next = 3;
|
|
6645
6692
|
break;
|
|
6646
6693
|
}
|
|
6647
6694
|
throw new Error('enableMusicMode() only supported with multistream');
|
|
6648
6695
|
case 3:
|
|
6649
6696
|
if (!shouldEnableMusicMode) {
|
|
6650
|
-
|
|
6697
|
+
_context21.next = 8;
|
|
6651
6698
|
break;
|
|
6652
6699
|
}
|
|
6653
|
-
|
|
6700
|
+
_context21.next = 6;
|
|
6654
6701
|
return this.sendSlotManager.setCodecParameters(_internalMediaCore.MediaType.AudioMain, {
|
|
6655
6702
|
maxaveragebitrate: '64000',
|
|
6656
6703
|
maxplaybackrate: '48000'
|
|
6657
6704
|
});
|
|
6658
6705
|
case 6:
|
|
6659
|
-
|
|
6706
|
+
_context21.next = 10;
|
|
6660
6707
|
break;
|
|
6661
6708
|
case 8:
|
|
6662
|
-
|
|
6709
|
+
_context21.next = 10;
|
|
6663
6710
|
return this.sendSlotManager.deleteCodecParameters(_internalMediaCore.MediaType.AudioMain, ['maxaveragebitrate', 'maxplaybackrate']);
|
|
6664
6711
|
case 10:
|
|
6665
6712
|
case "end":
|
|
6666
|
-
return
|
|
6713
|
+
return _context21.stop();
|
|
6667
6714
|
}
|
|
6668
|
-
},
|
|
6715
|
+
}, _callee21, this);
|
|
6669
6716
|
}));
|
|
6670
|
-
function enableMusicMode(
|
|
6717
|
+
function enableMusicMode(_x16) {
|
|
6671
6718
|
return _enableMusicMode.apply(this, arguments);
|
|
6672
6719
|
}
|
|
6673
6720
|
return enableMusicMode;
|
|
@@ -6727,25 +6774,25 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6727
6774
|
}, {
|
|
6728
6775
|
key: "publishStream",
|
|
6729
6776
|
value: function () {
|
|
6730
|
-
var _publishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6731
|
-
return _regenerator.default.wrap(function
|
|
6732
|
-
while (1) switch (
|
|
6777
|
+
var _publishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(mediaType, stream) {
|
|
6778
|
+
return _regenerator.default.wrap(function _callee22$(_context22) {
|
|
6779
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
6733
6780
|
case 0:
|
|
6734
6781
|
if (stream) {
|
|
6735
|
-
|
|
6782
|
+
_context22.next = 2;
|
|
6736
6783
|
break;
|
|
6737
6784
|
}
|
|
6738
|
-
return
|
|
6785
|
+
return _context22.abrupt("return");
|
|
6739
6786
|
case 2:
|
|
6740
6787
|
if (!this.mediaProperties.webrtcMediaConnection) {
|
|
6741
|
-
|
|
6788
|
+
_context22.next = 7;
|
|
6742
6789
|
break;
|
|
6743
6790
|
}
|
|
6744
6791
|
if (!(this.isMultistream && this.mediaProperties.webrtcMediaConnection)) {
|
|
6745
|
-
|
|
6792
|
+
_context22.next = 6;
|
|
6746
6793
|
break;
|
|
6747
6794
|
}
|
|
6748
|
-
|
|
6795
|
+
_context22.next = 6;
|
|
6749
6796
|
return this.sendSlotManager.publishStream(mediaType, stream);
|
|
6750
6797
|
case 6:
|
|
6751
6798
|
this.emitPublishStateChangeEvent({
|
|
@@ -6756,11 +6803,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6756
6803
|
});
|
|
6757
6804
|
case 7:
|
|
6758
6805
|
case "end":
|
|
6759
|
-
return
|
|
6806
|
+
return _context22.stop();
|
|
6760
6807
|
}
|
|
6761
|
-
},
|
|
6808
|
+
}, _callee22, this);
|
|
6762
6809
|
}));
|
|
6763
|
-
function publishStream(
|
|
6810
|
+
function publishStream(_x17, _x18) {
|
|
6764
6811
|
return _publishStream.apply(this, arguments);
|
|
6765
6812
|
}
|
|
6766
6813
|
return publishStream;
|
|
@@ -6775,21 +6822,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6775
6822
|
}, {
|
|
6776
6823
|
key: "unpublishStream",
|
|
6777
6824
|
value: function () {
|
|
6778
|
-
var _unpublishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6779
|
-
return _regenerator.default.wrap(function
|
|
6780
|
-
while (1) switch (
|
|
6825
|
+
var _unpublishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23(mediaType, stream) {
|
|
6826
|
+
return _regenerator.default.wrap(function _callee23$(_context23) {
|
|
6827
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
6781
6828
|
case 0:
|
|
6782
6829
|
if (stream) {
|
|
6783
|
-
|
|
6830
|
+
_context23.next = 2;
|
|
6784
6831
|
break;
|
|
6785
6832
|
}
|
|
6786
|
-
return
|
|
6833
|
+
return _context23.abrupt("return");
|
|
6787
6834
|
case 2:
|
|
6788
6835
|
if (!(this.isMultistream && this.mediaProperties.webrtcMediaConnection)) {
|
|
6789
|
-
|
|
6836
|
+
_context23.next = 5;
|
|
6790
6837
|
break;
|
|
6791
6838
|
}
|
|
6792
|
-
|
|
6839
|
+
_context23.next = 5;
|
|
6793
6840
|
return this.sendSlotManager.unpublishStream(mediaType);
|
|
6794
6841
|
case 5:
|
|
6795
6842
|
this.emitPublishStateChangeEvent({
|
|
@@ -6800,11 +6847,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6800
6847
|
});
|
|
6801
6848
|
case 6:
|
|
6802
6849
|
case "end":
|
|
6803
|
-
return
|
|
6850
|
+
return _context23.stop();
|
|
6804
6851
|
}
|
|
6805
|
-
},
|
|
6852
|
+
}, _callee23, this);
|
|
6806
6853
|
}));
|
|
6807
|
-
function unpublishStream(
|
|
6854
|
+
function unpublishStream(_x19, _x20) {
|
|
6808
6855
|
return _unpublishStream.apply(this, arguments);
|
|
6809
6856
|
}
|
|
6810
6857
|
return unpublishStream;
|
|
@@ -6818,72 +6865,72 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6818
6865
|
}, {
|
|
6819
6866
|
key: "publishStreams",
|
|
6820
6867
|
value: function () {
|
|
6821
|
-
var _publishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6868
|
+
var _publishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24(streams) {
|
|
6822
6869
|
var _streams$screenShare, _streams$screenShare2, _streams$screenShare3, _streams$screenShare4;
|
|
6823
6870
|
var floorRequestNeeded, _streams$screenShare5;
|
|
6824
|
-
return _regenerator.default.wrap(function
|
|
6825
|
-
while (1) switch (
|
|
6871
|
+
return _regenerator.default.wrap(function _callee24$(_context24) {
|
|
6872
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
6826
6873
|
case 0:
|
|
6827
6874
|
this.checkMediaConnection();
|
|
6828
6875
|
if (!(!streams.microphone && !streams.camera && !((_streams$screenShare = streams.screenShare) !== null && _streams$screenShare !== void 0 && _streams$screenShare.audio) && !((_streams$screenShare2 = streams.screenShare) !== null && _streams$screenShare2 !== void 0 && _streams$screenShare2.video))) {
|
|
6829
|
-
|
|
6876
|
+
_context24.next = 3;
|
|
6830
6877
|
break;
|
|
6831
6878
|
}
|
|
6832
|
-
return
|
|
6879
|
+
return _context24.abrupt("return");
|
|
6833
6880
|
case 3:
|
|
6834
6881
|
floorRequestNeeded = false; // Screenshare Audio is supported only in multi stream. So we check for screenshare audio presence only if it's a multi stream meeting
|
|
6835
6882
|
if (!(this.isMultistream && (_streams$screenShare3 = streams.screenShare) !== null && _streams$screenShare3 !== void 0 && _streams$screenShare3.audio)) {
|
|
6836
|
-
|
|
6883
|
+
_context24.next = 8;
|
|
6837
6884
|
break;
|
|
6838
6885
|
}
|
|
6839
|
-
|
|
6886
|
+
_context24.next = 7;
|
|
6840
6887
|
return this.setLocalShareAudioStream(streams.screenShare.audio);
|
|
6841
6888
|
case 7:
|
|
6842
6889
|
floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
|
|
6843
6890
|
case 8:
|
|
6844
6891
|
if (!((_streams$screenShare4 = streams.screenShare) !== null && _streams$screenShare4 !== void 0 && _streams$screenShare4.video)) {
|
|
6845
|
-
|
|
6892
|
+
_context24.next = 12;
|
|
6846
6893
|
break;
|
|
6847
6894
|
}
|
|
6848
|
-
|
|
6895
|
+
_context24.next = 11;
|
|
6849
6896
|
return this.setLocalShareVideoStream((_streams$screenShare5 = streams.screenShare) === null || _streams$screenShare5 === void 0 ? void 0 : _streams$screenShare5.video);
|
|
6850
6897
|
case 11:
|
|
6851
6898
|
floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
|
|
6852
6899
|
case 12:
|
|
6853
6900
|
if (!streams.microphone) {
|
|
6854
|
-
|
|
6901
|
+
_context24.next = 15;
|
|
6855
6902
|
break;
|
|
6856
6903
|
}
|
|
6857
|
-
|
|
6904
|
+
_context24.next = 15;
|
|
6858
6905
|
return this.setLocalAudioStream(streams.microphone);
|
|
6859
6906
|
case 15:
|
|
6860
6907
|
if (!streams.camera) {
|
|
6861
|
-
|
|
6908
|
+
_context24.next = 18;
|
|
6862
6909
|
break;
|
|
6863
6910
|
}
|
|
6864
|
-
|
|
6911
|
+
_context24.next = 18;
|
|
6865
6912
|
return this.setLocalVideoStream(streams.camera);
|
|
6866
6913
|
case 18:
|
|
6867
6914
|
if (this.isMultistream) {
|
|
6868
|
-
|
|
6915
|
+
_context24.next = 21;
|
|
6869
6916
|
break;
|
|
6870
6917
|
}
|
|
6871
|
-
|
|
6918
|
+
_context24.next = 21;
|
|
6872
6919
|
return this.updateTranscodedMediaConnection();
|
|
6873
6920
|
case 21:
|
|
6874
6921
|
if (!floorRequestNeeded) {
|
|
6875
|
-
|
|
6922
|
+
_context24.next = 24;
|
|
6876
6923
|
break;
|
|
6877
6924
|
}
|
|
6878
|
-
|
|
6925
|
+
_context24.next = 24;
|
|
6879
6926
|
return this.enqueueScreenShareFloorRequest();
|
|
6880
6927
|
case 24:
|
|
6881
6928
|
case "end":
|
|
6882
|
-
return
|
|
6929
|
+
return _context24.stop();
|
|
6883
6930
|
}
|
|
6884
|
-
},
|
|
6931
|
+
}, _callee24, this);
|
|
6885
6932
|
}));
|
|
6886
|
-
function publishStreams(
|
|
6933
|
+
function publishStreams(_x21) {
|
|
6887
6934
|
return _publishStreams.apply(this, arguments);
|
|
6888
6935
|
}
|
|
6889
6936
|
return publishStreams;
|
|
@@ -6897,10 +6944,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6897
6944
|
}, {
|
|
6898
6945
|
key: "unpublishStreams",
|
|
6899
6946
|
value: function () {
|
|
6900
|
-
var _unpublishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6947
|
+
var _unpublishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25(streams) {
|
|
6901
6948
|
var promises, _iterator, _step, stream;
|
|
6902
|
-
return _regenerator.default.wrap(function
|
|
6903
|
-
while (1) switch (
|
|
6949
|
+
return _regenerator.default.wrap(function _callee25$(_context25) {
|
|
6950
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
6904
6951
|
case 0:
|
|
6905
6952
|
this.checkMediaConnection();
|
|
6906
6953
|
promises = [];
|
|
@@ -6931,7 +6978,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6931
6978
|
if (!this.isMultistream) {
|
|
6932
6979
|
promises.push(this.updateTranscodedMediaConnection());
|
|
6933
6980
|
}
|
|
6934
|
-
|
|
6981
|
+
_context25.next = 7;
|
|
6935
6982
|
return _promise.default.all(promises);
|
|
6936
6983
|
case 7:
|
|
6937
6984
|
// we're allowing for the SDK to support just audio share as well
|
|
@@ -6946,11 +6993,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6946
6993
|
}
|
|
6947
6994
|
case 8:
|
|
6948
6995
|
case "end":
|
|
6949
|
-
return
|
|
6996
|
+
return _context25.stop();
|
|
6950
6997
|
}
|
|
6951
|
-
},
|
|
6998
|
+
}, _callee25, this);
|
|
6952
6999
|
}));
|
|
6953
|
-
function unpublishStreams(
|
|
7000
|
+
function unpublishStreams(_x22) {
|
|
6954
7001
|
return _unpublishStreams.apply(this, arguments);
|
|
6955
7002
|
}
|
|
6956
7003
|
return unpublishStreams;
|