@webex/plugin-meetings 2.59.6 → 2.59.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/meeting/index.d.ts +2 -1
- package/dist/meeting/index.js +148 -119
- package/dist/meeting/index.js.map +1 -1
- package/package.json +19 -19
- package/src/meeting/index.ts +23 -12
- package/test/unit/spec/meeting/index.js +47 -6
package/dist/meeting/index.d.ts
CHANGED
|
@@ -335,6 +335,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
335
335
|
shareStatus: string;
|
|
336
336
|
statsAnalyzer: StatsAnalyzer;
|
|
337
337
|
transcription: Transcription;
|
|
338
|
+
receiveTranscription: boolean;
|
|
338
339
|
updateMediaConnections: (mediaConnections: any[]) => void;
|
|
339
340
|
endCallInitiateJoinReq: any;
|
|
340
341
|
endJoinReqResp: any;
|
|
@@ -1003,7 +1004,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1003
1004
|
* @private
|
|
1004
1005
|
* @returns {Promise<void>} a promise to open the WebSocket connection
|
|
1005
1006
|
*/
|
|
1006
|
-
private
|
|
1007
|
+
private startTranscription;
|
|
1007
1008
|
/**
|
|
1008
1009
|
* stop recieving Transcription by closing
|
|
1009
1010
|
* the web socket connection properly
|
package/dist/meeting/index.js
CHANGED
|
@@ -468,6 +468,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
468
468
|
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "shareStatus", void 0);
|
|
469
469
|
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "statsAnalyzer", void 0);
|
|
470
470
|
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "transcription", void 0);
|
|
471
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "receiveTranscription", void 0);
|
|
471
472
|
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "updateMediaConnections", void 0);
|
|
472
473
|
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "endCallInitiateJoinReq", void 0);
|
|
473
474
|
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "endJoinReqResp", void 0);
|
|
@@ -1988,8 +1989,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1988
1989
|
var caption = _ref7.caption,
|
|
1989
1990
|
transcribing = _ref7.transcribing;
|
|
1990
1991
|
// @ts-ignore - config coming from registerPlugin
|
|
1991
|
-
if (transcribing && _this11.transcription && _this11.config.receiveTranscription) {
|
|
1992
|
-
_this11.
|
|
1992
|
+
if (transcribing && !_this11.transcription && _this11.config.receiveTranscription) {
|
|
1993
|
+
_this11.startTranscription();
|
|
1993
1994
|
} else if (!transcribing && _this11.transcription) {
|
|
1994
1995
|
_triggerProxy.default.trigger(_this11, {
|
|
1995
1996
|
file: 'meeting/index',
|
|
@@ -2384,21 +2385,48 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2384
2385
|
});
|
|
2385
2386
|
}
|
|
2386
2387
|
});
|
|
2387
|
-
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.SELF_ADMITTED_GUEST, function (
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2388
|
+
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.SELF_ADMITTED_GUEST, /*#__PURE__*/function () {
|
|
2389
|
+
var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(payload) {
|
|
2390
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
2391
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
2392
|
+
case 0:
|
|
2393
|
+
_this17.stopKeepAlive();
|
|
2394
|
+
// @ts-ignore
|
|
2395
|
+
if (!(!_this17.transcription && (_this17.config.receiveTranscription || _this17.receiveTranscription))) {
|
|
2396
|
+
_context2.next = 6;
|
|
2397
|
+
break;
|
|
2398
|
+
}
|
|
2399
|
+
if (!_this17.isTranscriptionSupported()) {
|
|
2400
|
+
_context2.next = 6;
|
|
2401
|
+
break;
|
|
2402
|
+
}
|
|
2403
|
+
_context2.next = 5;
|
|
2404
|
+
return _this17.startTranscription();
|
|
2405
|
+
case 5:
|
|
2406
|
+
_loggerProxy.default.logger.info('Meeting:index#setUpLocusInfoSelfListener --> enabled to receive transcription for guest user!');
|
|
2407
|
+
case 6:
|
|
2408
|
+
if (payload) {
|
|
2409
|
+
_triggerProxy.default.trigger(_this17, {
|
|
2410
|
+
file: 'meeting/index',
|
|
2411
|
+
function: 'setUpLocusInfoSelfListener'
|
|
2412
|
+
}, _constants.EVENT_TRIGGERS.MEETING_SELF_GUEST_ADMITTED, {
|
|
2413
|
+
payload: payload
|
|
2414
|
+
});
|
|
2415
|
+
_metrics.default.postEvent({
|
|
2416
|
+
event: _config.eventType.LOBBY_EXITED,
|
|
2417
|
+
meeting: _this17
|
|
2418
|
+
});
|
|
2419
|
+
}
|
|
2420
|
+
case 7:
|
|
2421
|
+
case "end":
|
|
2422
|
+
return _context2.stop();
|
|
2423
|
+
}
|
|
2424
|
+
}, _callee2);
|
|
2425
|
+
}));
|
|
2426
|
+
return function (_x2) {
|
|
2427
|
+
return _ref9.apply(this, arguments);
|
|
2428
|
+
};
|
|
2429
|
+
}());
|
|
2402
2430
|
|
|
2403
2431
|
// @ts-ignore - check if MEDIA_INACTIVITY exists
|
|
2404
2432
|
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.MEDIA_INACTIVITY, function () {
|
|
@@ -3598,10 +3626,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3598
3626
|
joinOptions = options.joinOptions,
|
|
3599
3627
|
audioVideoOptions = options.audioVideoOptions;
|
|
3600
3628
|
return this.join(joinOptions).then(function (joinResponse) {
|
|
3601
|
-
return _this30.getMediaStreams(mediaSettings, audioVideoOptions).then(function (
|
|
3602
|
-
var
|
|
3603
|
-
localStream =
|
|
3604
|
-
localShare =
|
|
3629
|
+
return _this30.getMediaStreams(mediaSettings, audioVideoOptions).then(function (_ref10) {
|
|
3630
|
+
var _ref11 = (0, _slicedToArray2.default)(_ref10, 2),
|
|
3631
|
+
localStream = _ref11[0],
|
|
3632
|
+
localShare = _ref11[1];
|
|
3605
3633
|
return _this30.addMedia({
|
|
3606
3634
|
mediaSettings: mediaSettings,
|
|
3607
3635
|
localShare: localShare,
|
|
@@ -3742,18 +3770,18 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3742
3770
|
* @returns {Promise<void>} a promise to open the WebSocket connection
|
|
3743
3771
|
*/
|
|
3744
3772
|
}, {
|
|
3745
|
-
key: "
|
|
3773
|
+
key: "startTranscription",
|
|
3746
3774
|
value: function () {
|
|
3747
|
-
var
|
|
3775
|
+
var _startTranscription = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
3748
3776
|
var _this33 = this;
|
|
3749
3777
|
var datachannelUrl, _yield$this$request, webSocketUrl;
|
|
3750
|
-
return _regenerator.default.wrap(function
|
|
3751
|
-
while (1) switch (
|
|
3778
|
+
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
3779
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
3752
3780
|
case 0:
|
|
3753
|
-
_loggerProxy.default.logger.info("Meeting:index#
|
|
3754
|
-
|
|
3781
|
+
_loggerProxy.default.logger.info("Meeting:index#startTranscription -->\n Attempting to generate a web socket url.");
|
|
3782
|
+
_context3.prev = 1;
|
|
3755
3783
|
datachannelUrl = this.locusInfo.info.datachannelUrl; // @ts-ignore - fix type
|
|
3756
|
-
|
|
3784
|
+
_context3.next = 5;
|
|
3757
3785
|
return this.request({
|
|
3758
3786
|
method: _constants.HTTP_VERBS.POST,
|
|
3759
3787
|
uri: datachannelUrl,
|
|
@@ -3762,13 +3790,13 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3762
3790
|
}
|
|
3763
3791
|
});
|
|
3764
3792
|
case 5:
|
|
3765
|
-
_yield$this$request =
|
|
3793
|
+
_yield$this$request = _context3.sent;
|
|
3766
3794
|
webSocketUrl = _yield$this$request.body.webSocketUrl;
|
|
3767
|
-
_loggerProxy.default.logger.info("Meeting:index#
|
|
3795
|
+
_loggerProxy.default.logger.info("Meeting:index#startTranscription -->\n Generated web socket url succesfully.");
|
|
3768
3796
|
this.transcription = new _transcription.default(webSocketUrl,
|
|
3769
3797
|
// @ts-ignore - fix type
|
|
3770
3798
|
this.webex.sessionId, this.members);
|
|
3771
|
-
_loggerProxy.default.logger.info("Meeting:index#
|
|
3799
|
+
_loggerProxy.default.logger.info("Meeting:index#startTranscription -->\n opened LLM web socket connection successfully.");
|
|
3772
3800
|
if (!this.inMeetingActions.isClosedCaptionActive) {
|
|
3773
3801
|
_loggerProxy.default.logger.error("Meeting:index#receiveTranscription --> Transcription cannot be started until a licensed user enables it");
|
|
3774
3802
|
}
|
|
@@ -3783,27 +3811,27 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3783
3811
|
this.monitorTranscriptionSocketConnection();
|
|
3784
3812
|
// @ts-ignore - fix type
|
|
3785
3813
|
this.transcription.connect(this.webex.credentials.supertoken.access_token);
|
|
3786
|
-
|
|
3814
|
+
_context3.next = 20;
|
|
3787
3815
|
break;
|
|
3788
3816
|
case 16:
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
_loggerProxy.default.logger.error("Meeting:index#
|
|
3817
|
+
_context3.prev = 16;
|
|
3818
|
+
_context3.t0 = _context3["catch"](1);
|
|
3819
|
+
_loggerProxy.default.logger.error("Meeting:index#startTranscription --> ".concat(_context3.t0));
|
|
3792
3820
|
_metrics.default.sendBehavioralMetric(_constants2.default.RECEIVE_TRANSCRIPTION_FAILURE, {
|
|
3793
3821
|
correlation_id: this.correlationId,
|
|
3794
|
-
reason:
|
|
3795
|
-
stack:
|
|
3822
|
+
reason: _context3.t0.message,
|
|
3823
|
+
stack: _context3.t0.stack
|
|
3796
3824
|
});
|
|
3797
3825
|
case 20:
|
|
3798
3826
|
case "end":
|
|
3799
|
-
return
|
|
3827
|
+
return _context3.stop();
|
|
3800
3828
|
}
|
|
3801
|
-
},
|
|
3829
|
+
}, _callee3, this, [[1, 16]]);
|
|
3802
3830
|
}));
|
|
3803
|
-
function
|
|
3804
|
-
return
|
|
3831
|
+
function startTranscription() {
|
|
3832
|
+
return _startTranscription.apply(this, arguments);
|
|
3805
3833
|
}
|
|
3806
|
-
return
|
|
3834
|
+
return startTranscription;
|
|
3807
3835
|
}()
|
|
3808
3836
|
/**
|
|
3809
3837
|
* stop recieving Transcription by closing
|
|
@@ -3942,46 +3970,47 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3942
3970
|
}).then(function (join) {
|
|
3943
3971
|
joinSuccess(join);
|
|
3944
3972
|
_this34.deferJoin = undefined;
|
|
3973
|
+
_this34.receiveTranscription = !!options.receiveTranscription;
|
|
3945
3974
|
_metrics.default.sendBehavioralMetric(_constants2.default.JOIN_SUCCESS, {
|
|
3946
3975
|
correlation_id: _this34.correlationId
|
|
3947
3976
|
});
|
|
3948
3977
|
return join;
|
|
3949
3978
|
}).then( /*#__PURE__*/function () {
|
|
3950
|
-
var
|
|
3951
|
-
return _regenerator.default.wrap(function
|
|
3952
|
-
while (1) switch (
|
|
3979
|
+
var _ref12 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(join) {
|
|
3980
|
+
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
3981
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
3953
3982
|
case 0:
|
|
3954
3983
|
if (!isBrowser) {
|
|
3955
|
-
|
|
3984
|
+
_context4.next = 8;
|
|
3956
3985
|
break;
|
|
3957
3986
|
}
|
|
3958
|
-
if (!(_this34.config.receiveTranscription ||
|
|
3959
|
-
|
|
3987
|
+
if (!(_this34.config.receiveTranscription || _this34.receiveTranscription)) {
|
|
3988
|
+
_context4.next = 6;
|
|
3960
3989
|
break;
|
|
3961
3990
|
}
|
|
3962
3991
|
if (!_this34.isTranscriptionSupported()) {
|
|
3963
|
-
|
|
3992
|
+
_context4.next = 6;
|
|
3964
3993
|
break;
|
|
3965
3994
|
}
|
|
3966
|
-
|
|
3967
|
-
return _this34.
|
|
3995
|
+
_context4.next = 5;
|
|
3996
|
+
return _this34.startTranscription();
|
|
3968
3997
|
case 5:
|
|
3969
|
-
_loggerProxy.default.logger.info('Meeting:index#join --> enabled to
|
|
3998
|
+
_loggerProxy.default.logger.info('Meeting:index#join --> enabled to receive transcription!');
|
|
3970
3999
|
case 6:
|
|
3971
|
-
|
|
4000
|
+
_context4.next = 9;
|
|
3972
4001
|
break;
|
|
3973
4002
|
case 8:
|
|
3974
4003
|
_loggerProxy.default.logger.error('Meeting:index#join --> Receving transcription is not supported on this platform');
|
|
3975
4004
|
case 9:
|
|
3976
|
-
return
|
|
4005
|
+
return _context4.abrupt("return", join);
|
|
3977
4006
|
case 10:
|
|
3978
4007
|
case "end":
|
|
3979
|
-
return
|
|
4008
|
+
return _context4.stop();
|
|
3980
4009
|
}
|
|
3981
|
-
},
|
|
4010
|
+
}, _callee4);
|
|
3982
4011
|
}));
|
|
3983
|
-
return function (
|
|
3984
|
-
return
|
|
4012
|
+
return function (_x3) {
|
|
4013
|
+
return _ref12.apply(this, arguments);
|
|
3985
4014
|
};
|
|
3986
4015
|
}()).catch(function (error) {
|
|
3987
4016
|
var _error$error;
|
|
@@ -4174,17 +4203,17 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4174
4203
|
event: _config.eventType.MOVE_MEDIA,
|
|
4175
4204
|
meeting: this
|
|
4176
4205
|
});
|
|
4177
|
-
this.locusInfo.once(_constants.LOCUSINFO.EVENTS.SELF_OBSERVING, /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
4206
|
+
this.locusInfo.once(_constants.LOCUSINFO.EVENTS.SELF_OBSERVING, /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
4178
4207
|
var mediaSettings;
|
|
4179
|
-
return _regenerator.default.wrap(function
|
|
4180
|
-
while (1) switch (
|
|
4208
|
+
return _regenerator.default.wrap(function _callee5$(_context5) {
|
|
4209
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
4181
4210
|
case 0:
|
|
4182
|
-
|
|
4211
|
+
_context5.prev = 0;
|
|
4183
4212
|
if (!_this37.isSharing) {
|
|
4184
|
-
|
|
4213
|
+
_context5.next = 4;
|
|
4185
4214
|
break;
|
|
4186
4215
|
}
|
|
4187
|
-
|
|
4216
|
+
_context5.next = 4;
|
|
4188
4217
|
return _this37.releaseScreenShareFloor();
|
|
4189
4218
|
case 4:
|
|
4190
4219
|
mediaSettings = {
|
|
@@ -4200,10 +4229,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4200
4229
|
_this37.mediaProperties.setMediaDirection(mediaSettings.mediaDirection);
|
|
4201
4230
|
|
|
4202
4231
|
// close the existing local tracks
|
|
4203
|
-
|
|
4232
|
+
_context5.next = 8;
|
|
4204
4233
|
return _this37.closeLocalStream();
|
|
4205
4234
|
case 8:
|
|
4206
|
-
|
|
4235
|
+
_context5.next = 10;
|
|
4207
4236
|
return _this37.closeLocalShare();
|
|
4208
4237
|
case 10:
|
|
4209
4238
|
_this37.mediaProperties.unsetMediaTracks();
|
|
@@ -4211,28 +4240,28 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4211
4240
|
// 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
|
|
4212
4241
|
// once the DX answers we establish connection back the media server with only receiveShare enabled
|
|
4213
4242
|
// @ts-ignore - reconnectMedia does not accept any argument
|
|
4214
|
-
|
|
4243
|
+
_context5.next = 13;
|
|
4215
4244
|
return _this37.reconnectionManager.reconnectMedia(mediaSettings).then(function () {
|
|
4216
4245
|
_metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_SUCCESS);
|
|
4217
4246
|
});
|
|
4218
4247
|
case 13:
|
|
4219
|
-
|
|
4248
|
+
_context5.next = 19;
|
|
4220
4249
|
break;
|
|
4221
4250
|
case 15:
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
_loggerProxy.default.logger.error('Meeting:index#moveTo --> Failed to moveTo resourceId',
|
|
4251
|
+
_context5.prev = 15;
|
|
4252
|
+
_context5.t0 = _context5["catch"](0);
|
|
4253
|
+
_loggerProxy.default.logger.error('Meeting:index#moveTo --> Failed to moveTo resourceId', _context5.t0);
|
|
4225
4254
|
_metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_FAILURE, {
|
|
4226
4255
|
correlation_id: _this37.correlationId,
|
|
4227
4256
|
locus_id: _this37.locusUrl.split('/').pop(),
|
|
4228
|
-
reason:
|
|
4229
|
-
stack:
|
|
4257
|
+
reason: _context5.t0.message,
|
|
4258
|
+
stack: _context5.t0.stack
|
|
4230
4259
|
});
|
|
4231
4260
|
case 19:
|
|
4232
4261
|
case "end":
|
|
4233
|
-
return
|
|
4262
|
+
return _context5.stop();
|
|
4234
4263
|
}
|
|
4235
|
-
},
|
|
4264
|
+
}, _callee5, null, [[0, 15]]);
|
|
4236
4265
|
})));
|
|
4237
4266
|
_loggerProxy.default.logger.info('Meeting:index#moveTo --> Initated moved to using resourceId', resourceId);
|
|
4238
4267
|
return _util.default.joinMeetingOptions(this, {
|
|
@@ -4607,44 +4636,44 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4607
4636
|
}, {
|
|
4608
4637
|
key: "updateAudio",
|
|
4609
4638
|
value: function () {
|
|
4610
|
-
var _updateAudio = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
4639
|
+
var _updateAudio = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(options) {
|
|
4611
4640
|
var _this42 = this;
|
|
4612
4641
|
var sendAudio, receiveAudio, stream, audioTransceiver, track, bnrEnabled;
|
|
4613
|
-
return _regenerator.default.wrap(function
|
|
4614
|
-
while (1) switch (
|
|
4642
|
+
return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
4643
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
4615
4644
|
case 0:
|
|
4616
4645
|
if (this.canUpdateMedia()) {
|
|
4617
|
-
|
|
4646
|
+
_context6.next = 2;
|
|
4618
4647
|
break;
|
|
4619
4648
|
}
|
|
4620
|
-
return
|
|
4649
|
+
return _context6.abrupt("return", this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.AUDIO, options));
|
|
4621
4650
|
case 2:
|
|
4622
4651
|
sendAudio = options.sendAudio, receiveAudio = options.receiveAudio, stream = options.stream;
|
|
4623
4652
|
audioTransceiver = this.mediaProperties.peerConnection.audioTransceiver;
|
|
4624
4653
|
track = _util.default.getTrack(stream).audioTrack;
|
|
4625
4654
|
if (!(typeof sendAudio !== 'boolean' || typeof receiveAudio !== 'boolean')) {
|
|
4626
|
-
|
|
4655
|
+
_context6.next = 7;
|
|
4627
4656
|
break;
|
|
4628
4657
|
}
|
|
4629
|
-
return
|
|
4658
|
+
return _context6.abrupt("return", _promise.default.reject(new _parameter.default('Pass sendAudio and receiveAudio parameter')));
|
|
4630
4659
|
case 7:
|
|
4631
4660
|
if (!(this.effects && this.effects.state)) {
|
|
4632
|
-
|
|
4661
|
+
_context6.next = 15;
|
|
4633
4662
|
break;
|
|
4634
4663
|
}
|
|
4635
4664
|
bnrEnabled = this.effects.state.bnr.enabled;
|
|
4636
4665
|
if (!(sendAudio && !this.isAudioMuted() && (bnrEnabled === _constants.BNR_STATUS.ENABLED || bnrEnabled === _constants.BNR_STATUS.SHOULD_ENABLE))) {
|
|
4637
|
-
|
|
4666
|
+
_context6.next = 15;
|
|
4638
4667
|
break;
|
|
4639
4668
|
}
|
|
4640
4669
|
_loggerProxy.default.logger.info('Meeting:index#updateAudio. Calling WebRTC enable bnr method');
|
|
4641
|
-
|
|
4670
|
+
_context6.next = 13;
|
|
4642
4671
|
return this.internal_enableBNR(track);
|
|
4643
4672
|
case 13:
|
|
4644
|
-
track =
|
|
4673
|
+
track = _context6.sent;
|
|
4645
4674
|
_loggerProxy.default.logger.info('Meeting:index#updateAudio. WebRTC enable bnr request completed');
|
|
4646
4675
|
case 15:
|
|
4647
|
-
return
|
|
4676
|
+
return _context6.abrupt("return", _util.default.validateOptions({
|
|
4648
4677
|
sendAudio: sendAudio,
|
|
4649
4678
|
localStream: stream
|
|
4650
4679
|
}).then(function () {
|
|
@@ -4680,11 +4709,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4680
4709
|
}));
|
|
4681
4710
|
case 16:
|
|
4682
4711
|
case "end":
|
|
4683
|
-
return
|
|
4712
|
+
return _context6.stop();
|
|
4684
4713
|
}
|
|
4685
|
-
},
|
|
4714
|
+
}, _callee6, this);
|
|
4686
4715
|
}));
|
|
4687
|
-
function updateAudio(
|
|
4716
|
+
function updateAudio(_x4) {
|
|
4688
4717
|
return _updateAudio.apply(this, arguments);
|
|
4689
4718
|
}
|
|
4690
4719
|
return updateAudio;
|
|
@@ -5361,7 +5390,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5361
5390
|
}
|
|
5362
5391
|
if (layoutType) {
|
|
5363
5392
|
if (!_constants.LAYOUT_TYPES.includes(layoutType)) {
|
|
5364
|
-
return this.rejectWithErrorLog('Meeting:index#changeVideoLayout --> cannot change video layout, invalid layoutType
|
|
5393
|
+
return this.rejectWithErrorLog('Meeting:index#changeVideoLayout --> cannot change video layout, invalid layoutType received.');
|
|
5365
5394
|
}
|
|
5366
5395
|
layoutInfo.layoutType = layoutType;
|
|
5367
5396
|
}
|
|
@@ -5459,28 +5488,28 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5459
5488
|
// open bug link: https://bugs.chromium.org/p/chromium/issues/detail?id=943469
|
|
5460
5489
|
if (isBrowser('chrome') && this.mediaProperties.videoTrack) _media.default.stopTracks(this.mediaProperties.videoTrack);
|
|
5461
5490
|
return this.getMediaStreams(mediaDirection, _constants.VIDEO_RESOLUTIONS[level]).then( /*#__PURE__*/function () {
|
|
5462
|
-
var
|
|
5463
|
-
var
|
|
5464
|
-
return _regenerator.default.wrap(function
|
|
5465
|
-
while (1) switch (
|
|
5491
|
+
var _ref15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(_ref14) {
|
|
5492
|
+
var _ref16, localStream;
|
|
5493
|
+
return _regenerator.default.wrap(function _callee7$(_context7) {
|
|
5494
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
5466
5495
|
case 0:
|
|
5467
|
-
|
|
5468
|
-
|
|
5496
|
+
_ref16 = (0, _slicedToArray2.default)(_ref14, 1), localStream = _ref16[0];
|
|
5497
|
+
_context7.next = 3;
|
|
5469
5498
|
return _this53.updateVideo({
|
|
5470
5499
|
sendVideo: true,
|
|
5471
5500
|
receiveVideo: true,
|
|
5472
5501
|
stream: localStream
|
|
5473
5502
|
});
|
|
5474
5503
|
case 3:
|
|
5475
|
-
return
|
|
5504
|
+
return _context7.abrupt("return", localStream);
|
|
5476
5505
|
case 4:
|
|
5477
5506
|
case "end":
|
|
5478
|
-
return
|
|
5507
|
+
return _context7.stop();
|
|
5479
5508
|
}
|
|
5480
|
-
},
|
|
5509
|
+
}, _callee7);
|
|
5481
5510
|
}));
|
|
5482
|
-
return function (
|
|
5483
|
-
return
|
|
5511
|
+
return function (_x5) {
|
|
5512
|
+
return _ref15.apply(this, arguments);
|
|
5484
5513
|
};
|
|
5485
5514
|
}());
|
|
5486
5515
|
}
|
|
@@ -5678,9 +5707,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5678
5707
|
*/
|
|
5679
5708
|
}, {
|
|
5680
5709
|
key: "handleMediaLogging",
|
|
5681
|
-
value: function handleMediaLogging(
|
|
5682
|
-
var audioTrack =
|
|
5683
|
-
videoTrack =
|
|
5710
|
+
value: function handleMediaLogging(_ref17) {
|
|
5711
|
+
var audioTrack = _ref17.audioTrack,
|
|
5712
|
+
videoTrack = _ref17.videoTrack;
|
|
5684
5713
|
_util.default.handleVideoLogging(videoTrack);
|
|
5685
5714
|
_util.default.handleAudioLogging(audioTrack);
|
|
5686
5715
|
}
|
|
@@ -5951,31 +5980,31 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5951
5980
|
}, {
|
|
5952
5981
|
key: "internal_enableBNR",
|
|
5953
5982
|
value: function () {
|
|
5954
|
-
var _internal_enableBNR = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
5983
|
+
var _internal_enableBNR = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8(audioTrack) {
|
|
5955
5984
|
var bnrAudioTrack;
|
|
5956
|
-
return _regenerator.default.wrap(function
|
|
5957
|
-
while (1) switch (
|
|
5985
|
+
return _regenerator.default.wrap(function _callee8$(_context8) {
|
|
5986
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
5958
5987
|
case 0:
|
|
5959
|
-
|
|
5988
|
+
_context8.prev = 0;
|
|
5960
5989
|
_loggerProxy.default.logger.info('Meeting:index#internal_enableBNR. Internal enable BNR called');
|
|
5961
|
-
|
|
5990
|
+
_context8.next = 4;
|
|
5962
5991
|
return _internalMediaCore.Media.Effects.BNR.enableBNR(audioTrack);
|
|
5963
5992
|
case 4:
|
|
5964
|
-
bnrAudioTrack =
|
|
5993
|
+
bnrAudioTrack = _context8.sent;
|
|
5965
5994
|
_loggerProxy.default.logger.info('Meeting:index#internal_enableBNR. BNR enabled track obtained from WebRTC & returned as stream');
|
|
5966
|
-
return
|
|
5995
|
+
return _context8.abrupt("return", bnrAudioTrack);
|
|
5967
5996
|
case 9:
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
_loggerProxy.default.logger.error('Meeting:index#internal_enableBNR.',
|
|
5971
|
-
throw
|
|
5997
|
+
_context8.prev = 9;
|
|
5998
|
+
_context8.t0 = _context8["catch"](0);
|
|
5999
|
+
_loggerProxy.default.logger.error('Meeting:index#internal_enableBNR.', _context8.t0);
|
|
6000
|
+
throw _context8.t0;
|
|
5972
6001
|
case 13:
|
|
5973
6002
|
case "end":
|
|
5974
|
-
return
|
|
6003
|
+
return _context8.stop();
|
|
5975
6004
|
}
|
|
5976
|
-
},
|
|
6005
|
+
}, _callee8, null, [[0, 9]]);
|
|
5977
6006
|
}));
|
|
5978
|
-
function internal_enableBNR(
|
|
6007
|
+
function internal_enableBNR(_x6) {
|
|
5979
6008
|
return _internal_enableBNR.apply(this, arguments);
|
|
5980
6009
|
}
|
|
5981
6010
|
return internal_enableBNR;
|