@webex/plugin-meetings 3.0.0-beta.262 → 3.0.0-beta.263
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 +171 -129
- 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/meeting/index.ts +32 -26
- package/src/reachability/index.ts +64 -1
- package/test/unit/spec/meeting/index.js +23 -13
- package/test/unit/spec/reachability/index.ts +208 -2
package/dist/breakouts/index.js
CHANGED
|
@@ -1041,7 +1041,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
|
|
|
1041
1041
|
this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
|
|
1042
1042
|
}
|
|
1043
1043
|
},
|
|
1044
|
-
version: "3.0.0-beta.
|
|
1044
|
+
version: "3.0.0-beta.263"
|
|
1045
1045
|
});
|
|
1046
1046
|
var _default = Breakouts;
|
|
1047
1047
|
exports.default = _default;
|
package/dist/meeting/index.js
CHANGED
|
@@ -5533,64 +5533,106 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5533
5533
|
return _promise.default.resolve();
|
|
5534
5534
|
}).then(function () {
|
|
5535
5535
|
return _this39.mediaProperties.getCurrentConnectionType();
|
|
5536
|
-
}).then(function (
|
|
5537
|
-
var
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5536
|
+
}).then( /*#__PURE__*/function () {
|
|
5537
|
+
var _ref24 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(connectionType) {
|
|
5538
|
+
var _this39$remoteMediaMa;
|
|
5539
|
+
var reachabilityStats;
|
|
5540
|
+
return _regenerator.default.wrap(function _callee18$(_context18) {
|
|
5541
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
5542
|
+
case 0:
|
|
5543
|
+
_context18.next = 2;
|
|
5544
|
+
return _this39.webex.meetings.reachability.getReachabilityMetrics();
|
|
5545
|
+
case 2:
|
|
5546
|
+
reachabilityStats = _context18.sent;
|
|
5547
|
+
_metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_SUCCESS, _objectSpread({
|
|
5548
|
+
correlation_id: _this39.correlationId,
|
|
5549
|
+
locus_id: _this39.locusUrl.split('/').pop(),
|
|
5550
|
+
connectionType: connectionType,
|
|
5551
|
+
isMultistream: _this39.isMultistream
|
|
5552
|
+
}, reachabilityStats));
|
|
5553
|
+
// @ts-ignore
|
|
5554
|
+
_this39.webex.internal.newMetrics.submitClientEvent({
|
|
5555
|
+
name: 'client.media-engine.ready',
|
|
5556
|
+
options: {
|
|
5557
|
+
meetingId: _this39.id
|
|
5558
|
+
}
|
|
5559
|
+
});
|
|
5560
|
+
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " successfully established media connection, type=").concat(connectionType));
|
|
5552
5561
|
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5562
|
+
// We can log ReceiveSlot SSRCs only after the SDP exchange, so doing it here:
|
|
5563
|
+
(_this39$remoteMediaMa = _this39.remoteMediaManager) === null || _this39$remoteMediaMa === void 0 ? void 0 : _this39$remoteMediaMa.logAllReceiveSlots();
|
|
5564
|
+
case 7:
|
|
5565
|
+
case "end":
|
|
5566
|
+
return _context18.stop();
|
|
5567
|
+
}
|
|
5568
|
+
}, _callee18);
|
|
5569
|
+
}));
|
|
5570
|
+
return function (_x13) {
|
|
5571
|
+
return _ref24.apply(this, arguments);
|
|
5572
|
+
};
|
|
5573
|
+
}()).catch( /*#__PURE__*/function () {
|
|
5574
|
+
var _ref25 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(error) {
|
|
5575
|
+
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;
|
|
5576
|
+
var reachabilityMetrics;
|
|
5577
|
+
return _regenerator.default.wrap(function _callee19$(_context19) {
|
|
5578
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
5579
|
+
case 0:
|
|
5580
|
+
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " failed to establish media connection: "), error);
|
|
5571
5581
|
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5582
|
+
// @ts-ignore
|
|
5583
|
+
_context19.next = 3;
|
|
5584
|
+
return _this39.webex.meetings.reachability.getReachabilityMetrics();
|
|
5585
|
+
case 3:
|
|
5586
|
+
reachabilityMetrics = _context19.sent;
|
|
5587
|
+
_metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_FAILURE, _objectSpread({
|
|
5588
|
+
correlation_id: _this39.correlationId,
|
|
5589
|
+
locus_id: _this39.locusUrl.split('/').pop(),
|
|
5590
|
+
reason: error.message,
|
|
5591
|
+
stack: error.stack,
|
|
5592
|
+
code: error.code,
|
|
5593
|
+
turnDiscoverySkippedReason: turnDiscoverySkippedReason,
|
|
5594
|
+
turnServerUsed: turnServerUsed,
|
|
5595
|
+
isMultistream: _this39.isMultistream,
|
|
5596
|
+
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',
|
|
5597
|
+
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',
|
|
5598
|
+
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'
|
|
5599
|
+
}, reachabilityMetrics));
|
|
5600
|
+
|
|
5601
|
+
// Clean up stats analyzer, peer connection, and turn off listeners
|
|
5602
|
+
if (!_this39.statsAnalyzer) {
|
|
5603
|
+
_context19.next = 8;
|
|
5604
|
+
break;
|
|
5605
|
+
}
|
|
5606
|
+
_context19.next = 8;
|
|
5607
|
+
return _this39.statsAnalyzer.stopAnalyzer();
|
|
5608
|
+
case 8:
|
|
5609
|
+
_this39.statsAnalyzer = null;
|
|
5610
|
+
if (_this39.mediaProperties.webrtcMediaConnection) {
|
|
5611
|
+
_this39.closePeerConnections();
|
|
5612
|
+
_this39.unsetPeerConnections();
|
|
5613
|
+
}
|
|
5580
5614
|
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5615
|
+
// Upload logs on error while adding media
|
|
5616
|
+
_triggerProxy.default.trigger(_this39, {
|
|
5617
|
+
file: 'meeting/index',
|
|
5618
|
+
function: 'addMedia'
|
|
5619
|
+
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this39);
|
|
5620
|
+
if (error instanceof _internalMediaCore.Errors.SdpError) {
|
|
5621
|
+
_this39.leave({
|
|
5622
|
+
reason: _constants.MEETING_REMOVED_REASON.MEETING_CONNECTION_FAILED
|
|
5623
|
+
});
|
|
5624
|
+
}
|
|
5625
|
+
throw error;
|
|
5626
|
+
case 13:
|
|
5627
|
+
case "end":
|
|
5628
|
+
return _context19.stop();
|
|
5629
|
+
}
|
|
5630
|
+
}, _callee19);
|
|
5631
|
+
}));
|
|
5632
|
+
return function (_x14) {
|
|
5633
|
+
return _ref25.apply(this, arguments);
|
|
5634
|
+
};
|
|
5635
|
+
}());
|
|
5594
5636
|
}
|
|
5595
5637
|
|
|
5596
5638
|
/**
|
|
@@ -5660,35 +5702,35 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5660
5702
|
* @memberof Meeting
|
|
5661
5703
|
*/
|
|
5662
5704
|
function () {
|
|
5663
|
-
var _updateMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
5705
|
+
var _updateMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(options) {
|
|
5664
5706
|
var audioEnabled, videoEnabled, shareAudioEnabled, shareVideoEnabled;
|
|
5665
|
-
return _regenerator.default.wrap(function
|
|
5666
|
-
while (1) switch (
|
|
5707
|
+
return _regenerator.default.wrap(function _callee20$(_context20) {
|
|
5708
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
5667
5709
|
case 0:
|
|
5668
5710
|
this.checkMediaConnection();
|
|
5669
5711
|
audioEnabled = options.audioEnabled, videoEnabled = options.videoEnabled, shareAudioEnabled = options.shareAudioEnabled, shareVideoEnabled = options.shareVideoEnabled;
|
|
5670
5712
|
_loggerProxy.default.logger.log("Meeting:index#updateMedia --> called with options=".concat((0, _stringify.default)(options)));
|
|
5671
5713
|
if (this.canUpdateMedia()) {
|
|
5672
|
-
|
|
5714
|
+
_context20.next = 5;
|
|
5673
5715
|
break;
|
|
5674
5716
|
}
|
|
5675
|
-
return
|
|
5717
|
+
return _context20.abrupt("return", this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.UPDATE_MEDIA, options));
|
|
5676
5718
|
case 5:
|
|
5677
5719
|
if (!this.isMultistream) {
|
|
5678
|
-
|
|
5720
|
+
_context20.next = 10;
|
|
5679
5721
|
break;
|
|
5680
5722
|
}
|
|
5681
5723
|
if (!(shareAudioEnabled !== undefined || shareVideoEnabled !== undefined)) {
|
|
5682
|
-
|
|
5724
|
+
_context20.next = 8;
|
|
5683
5725
|
break;
|
|
5684
5726
|
}
|
|
5685
5727
|
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
5728
|
case 8:
|
|
5687
|
-
|
|
5729
|
+
_context20.next = 12;
|
|
5688
5730
|
break;
|
|
5689
5731
|
case 10:
|
|
5690
5732
|
if (!(shareAudioEnabled !== undefined)) {
|
|
5691
|
-
|
|
5733
|
+
_context20.next = 12;
|
|
5692
5734
|
break;
|
|
5693
5735
|
}
|
|
5694
5736
|
throw new Error('toggling shareAudioEnabled in a transcoded meeting is not supported as of now');
|
|
@@ -5713,20 +5755,20 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5713
5755
|
this.mediaProperties.mediaDirection.receiveShare = !!(shareAudioEnabled || shareVideoEnabled);
|
|
5714
5756
|
}
|
|
5715
5757
|
if (this.isMultistream) {
|
|
5716
|
-
|
|
5758
|
+
_context20.next = 18;
|
|
5717
5759
|
break;
|
|
5718
5760
|
}
|
|
5719
|
-
|
|
5761
|
+
_context20.next = 18;
|
|
5720
5762
|
return this.updateTranscodedMediaConnection();
|
|
5721
5763
|
case 18:
|
|
5722
|
-
return
|
|
5764
|
+
return _context20.abrupt("return", undefined);
|
|
5723
5765
|
case 19:
|
|
5724
5766
|
case "end":
|
|
5725
|
-
return
|
|
5767
|
+
return _context20.stop();
|
|
5726
5768
|
}
|
|
5727
|
-
},
|
|
5769
|
+
}, _callee20, this);
|
|
5728
5770
|
}));
|
|
5729
|
-
function updateMedia(
|
|
5771
|
+
function updateMedia(_x15) {
|
|
5730
5772
|
return _updateMedia.apply(this, arguments);
|
|
5731
5773
|
}
|
|
5732
5774
|
return updateMedia;
|
|
@@ -6635,39 +6677,39 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6635
6677
|
}, {
|
|
6636
6678
|
key: "enableMusicMode",
|
|
6637
6679
|
value: function () {
|
|
6638
|
-
var _enableMusicMode = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6639
|
-
return _regenerator.default.wrap(function
|
|
6640
|
-
while (1) switch (
|
|
6680
|
+
var _enableMusicMode = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(shouldEnableMusicMode) {
|
|
6681
|
+
return _regenerator.default.wrap(function _callee21$(_context21) {
|
|
6682
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
6641
6683
|
case 0:
|
|
6642
6684
|
this.checkMediaConnection();
|
|
6643
6685
|
if (this.isMultistream) {
|
|
6644
|
-
|
|
6686
|
+
_context21.next = 3;
|
|
6645
6687
|
break;
|
|
6646
6688
|
}
|
|
6647
6689
|
throw new Error('enableMusicMode() only supported with multistream');
|
|
6648
6690
|
case 3:
|
|
6649
6691
|
if (!shouldEnableMusicMode) {
|
|
6650
|
-
|
|
6692
|
+
_context21.next = 8;
|
|
6651
6693
|
break;
|
|
6652
6694
|
}
|
|
6653
|
-
|
|
6695
|
+
_context21.next = 6;
|
|
6654
6696
|
return this.sendSlotManager.setCodecParameters(_internalMediaCore.MediaType.AudioMain, {
|
|
6655
6697
|
maxaveragebitrate: '64000',
|
|
6656
6698
|
maxplaybackrate: '48000'
|
|
6657
6699
|
});
|
|
6658
6700
|
case 6:
|
|
6659
|
-
|
|
6701
|
+
_context21.next = 10;
|
|
6660
6702
|
break;
|
|
6661
6703
|
case 8:
|
|
6662
|
-
|
|
6704
|
+
_context21.next = 10;
|
|
6663
6705
|
return this.sendSlotManager.deleteCodecParameters(_internalMediaCore.MediaType.AudioMain, ['maxaveragebitrate', 'maxplaybackrate']);
|
|
6664
6706
|
case 10:
|
|
6665
6707
|
case "end":
|
|
6666
|
-
return
|
|
6708
|
+
return _context21.stop();
|
|
6667
6709
|
}
|
|
6668
|
-
},
|
|
6710
|
+
}, _callee21, this);
|
|
6669
6711
|
}));
|
|
6670
|
-
function enableMusicMode(
|
|
6712
|
+
function enableMusicMode(_x16) {
|
|
6671
6713
|
return _enableMusicMode.apply(this, arguments);
|
|
6672
6714
|
}
|
|
6673
6715
|
return enableMusicMode;
|
|
@@ -6727,25 +6769,25 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6727
6769
|
}, {
|
|
6728
6770
|
key: "publishStream",
|
|
6729
6771
|
value: function () {
|
|
6730
|
-
var _publishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6731
|
-
return _regenerator.default.wrap(function
|
|
6732
|
-
while (1) switch (
|
|
6772
|
+
var _publishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(mediaType, stream) {
|
|
6773
|
+
return _regenerator.default.wrap(function _callee22$(_context22) {
|
|
6774
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
6733
6775
|
case 0:
|
|
6734
6776
|
if (stream) {
|
|
6735
|
-
|
|
6777
|
+
_context22.next = 2;
|
|
6736
6778
|
break;
|
|
6737
6779
|
}
|
|
6738
|
-
return
|
|
6780
|
+
return _context22.abrupt("return");
|
|
6739
6781
|
case 2:
|
|
6740
6782
|
if (!this.mediaProperties.webrtcMediaConnection) {
|
|
6741
|
-
|
|
6783
|
+
_context22.next = 7;
|
|
6742
6784
|
break;
|
|
6743
6785
|
}
|
|
6744
6786
|
if (!(this.isMultistream && this.mediaProperties.webrtcMediaConnection)) {
|
|
6745
|
-
|
|
6787
|
+
_context22.next = 6;
|
|
6746
6788
|
break;
|
|
6747
6789
|
}
|
|
6748
|
-
|
|
6790
|
+
_context22.next = 6;
|
|
6749
6791
|
return this.sendSlotManager.publishStream(mediaType, stream);
|
|
6750
6792
|
case 6:
|
|
6751
6793
|
this.emitPublishStateChangeEvent({
|
|
@@ -6756,11 +6798,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6756
6798
|
});
|
|
6757
6799
|
case 7:
|
|
6758
6800
|
case "end":
|
|
6759
|
-
return
|
|
6801
|
+
return _context22.stop();
|
|
6760
6802
|
}
|
|
6761
|
-
},
|
|
6803
|
+
}, _callee22, this);
|
|
6762
6804
|
}));
|
|
6763
|
-
function publishStream(
|
|
6805
|
+
function publishStream(_x17, _x18) {
|
|
6764
6806
|
return _publishStream.apply(this, arguments);
|
|
6765
6807
|
}
|
|
6766
6808
|
return publishStream;
|
|
@@ -6775,21 +6817,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6775
6817
|
}, {
|
|
6776
6818
|
key: "unpublishStream",
|
|
6777
6819
|
value: function () {
|
|
6778
|
-
var _unpublishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6779
|
-
return _regenerator.default.wrap(function
|
|
6780
|
-
while (1) switch (
|
|
6820
|
+
var _unpublishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23(mediaType, stream) {
|
|
6821
|
+
return _regenerator.default.wrap(function _callee23$(_context23) {
|
|
6822
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
6781
6823
|
case 0:
|
|
6782
6824
|
if (stream) {
|
|
6783
|
-
|
|
6825
|
+
_context23.next = 2;
|
|
6784
6826
|
break;
|
|
6785
6827
|
}
|
|
6786
|
-
return
|
|
6828
|
+
return _context23.abrupt("return");
|
|
6787
6829
|
case 2:
|
|
6788
6830
|
if (!(this.isMultistream && this.mediaProperties.webrtcMediaConnection)) {
|
|
6789
|
-
|
|
6831
|
+
_context23.next = 5;
|
|
6790
6832
|
break;
|
|
6791
6833
|
}
|
|
6792
|
-
|
|
6834
|
+
_context23.next = 5;
|
|
6793
6835
|
return this.sendSlotManager.unpublishStream(mediaType);
|
|
6794
6836
|
case 5:
|
|
6795
6837
|
this.emitPublishStateChangeEvent({
|
|
@@ -6800,11 +6842,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6800
6842
|
});
|
|
6801
6843
|
case 6:
|
|
6802
6844
|
case "end":
|
|
6803
|
-
return
|
|
6845
|
+
return _context23.stop();
|
|
6804
6846
|
}
|
|
6805
|
-
},
|
|
6847
|
+
}, _callee23, this);
|
|
6806
6848
|
}));
|
|
6807
|
-
function unpublishStream(
|
|
6849
|
+
function unpublishStream(_x19, _x20) {
|
|
6808
6850
|
return _unpublishStream.apply(this, arguments);
|
|
6809
6851
|
}
|
|
6810
6852
|
return unpublishStream;
|
|
@@ -6818,72 +6860,72 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6818
6860
|
}, {
|
|
6819
6861
|
key: "publishStreams",
|
|
6820
6862
|
value: function () {
|
|
6821
|
-
var _publishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6863
|
+
var _publishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24(streams) {
|
|
6822
6864
|
var _streams$screenShare, _streams$screenShare2, _streams$screenShare3, _streams$screenShare4;
|
|
6823
6865
|
var floorRequestNeeded, _streams$screenShare5;
|
|
6824
|
-
return _regenerator.default.wrap(function
|
|
6825
|
-
while (1) switch (
|
|
6866
|
+
return _regenerator.default.wrap(function _callee24$(_context24) {
|
|
6867
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
6826
6868
|
case 0:
|
|
6827
6869
|
this.checkMediaConnection();
|
|
6828
6870
|
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
|
-
|
|
6871
|
+
_context24.next = 3;
|
|
6830
6872
|
break;
|
|
6831
6873
|
}
|
|
6832
|
-
return
|
|
6874
|
+
return _context24.abrupt("return");
|
|
6833
6875
|
case 3:
|
|
6834
6876
|
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
6877
|
if (!(this.isMultistream && (_streams$screenShare3 = streams.screenShare) !== null && _streams$screenShare3 !== void 0 && _streams$screenShare3.audio)) {
|
|
6836
|
-
|
|
6878
|
+
_context24.next = 8;
|
|
6837
6879
|
break;
|
|
6838
6880
|
}
|
|
6839
|
-
|
|
6881
|
+
_context24.next = 7;
|
|
6840
6882
|
return this.setLocalShareAudioStream(streams.screenShare.audio);
|
|
6841
6883
|
case 7:
|
|
6842
6884
|
floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
|
|
6843
6885
|
case 8:
|
|
6844
6886
|
if (!((_streams$screenShare4 = streams.screenShare) !== null && _streams$screenShare4 !== void 0 && _streams$screenShare4.video)) {
|
|
6845
|
-
|
|
6887
|
+
_context24.next = 12;
|
|
6846
6888
|
break;
|
|
6847
6889
|
}
|
|
6848
|
-
|
|
6890
|
+
_context24.next = 11;
|
|
6849
6891
|
return this.setLocalShareVideoStream((_streams$screenShare5 = streams.screenShare) === null || _streams$screenShare5 === void 0 ? void 0 : _streams$screenShare5.video);
|
|
6850
6892
|
case 11:
|
|
6851
6893
|
floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
|
|
6852
6894
|
case 12:
|
|
6853
6895
|
if (!streams.microphone) {
|
|
6854
|
-
|
|
6896
|
+
_context24.next = 15;
|
|
6855
6897
|
break;
|
|
6856
6898
|
}
|
|
6857
|
-
|
|
6899
|
+
_context24.next = 15;
|
|
6858
6900
|
return this.setLocalAudioStream(streams.microphone);
|
|
6859
6901
|
case 15:
|
|
6860
6902
|
if (!streams.camera) {
|
|
6861
|
-
|
|
6903
|
+
_context24.next = 18;
|
|
6862
6904
|
break;
|
|
6863
6905
|
}
|
|
6864
|
-
|
|
6906
|
+
_context24.next = 18;
|
|
6865
6907
|
return this.setLocalVideoStream(streams.camera);
|
|
6866
6908
|
case 18:
|
|
6867
6909
|
if (this.isMultistream) {
|
|
6868
|
-
|
|
6910
|
+
_context24.next = 21;
|
|
6869
6911
|
break;
|
|
6870
6912
|
}
|
|
6871
|
-
|
|
6913
|
+
_context24.next = 21;
|
|
6872
6914
|
return this.updateTranscodedMediaConnection();
|
|
6873
6915
|
case 21:
|
|
6874
6916
|
if (!floorRequestNeeded) {
|
|
6875
|
-
|
|
6917
|
+
_context24.next = 24;
|
|
6876
6918
|
break;
|
|
6877
6919
|
}
|
|
6878
|
-
|
|
6920
|
+
_context24.next = 24;
|
|
6879
6921
|
return this.enqueueScreenShareFloorRequest();
|
|
6880
6922
|
case 24:
|
|
6881
6923
|
case "end":
|
|
6882
|
-
return
|
|
6924
|
+
return _context24.stop();
|
|
6883
6925
|
}
|
|
6884
|
-
},
|
|
6926
|
+
}, _callee24, this);
|
|
6885
6927
|
}));
|
|
6886
|
-
function publishStreams(
|
|
6928
|
+
function publishStreams(_x21) {
|
|
6887
6929
|
return _publishStreams.apply(this, arguments);
|
|
6888
6930
|
}
|
|
6889
6931
|
return publishStreams;
|
|
@@ -6897,10 +6939,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6897
6939
|
}, {
|
|
6898
6940
|
key: "unpublishStreams",
|
|
6899
6941
|
value: function () {
|
|
6900
|
-
var _unpublishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6942
|
+
var _unpublishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25(streams) {
|
|
6901
6943
|
var promises, _iterator, _step, stream;
|
|
6902
|
-
return _regenerator.default.wrap(function
|
|
6903
|
-
while (1) switch (
|
|
6944
|
+
return _regenerator.default.wrap(function _callee25$(_context25) {
|
|
6945
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
6904
6946
|
case 0:
|
|
6905
6947
|
this.checkMediaConnection();
|
|
6906
6948
|
promises = [];
|
|
@@ -6931,7 +6973,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6931
6973
|
if (!this.isMultistream) {
|
|
6932
6974
|
promises.push(this.updateTranscodedMediaConnection());
|
|
6933
6975
|
}
|
|
6934
|
-
|
|
6976
|
+
_context25.next = 7;
|
|
6935
6977
|
return _promise.default.all(promises);
|
|
6936
6978
|
case 7:
|
|
6937
6979
|
// we're allowing for the SDK to support just audio share as well
|
|
@@ -6946,11 +6988,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6946
6988
|
}
|
|
6947
6989
|
case 8:
|
|
6948
6990
|
case "end":
|
|
6949
|
-
return
|
|
6991
|
+
return _context25.stop();
|
|
6950
6992
|
}
|
|
6951
|
-
},
|
|
6993
|
+
}, _callee25, this);
|
|
6952
6994
|
}));
|
|
6953
|
-
function unpublishStreams(
|
|
6995
|
+
function unpublishStreams(_x22) {
|
|
6954
6996
|
return _unpublishStreams.apply(this, arguments);
|
|
6955
6997
|
}
|
|
6956
6998
|
return unpublishStreams;
|