@webex/plugin-meetings 3.0.0-beta.255 → 3.0.0-beta.256
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 +164 -192
- package/dist/meeting/index.js.map +1 -1
- package/dist/metrics/constants.js +2 -0
- package/dist/metrics/constants.js.map +1 -1
- package/dist/types/metrics/constants.d.ts +2 -0
- package/package.json +19 -19
- package/src/meeting/index.ts +52 -28
- package/src/metrics/constants.ts +2 -0
- package/test/unit/spec/meeting/index.js +130 -30
package/dist/meeting/index.js
CHANGED
|
@@ -4713,74 +4713,13 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4713
4713
|
return _util.default.joinMeetingOptions(this, options).then(function (join) {
|
|
4714
4714
|
_this32.meetingFiniteStateMachine.join();
|
|
4715
4715
|
_loggerProxy.default.logger.log('Meeting:index#join --> Success');
|
|
4716
|
-
return join;
|
|
4717
|
-
}).then(function (join) {
|
|
4718
|
-
joinSuccess(join);
|
|
4719
|
-
_this32.deferJoin = undefined;
|
|
4720
4716
|
_metrics.default.sendBehavioralMetric(_constants2.default.JOIN_SUCCESS, {
|
|
4721
4717
|
correlation_id: _this32.correlationId
|
|
4722
4718
|
});
|
|
4719
|
+
joinSuccess(join);
|
|
4720
|
+
_this32.deferJoin = undefined;
|
|
4723
4721
|
return join;
|
|
4724
|
-
}).
|
|
4725
|
-
var _ref22 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(join) {
|
|
4726
|
-
return _regenerator.default.wrap(function _callee13$(_context13) {
|
|
4727
|
-
while (1) switch (_context13.prev = _context13.next) {
|
|
4728
|
-
case 0:
|
|
4729
|
-
if (!_this32.config.enableAutomaticLLM) {
|
|
4730
|
-
_context13.next = 3;
|
|
4731
|
-
break;
|
|
4732
|
-
}
|
|
4733
|
-
_context13.next = 3;
|
|
4734
|
-
return _this32.updateLLMConnection();
|
|
4735
|
-
case 3:
|
|
4736
|
-
return _context13.abrupt("return", join);
|
|
4737
|
-
case 4:
|
|
4738
|
-
case "end":
|
|
4739
|
-
return _context13.stop();
|
|
4740
|
-
}
|
|
4741
|
-
}, _callee13);
|
|
4742
|
-
}));
|
|
4743
|
-
return function (_x10) {
|
|
4744
|
-
return _ref22.apply(this, arguments);
|
|
4745
|
-
};
|
|
4746
|
-
}()).then( /*#__PURE__*/function () {
|
|
4747
|
-
var _ref23 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(join) {
|
|
4748
|
-
return _regenerator.default.wrap(function _callee14$(_context14) {
|
|
4749
|
-
while (1) switch (_context14.prev = _context14.next) {
|
|
4750
|
-
case 0:
|
|
4751
|
-
if (!isBrowser) {
|
|
4752
|
-
_context14.next = 8;
|
|
4753
|
-
break;
|
|
4754
|
-
}
|
|
4755
|
-
if (!(_this32.config.receiveTranscription || options.receiveTranscription)) {
|
|
4756
|
-
_context14.next = 6;
|
|
4757
|
-
break;
|
|
4758
|
-
}
|
|
4759
|
-
if (!_this32.isTranscriptionSupported()) {
|
|
4760
|
-
_context14.next = 6;
|
|
4761
|
-
break;
|
|
4762
|
-
}
|
|
4763
|
-
_context14.next = 5;
|
|
4764
|
-
return _this32.receiveTranscription();
|
|
4765
|
-
case 5:
|
|
4766
|
-
_loggerProxy.default.logger.info('Meeting:index#join --> enabled to recieve transcription!');
|
|
4767
|
-
case 6:
|
|
4768
|
-
_context14.next = 9;
|
|
4769
|
-
break;
|
|
4770
|
-
case 8:
|
|
4771
|
-
_loggerProxy.default.logger.error('Meeting:index#join --> Receving transcription is not supported on this platform');
|
|
4772
|
-
case 9:
|
|
4773
|
-
return _context14.abrupt("return", join);
|
|
4774
|
-
case 10:
|
|
4775
|
-
case "end":
|
|
4776
|
-
return _context14.stop();
|
|
4777
|
-
}
|
|
4778
|
-
}, _callee14);
|
|
4779
|
-
}));
|
|
4780
|
-
return function (_x11) {
|
|
4781
|
-
return _ref23.apply(this, arguments);
|
|
4782
|
-
};
|
|
4783
|
-
}()).catch(function (error) {
|
|
4722
|
+
}).catch(function (error) {
|
|
4784
4723
|
var _this32$meetingInfo, _error$error;
|
|
4785
4724
|
_this32.meetingFiniteStateMachine.fail(error);
|
|
4786
4725
|
_loggerProxy.default.logger.error('Meeting:index#join --> Failed', error);
|
|
@@ -4814,6 +4753,39 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4814
4753
|
joinFailed(error);
|
|
4815
4754
|
_this32.deferJoin = undefined;
|
|
4816
4755
|
return _promise.default.reject(error);
|
|
4756
|
+
}).then(function (join) {
|
|
4757
|
+
// @ts-ignore - config coming from registerPlugin
|
|
4758
|
+
if (_this32.config.enableAutomaticLLM) {
|
|
4759
|
+
_this32.updateLLMConnection().catch(function (error) {
|
|
4760
|
+
_loggerProxy.default.logger.error('Meeting:index#join --> Update LLM Connection Failed', error);
|
|
4761
|
+
_metrics.default.sendBehavioralMetric(_constants2.default.LLM_CONNECTION_AFTER_JOIN_FAILURE, {
|
|
4762
|
+
correlation_id: _this32.correlationId,
|
|
4763
|
+
reason: error === null || error === void 0 ? void 0 : error.message,
|
|
4764
|
+
stack: error.stack
|
|
4765
|
+
});
|
|
4766
|
+
});
|
|
4767
|
+
}
|
|
4768
|
+
return join;
|
|
4769
|
+
}).then(function (join) {
|
|
4770
|
+
if (isBrowser) {
|
|
4771
|
+
// @ts-ignore - config coming from registerPlugin
|
|
4772
|
+
if (_this32.config.receiveTranscription || options.receiveTranscription) {
|
|
4773
|
+
if (_this32.isTranscriptionSupported()) {
|
|
4774
|
+
_loggerProxy.default.logger.info('Meeting:index#join --> Attempting to enabled to recieve transcription!');
|
|
4775
|
+
_this32.receiveTranscription().catch(function (error) {
|
|
4776
|
+
_loggerProxy.default.logger.error('Meeting:index#join --> Receive Transcription Failed', error);
|
|
4777
|
+
_metrics.default.sendBehavioralMetric(_constants2.default.RECEIVE_TRANSCRIPTION_AFTER_JOIN_FAILURE, {
|
|
4778
|
+
correlation_id: _this32.correlationId,
|
|
4779
|
+
reason: error === null || error === void 0 ? void 0 : error.message,
|
|
4780
|
+
stack: error.stack
|
|
4781
|
+
});
|
|
4782
|
+
});
|
|
4783
|
+
}
|
|
4784
|
+
}
|
|
4785
|
+
} else {
|
|
4786
|
+
_loggerProxy.default.logger.error('Meeting:index#join --> Receving transcription is not supported on this platform');
|
|
4787
|
+
}
|
|
4788
|
+
return join;
|
|
4817
4789
|
});
|
|
4818
4790
|
}
|
|
4819
4791
|
|
|
@@ -4826,38 +4798,38 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4826
4798
|
}, {
|
|
4827
4799
|
key: "updateLLMConnection",
|
|
4828
4800
|
value: function () {
|
|
4829
|
-
var _updateLLMConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
4801
|
+
var _updateLLMConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
|
|
4830
4802
|
var _this33 = this;
|
|
4831
4803
|
var _this$locusInfo6, url, _this$locusInfo6$info, _this$locusInfo6$info2, datachannelUrl, isJoined;
|
|
4832
|
-
return _regenerator.default.wrap(function
|
|
4833
|
-
while (1) switch (
|
|
4804
|
+
return _regenerator.default.wrap(function _callee13$(_context13) {
|
|
4805
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
4834
4806
|
case 0:
|
|
4835
4807
|
// @ts-ignore - Fix type
|
|
4836
4808
|
_this$locusInfo6 = this.locusInfo, url = _this$locusInfo6.url, _this$locusInfo6$info = _this$locusInfo6.info, _this$locusInfo6$info2 = _this$locusInfo6$info === void 0 ? {} : _this$locusInfo6$info, datachannelUrl = _this$locusInfo6$info2.datachannelUrl;
|
|
4837
4809
|
isJoined = this.isJoined(); // @ts-ignore - Fix type
|
|
4838
4810
|
if (!this.webex.internal.llm.isConnected()) {
|
|
4839
|
-
|
|
4811
|
+
_context13.next = 8;
|
|
4840
4812
|
break;
|
|
4841
4813
|
}
|
|
4842
4814
|
if (!(url === this.webex.internal.llm.getLocusUrl() && isJoined)) {
|
|
4843
|
-
|
|
4815
|
+
_context13.next = 5;
|
|
4844
4816
|
break;
|
|
4845
4817
|
}
|
|
4846
|
-
return
|
|
4818
|
+
return _context13.abrupt("return", undefined);
|
|
4847
4819
|
case 5:
|
|
4848
|
-
|
|
4820
|
+
_context13.next = 7;
|
|
4849
4821
|
return this.webex.internal.llm.disconnectLLM();
|
|
4850
4822
|
case 7:
|
|
4851
4823
|
// @ts-ignore - Fix type
|
|
4852
4824
|
this.webex.internal.llm.off('event:relay.event', this.processRelayEvent);
|
|
4853
4825
|
case 8:
|
|
4854
4826
|
if (isJoined) {
|
|
4855
|
-
|
|
4827
|
+
_context13.next = 10;
|
|
4856
4828
|
break;
|
|
4857
4829
|
}
|
|
4858
|
-
return
|
|
4830
|
+
return _context13.abrupt("return", undefined);
|
|
4859
4831
|
case 10:
|
|
4860
|
-
return
|
|
4832
|
+
return _context13.abrupt("return", this.webex.internal.llm.registerAndConnect(url, datachannelUrl).then(function (registerAndConnectResult) {
|
|
4861
4833
|
// @ts-ignore - Fix type
|
|
4862
4834
|
_this33.webex.internal.llm.off('event:relay.event', _this33.processRelayEvent);
|
|
4863
4835
|
// @ts-ignore - Fix type
|
|
@@ -4867,9 +4839,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4867
4839
|
}));
|
|
4868
4840
|
case 11:
|
|
4869
4841
|
case "end":
|
|
4870
|
-
return
|
|
4842
|
+
return _context13.stop();
|
|
4871
4843
|
}
|
|
4872
|
-
},
|
|
4844
|
+
}, _callee13, this);
|
|
4873
4845
|
}));
|
|
4874
4846
|
function updateLLMConnection() {
|
|
4875
4847
|
return _updateLLMConnection.apply(this, arguments);
|
|
@@ -5040,17 +5012,17 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5040
5012
|
meetingId: this.id
|
|
5041
5013
|
}
|
|
5042
5014
|
});
|
|
5043
|
-
this.locusInfo.once(_constants.LOCUSINFO.EVENTS.SELF_OBSERVING, /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
5015
|
+
this.locusInfo.once(_constants.LOCUSINFO.EVENTS.SELF_OBSERVING, /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14() {
|
|
5044
5016
|
var mediaSettings;
|
|
5045
|
-
return _regenerator.default.wrap(function
|
|
5046
|
-
while (1) switch (
|
|
5017
|
+
return _regenerator.default.wrap(function _callee14$(_context14) {
|
|
5018
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
5047
5019
|
case 0:
|
|
5048
|
-
|
|
5020
|
+
_context14.prev = 0;
|
|
5049
5021
|
if (!(_this36.screenShareFloorState === ScreenShareFloorStatus.GRANTED)) {
|
|
5050
|
-
|
|
5022
|
+
_context14.next = 4;
|
|
5051
5023
|
break;
|
|
5052
5024
|
}
|
|
5053
|
-
|
|
5025
|
+
_context14.next = 4;
|
|
5054
5026
|
return _this36.releaseScreenShareFloor();
|
|
5055
5027
|
case 4:
|
|
5056
5028
|
mediaSettings = {
|
|
@@ -5070,28 +5042,28 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5070
5042
|
// when a move to is intiated by the client , Locus delets the existing media node from the server as soon the DX answers the meeting
|
|
5071
5043
|
// once the DX answers we establish connection back the media server with only receiveShare enabled
|
|
5072
5044
|
// @ts-ignore - reconnectMedia does not accept any argument
|
|
5073
|
-
|
|
5045
|
+
_context14.next = 10;
|
|
5074
5046
|
return _this36.reconnectionManager.reconnectMedia(mediaSettings).then(function () {
|
|
5075
5047
|
_metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_SUCCESS);
|
|
5076
5048
|
});
|
|
5077
5049
|
case 10:
|
|
5078
|
-
|
|
5050
|
+
_context14.next = 16;
|
|
5079
5051
|
break;
|
|
5080
5052
|
case 12:
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
_loggerProxy.default.logger.error('Meeting:index#moveTo --> Failed to moveTo resourceId',
|
|
5053
|
+
_context14.prev = 12;
|
|
5054
|
+
_context14.t0 = _context14["catch"](0);
|
|
5055
|
+
_loggerProxy.default.logger.error('Meeting:index#moveTo --> Failed to moveTo resourceId', _context14.t0);
|
|
5084
5056
|
_metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_FAILURE, {
|
|
5085
5057
|
correlation_id: _this36.correlationId,
|
|
5086
5058
|
locus_id: _this36.locusUrl.split('/').pop(),
|
|
5087
|
-
reason:
|
|
5088
|
-
stack:
|
|
5059
|
+
reason: _context14.t0.message,
|
|
5060
|
+
stack: _context14.t0.stack
|
|
5089
5061
|
});
|
|
5090
5062
|
case 16:
|
|
5091
5063
|
case "end":
|
|
5092
|
-
return
|
|
5064
|
+
return _context14.stop();
|
|
5093
5065
|
}
|
|
5094
|
-
},
|
|
5066
|
+
}, _callee14, null, [[0, 12]]);
|
|
5095
5067
|
})));
|
|
5096
5068
|
_loggerProxy.default.logger.info('Meeting:index#moveTo --> Initated moved to using resourceId', resourceId);
|
|
5097
5069
|
return _util.default.joinMeetingOptions(this, {
|
|
@@ -5181,10 +5153,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5181
5153
|
}, {
|
|
5182
5154
|
key: "createMediaConnection",
|
|
5183
5155
|
value: function () {
|
|
5184
|
-
var _createMediaConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
5156
|
+
var _createMediaConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15(turnServerInfo, bundlePolicy) {
|
|
5185
5157
|
var mc, audioEnabled, videoEnabled, shareEnabled;
|
|
5186
|
-
return _regenerator.default.wrap(function
|
|
5187
|
-
while (1) switch (
|
|
5158
|
+
return _regenerator.default.wrap(function _callee15$(_context15) {
|
|
5159
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
5188
5160
|
case 0:
|
|
5189
5161
|
mc = _media.default.createMediaConnection(this.isMultistream, this.getMediaConnectionDebugId(),
|
|
5190
5162
|
// @ts-ignore
|
|
@@ -5210,41 +5182,41 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5210
5182
|
|
|
5211
5183
|
// publish the streams
|
|
5212
5184
|
if (!this.mediaProperties.audioStream) {
|
|
5213
|
-
|
|
5185
|
+
_context15.next = 7;
|
|
5214
5186
|
break;
|
|
5215
5187
|
}
|
|
5216
|
-
|
|
5188
|
+
_context15.next = 7;
|
|
5217
5189
|
return this.publishStream(_internalMediaCore.MediaType.AudioMain, this.mediaProperties.audioStream);
|
|
5218
5190
|
case 7:
|
|
5219
5191
|
if (!this.mediaProperties.videoStream) {
|
|
5220
|
-
|
|
5192
|
+
_context15.next = 10;
|
|
5221
5193
|
break;
|
|
5222
5194
|
}
|
|
5223
|
-
|
|
5195
|
+
_context15.next = 10;
|
|
5224
5196
|
return this.publishStream(_internalMediaCore.MediaType.VideoMain, this.mediaProperties.videoStream);
|
|
5225
5197
|
case 10:
|
|
5226
5198
|
if (!this.mediaProperties.shareVideoStream) {
|
|
5227
|
-
|
|
5199
|
+
_context15.next = 13;
|
|
5228
5200
|
break;
|
|
5229
5201
|
}
|
|
5230
|
-
|
|
5202
|
+
_context15.next = 13;
|
|
5231
5203
|
return this.publishStream(_internalMediaCore.MediaType.VideoSlides, this.mediaProperties.shareVideoStream);
|
|
5232
5204
|
case 13:
|
|
5233
5205
|
if (!(this.isMultistream && this.mediaProperties.shareAudioStream)) {
|
|
5234
|
-
|
|
5206
|
+
_context15.next = 16;
|
|
5235
5207
|
break;
|
|
5236
5208
|
}
|
|
5237
|
-
|
|
5209
|
+
_context15.next = 16;
|
|
5238
5210
|
return this.publishStream(_internalMediaCore.MediaType.AudioSlides, this.mediaProperties.shareAudioStream);
|
|
5239
5211
|
case 16:
|
|
5240
|
-
return
|
|
5212
|
+
return _context15.abrupt("return", mc);
|
|
5241
5213
|
case 17:
|
|
5242
5214
|
case "end":
|
|
5243
|
-
return
|
|
5215
|
+
return _context15.stop();
|
|
5244
5216
|
}
|
|
5245
|
-
},
|
|
5217
|
+
}, _callee15, this);
|
|
5246
5218
|
}));
|
|
5247
|
-
function createMediaConnection(
|
|
5219
|
+
function createMediaConnection(_x10, _x11) {
|
|
5248
5220
|
return _createMediaConnection.apply(this, arguments);
|
|
5249
5221
|
}
|
|
5250
5222
|
return createMediaConnection;
|
|
@@ -5390,39 +5362,39 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5390
5362
|
return _promise.default.all(promises).then(function () {
|
|
5391
5363
|
return _this39.roap.doTurnDiscovery(_this39, false);
|
|
5392
5364
|
}).then( /*#__PURE__*/function () {
|
|
5393
|
-
var
|
|
5365
|
+
var _ref23 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16(turnDiscoveryObject) {
|
|
5394
5366
|
var turnServerInfo, mc;
|
|
5395
|
-
return _regenerator.default.wrap(function
|
|
5396
|
-
while (1) switch (
|
|
5367
|
+
return _regenerator.default.wrap(function _callee16$(_context16) {
|
|
5368
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
5397
5369
|
case 0:
|
|
5398
5370
|
turnDiscoverySkippedReason = turnDiscoveryObject.turnDiscoverySkippedReason;
|
|
5399
5371
|
turnServerUsed = !turnDiscoverySkippedReason;
|
|
5400
5372
|
turnServerInfo = turnDiscoveryObject.turnServerInfo;
|
|
5401
|
-
|
|
5373
|
+
_context16.next = 5;
|
|
5402
5374
|
return _this39.createMediaConnection(turnServerInfo, bundlePolicy);
|
|
5403
5375
|
case 5:
|
|
5404
|
-
mc =
|
|
5376
|
+
mc = _context16.sent;
|
|
5405
5377
|
if (!_this39.isMultistream) {
|
|
5406
|
-
|
|
5378
|
+
_context16.next = 13;
|
|
5407
5379
|
break;
|
|
5408
5380
|
}
|
|
5409
5381
|
_this39.remoteMediaManager = new _remoteMediaManager.RemoteMediaManager(_this39.receiveSlotManager, _this39.mediaRequestManagers, remoteMediaManagerConfig);
|
|
5410
5382
|
_this39.forwardEvent(_this39.remoteMediaManager, _remoteMediaManager.Event.AudioCreated, _constants.EVENT_TRIGGERS.REMOTE_MEDIA_AUDIO_CREATED);
|
|
5411
5383
|
_this39.forwardEvent(_this39.remoteMediaManager, _remoteMediaManager.Event.ScreenShareAudioCreated, _constants.EVENT_TRIGGERS.REMOTE_MEDIA_SCREEN_SHARE_AUDIO_CREATED);
|
|
5412
5384
|
_this39.forwardEvent(_this39.remoteMediaManager, _remoteMediaManager.Event.VideoLayoutChanged, _constants.EVENT_TRIGGERS.REMOTE_MEDIA_VIDEO_LAYOUT_CHANGED);
|
|
5413
|
-
|
|
5385
|
+
_context16.next = 13;
|
|
5414
5386
|
return _this39.remoteMediaManager.start();
|
|
5415
5387
|
case 13:
|
|
5416
|
-
|
|
5388
|
+
_context16.next = 15;
|
|
5417
5389
|
return mc.initiateOffer();
|
|
5418
5390
|
case 15:
|
|
5419
5391
|
case "end":
|
|
5420
|
-
return
|
|
5392
|
+
return _context16.stop();
|
|
5421
5393
|
}
|
|
5422
|
-
},
|
|
5394
|
+
}, _callee16);
|
|
5423
5395
|
}));
|
|
5424
|
-
return function (
|
|
5425
|
-
return
|
|
5396
|
+
return function (_x12) {
|
|
5397
|
+
return _ref23.apply(this, arguments);
|
|
5426
5398
|
};
|
|
5427
5399
|
}()).then(function () {
|
|
5428
5400
|
_this39.setMercuryListener();
|
|
@@ -5625,35 +5597,35 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5625
5597
|
* @memberof Meeting
|
|
5626
5598
|
*/
|
|
5627
5599
|
function () {
|
|
5628
|
-
var _updateMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
5600
|
+
var _updateMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(options) {
|
|
5629
5601
|
var audioEnabled, videoEnabled, shareAudioEnabled, shareVideoEnabled;
|
|
5630
|
-
return _regenerator.default.wrap(function
|
|
5631
|
-
while (1) switch (
|
|
5602
|
+
return _regenerator.default.wrap(function _callee17$(_context17) {
|
|
5603
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
5632
5604
|
case 0:
|
|
5633
5605
|
this.checkMediaConnection();
|
|
5634
5606
|
audioEnabled = options.audioEnabled, videoEnabled = options.videoEnabled, shareAudioEnabled = options.shareAudioEnabled, shareVideoEnabled = options.shareVideoEnabled;
|
|
5635
5607
|
_loggerProxy.default.logger.log("Meeting:index#updateMedia --> called with options=".concat((0, _stringify.default)(options)));
|
|
5636
5608
|
if (this.canUpdateMedia()) {
|
|
5637
|
-
|
|
5609
|
+
_context17.next = 5;
|
|
5638
5610
|
break;
|
|
5639
5611
|
}
|
|
5640
|
-
return
|
|
5612
|
+
return _context17.abrupt("return", this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.UPDATE_MEDIA, options));
|
|
5641
5613
|
case 5:
|
|
5642
5614
|
if (!this.isMultistream) {
|
|
5643
|
-
|
|
5615
|
+
_context17.next = 10;
|
|
5644
5616
|
break;
|
|
5645
5617
|
}
|
|
5646
5618
|
if (!(shareAudioEnabled !== undefined || shareVideoEnabled !== undefined)) {
|
|
5647
|
-
|
|
5619
|
+
_context17.next = 8;
|
|
5648
5620
|
break;
|
|
5649
5621
|
}
|
|
5650
5622
|
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');
|
|
5651
5623
|
case 8:
|
|
5652
|
-
|
|
5624
|
+
_context17.next = 12;
|
|
5653
5625
|
break;
|
|
5654
5626
|
case 10:
|
|
5655
5627
|
if (!(shareAudioEnabled !== undefined)) {
|
|
5656
|
-
|
|
5628
|
+
_context17.next = 12;
|
|
5657
5629
|
break;
|
|
5658
5630
|
}
|
|
5659
5631
|
throw new Error('toggling shareAudioEnabled in a transcoded meeting is not supported as of now');
|
|
@@ -5678,20 +5650,20 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5678
5650
|
this.mediaProperties.mediaDirection.receiveShare = !!(shareAudioEnabled || shareVideoEnabled);
|
|
5679
5651
|
}
|
|
5680
5652
|
if (this.isMultistream) {
|
|
5681
|
-
|
|
5653
|
+
_context17.next = 18;
|
|
5682
5654
|
break;
|
|
5683
5655
|
}
|
|
5684
|
-
|
|
5656
|
+
_context17.next = 18;
|
|
5685
5657
|
return this.updateTranscodedMediaConnection();
|
|
5686
5658
|
case 18:
|
|
5687
|
-
return
|
|
5659
|
+
return _context17.abrupt("return", undefined);
|
|
5688
5660
|
case 19:
|
|
5689
5661
|
case "end":
|
|
5690
|
-
return
|
|
5662
|
+
return _context17.stop();
|
|
5691
5663
|
}
|
|
5692
|
-
},
|
|
5664
|
+
}, _callee17, this);
|
|
5693
5665
|
}));
|
|
5694
|
-
function updateMedia(
|
|
5666
|
+
function updateMedia(_x13) {
|
|
5695
5667
|
return _updateMedia.apply(this, arguments);
|
|
5696
5668
|
}
|
|
5697
5669
|
return updateMedia;
|
|
@@ -6600,39 +6572,39 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6600
6572
|
}, {
|
|
6601
6573
|
key: "enableMusicMode",
|
|
6602
6574
|
value: function () {
|
|
6603
|
-
var _enableMusicMode = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6604
|
-
return _regenerator.default.wrap(function
|
|
6605
|
-
while (1) switch (
|
|
6575
|
+
var _enableMusicMode = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(shouldEnableMusicMode) {
|
|
6576
|
+
return _regenerator.default.wrap(function _callee18$(_context18) {
|
|
6577
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
6606
6578
|
case 0:
|
|
6607
6579
|
this.checkMediaConnection();
|
|
6608
6580
|
if (this.isMultistream) {
|
|
6609
|
-
|
|
6581
|
+
_context18.next = 3;
|
|
6610
6582
|
break;
|
|
6611
6583
|
}
|
|
6612
6584
|
throw new Error('enableMusicMode() only supported with multistream');
|
|
6613
6585
|
case 3:
|
|
6614
6586
|
if (!shouldEnableMusicMode) {
|
|
6615
|
-
|
|
6587
|
+
_context18.next = 8;
|
|
6616
6588
|
break;
|
|
6617
6589
|
}
|
|
6618
|
-
|
|
6590
|
+
_context18.next = 6;
|
|
6619
6591
|
return this.sendSlotManager.setCodecParameters(_internalMediaCore.MediaType.AudioMain, {
|
|
6620
6592
|
maxaveragebitrate: '64000',
|
|
6621
6593
|
maxplaybackrate: '48000'
|
|
6622
6594
|
});
|
|
6623
6595
|
case 6:
|
|
6624
|
-
|
|
6596
|
+
_context18.next = 10;
|
|
6625
6597
|
break;
|
|
6626
6598
|
case 8:
|
|
6627
|
-
|
|
6599
|
+
_context18.next = 10;
|
|
6628
6600
|
return this.sendSlotManager.deleteCodecParameters(_internalMediaCore.MediaType.AudioMain, ['maxaveragebitrate', 'maxplaybackrate']);
|
|
6629
6601
|
case 10:
|
|
6630
6602
|
case "end":
|
|
6631
|
-
return
|
|
6603
|
+
return _context18.stop();
|
|
6632
6604
|
}
|
|
6633
|
-
},
|
|
6605
|
+
}, _callee18, this);
|
|
6634
6606
|
}));
|
|
6635
|
-
function enableMusicMode(
|
|
6607
|
+
function enableMusicMode(_x14) {
|
|
6636
6608
|
return _enableMusicMode.apply(this, arguments);
|
|
6637
6609
|
}
|
|
6638
6610
|
return enableMusicMode;
|
|
@@ -6692,25 +6664,25 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6692
6664
|
}, {
|
|
6693
6665
|
key: "publishStream",
|
|
6694
6666
|
value: function () {
|
|
6695
|
-
var _publishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6696
|
-
return _regenerator.default.wrap(function
|
|
6697
|
-
while (1) switch (
|
|
6667
|
+
var _publishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(mediaType, stream) {
|
|
6668
|
+
return _regenerator.default.wrap(function _callee19$(_context19) {
|
|
6669
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
6698
6670
|
case 0:
|
|
6699
6671
|
if (stream) {
|
|
6700
|
-
|
|
6672
|
+
_context19.next = 2;
|
|
6701
6673
|
break;
|
|
6702
6674
|
}
|
|
6703
|
-
return
|
|
6675
|
+
return _context19.abrupt("return");
|
|
6704
6676
|
case 2:
|
|
6705
6677
|
if (!this.mediaProperties.webrtcMediaConnection) {
|
|
6706
|
-
|
|
6678
|
+
_context19.next = 7;
|
|
6707
6679
|
break;
|
|
6708
6680
|
}
|
|
6709
6681
|
if (!(this.isMultistream && this.mediaProperties.webrtcMediaConnection)) {
|
|
6710
|
-
|
|
6682
|
+
_context19.next = 6;
|
|
6711
6683
|
break;
|
|
6712
6684
|
}
|
|
6713
|
-
|
|
6685
|
+
_context19.next = 6;
|
|
6714
6686
|
return this.sendSlotManager.publishStream(mediaType, stream);
|
|
6715
6687
|
case 6:
|
|
6716
6688
|
this.emitPublishStateChangeEvent({
|
|
@@ -6721,11 +6693,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6721
6693
|
});
|
|
6722
6694
|
case 7:
|
|
6723
6695
|
case "end":
|
|
6724
|
-
return
|
|
6696
|
+
return _context19.stop();
|
|
6725
6697
|
}
|
|
6726
|
-
},
|
|
6698
|
+
}, _callee19, this);
|
|
6727
6699
|
}));
|
|
6728
|
-
function publishStream(
|
|
6700
|
+
function publishStream(_x15, _x16) {
|
|
6729
6701
|
return _publishStream.apply(this, arguments);
|
|
6730
6702
|
}
|
|
6731
6703
|
return publishStream;
|
|
@@ -6740,21 +6712,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6740
6712
|
}, {
|
|
6741
6713
|
key: "unpublishStream",
|
|
6742
6714
|
value: function () {
|
|
6743
|
-
var _unpublishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6744
|
-
return _regenerator.default.wrap(function
|
|
6745
|
-
while (1) switch (
|
|
6715
|
+
var _unpublishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(mediaType, stream) {
|
|
6716
|
+
return _regenerator.default.wrap(function _callee20$(_context20) {
|
|
6717
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
6746
6718
|
case 0:
|
|
6747
6719
|
if (stream) {
|
|
6748
|
-
|
|
6720
|
+
_context20.next = 2;
|
|
6749
6721
|
break;
|
|
6750
6722
|
}
|
|
6751
|
-
return
|
|
6723
|
+
return _context20.abrupt("return");
|
|
6752
6724
|
case 2:
|
|
6753
6725
|
if (!(this.isMultistream && this.mediaProperties.webrtcMediaConnection)) {
|
|
6754
|
-
|
|
6726
|
+
_context20.next = 5;
|
|
6755
6727
|
break;
|
|
6756
6728
|
}
|
|
6757
|
-
|
|
6729
|
+
_context20.next = 5;
|
|
6758
6730
|
return this.sendSlotManager.unpublishStream(mediaType);
|
|
6759
6731
|
case 5:
|
|
6760
6732
|
this.emitPublishStateChangeEvent({
|
|
@@ -6765,11 +6737,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6765
6737
|
});
|
|
6766
6738
|
case 6:
|
|
6767
6739
|
case "end":
|
|
6768
|
-
return
|
|
6740
|
+
return _context20.stop();
|
|
6769
6741
|
}
|
|
6770
|
-
},
|
|
6742
|
+
}, _callee20, this);
|
|
6771
6743
|
}));
|
|
6772
|
-
function unpublishStream(
|
|
6744
|
+
function unpublishStream(_x17, _x18) {
|
|
6773
6745
|
return _unpublishStream.apply(this, arguments);
|
|
6774
6746
|
}
|
|
6775
6747
|
return unpublishStream;
|
|
@@ -6783,72 +6755,72 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6783
6755
|
}, {
|
|
6784
6756
|
key: "publishStreams",
|
|
6785
6757
|
value: function () {
|
|
6786
|
-
var _publishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6758
|
+
var _publishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(streams) {
|
|
6787
6759
|
var _streams$screenShare, _streams$screenShare2, _streams$screenShare3, _streams$screenShare4;
|
|
6788
6760
|
var floorRequestNeeded, _streams$screenShare5;
|
|
6789
|
-
return _regenerator.default.wrap(function
|
|
6790
|
-
while (1) switch (
|
|
6761
|
+
return _regenerator.default.wrap(function _callee21$(_context21) {
|
|
6762
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
6791
6763
|
case 0:
|
|
6792
6764
|
this.checkMediaConnection();
|
|
6793
6765
|
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))) {
|
|
6794
|
-
|
|
6766
|
+
_context21.next = 3;
|
|
6795
6767
|
break;
|
|
6796
6768
|
}
|
|
6797
|
-
return
|
|
6769
|
+
return _context21.abrupt("return");
|
|
6798
6770
|
case 3:
|
|
6799
6771
|
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
|
|
6800
6772
|
if (!(this.isMultistream && (_streams$screenShare3 = streams.screenShare) !== null && _streams$screenShare3 !== void 0 && _streams$screenShare3.audio)) {
|
|
6801
|
-
|
|
6773
|
+
_context21.next = 8;
|
|
6802
6774
|
break;
|
|
6803
6775
|
}
|
|
6804
|
-
|
|
6776
|
+
_context21.next = 7;
|
|
6805
6777
|
return this.setLocalShareAudioStream(streams.screenShare.audio);
|
|
6806
6778
|
case 7:
|
|
6807
6779
|
floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
|
|
6808
6780
|
case 8:
|
|
6809
6781
|
if (!((_streams$screenShare4 = streams.screenShare) !== null && _streams$screenShare4 !== void 0 && _streams$screenShare4.video)) {
|
|
6810
|
-
|
|
6782
|
+
_context21.next = 12;
|
|
6811
6783
|
break;
|
|
6812
6784
|
}
|
|
6813
|
-
|
|
6785
|
+
_context21.next = 11;
|
|
6814
6786
|
return this.setLocalShareVideoStream((_streams$screenShare5 = streams.screenShare) === null || _streams$screenShare5 === void 0 ? void 0 : _streams$screenShare5.video);
|
|
6815
6787
|
case 11:
|
|
6816
6788
|
floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
|
|
6817
6789
|
case 12:
|
|
6818
6790
|
if (!streams.microphone) {
|
|
6819
|
-
|
|
6791
|
+
_context21.next = 15;
|
|
6820
6792
|
break;
|
|
6821
6793
|
}
|
|
6822
|
-
|
|
6794
|
+
_context21.next = 15;
|
|
6823
6795
|
return this.setLocalAudioStream(streams.microphone);
|
|
6824
6796
|
case 15:
|
|
6825
6797
|
if (!streams.camera) {
|
|
6826
|
-
|
|
6798
|
+
_context21.next = 18;
|
|
6827
6799
|
break;
|
|
6828
6800
|
}
|
|
6829
|
-
|
|
6801
|
+
_context21.next = 18;
|
|
6830
6802
|
return this.setLocalVideoStream(streams.camera);
|
|
6831
6803
|
case 18:
|
|
6832
6804
|
if (this.isMultistream) {
|
|
6833
|
-
|
|
6805
|
+
_context21.next = 21;
|
|
6834
6806
|
break;
|
|
6835
6807
|
}
|
|
6836
|
-
|
|
6808
|
+
_context21.next = 21;
|
|
6837
6809
|
return this.updateTranscodedMediaConnection();
|
|
6838
6810
|
case 21:
|
|
6839
6811
|
if (!floorRequestNeeded) {
|
|
6840
|
-
|
|
6812
|
+
_context21.next = 24;
|
|
6841
6813
|
break;
|
|
6842
6814
|
}
|
|
6843
|
-
|
|
6815
|
+
_context21.next = 24;
|
|
6844
6816
|
return this.enqueueScreenShareFloorRequest();
|
|
6845
6817
|
case 24:
|
|
6846
6818
|
case "end":
|
|
6847
|
-
return
|
|
6819
|
+
return _context21.stop();
|
|
6848
6820
|
}
|
|
6849
|
-
},
|
|
6821
|
+
}, _callee21, this);
|
|
6850
6822
|
}));
|
|
6851
|
-
function publishStreams(
|
|
6823
|
+
function publishStreams(_x19) {
|
|
6852
6824
|
return _publishStreams.apply(this, arguments);
|
|
6853
6825
|
}
|
|
6854
6826
|
return publishStreams;
|
|
@@ -6862,10 +6834,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6862
6834
|
}, {
|
|
6863
6835
|
key: "unpublishStreams",
|
|
6864
6836
|
value: function () {
|
|
6865
|
-
var _unpublishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6837
|
+
var _unpublishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(streams) {
|
|
6866
6838
|
var promises, _iterator, _step, stream;
|
|
6867
|
-
return _regenerator.default.wrap(function
|
|
6868
|
-
while (1) switch (
|
|
6839
|
+
return _regenerator.default.wrap(function _callee22$(_context22) {
|
|
6840
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
6869
6841
|
case 0:
|
|
6870
6842
|
this.checkMediaConnection();
|
|
6871
6843
|
promises = [];
|
|
@@ -6896,7 +6868,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6896
6868
|
if (!this.isMultistream) {
|
|
6897
6869
|
promises.push(this.updateTranscodedMediaConnection());
|
|
6898
6870
|
}
|
|
6899
|
-
|
|
6871
|
+
_context22.next = 7;
|
|
6900
6872
|
return _promise.default.all(promises);
|
|
6901
6873
|
case 7:
|
|
6902
6874
|
// we're allowing for the SDK to support just audio share as well
|
|
@@ -6911,11 +6883,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6911
6883
|
}
|
|
6912
6884
|
case 8:
|
|
6913
6885
|
case "end":
|
|
6914
|
-
return
|
|
6886
|
+
return _context22.stop();
|
|
6915
6887
|
}
|
|
6916
|
-
},
|
|
6888
|
+
}, _callee22, this);
|
|
6917
6889
|
}));
|
|
6918
|
-
function unpublishStreams(
|
|
6890
|
+
function unpublishStreams(_x20) {
|
|
6919
6891
|
return _unpublishStreams.apply(this, arguments);
|
|
6920
6892
|
}
|
|
6921
6893
|
return unpublishStreams;
|