@webex/plugin-meetings 3.0.0-beta.158 → 3.0.0-beta.159
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 +2 -2
- package/dist/breakouts/index.js.map +1 -1
- package/dist/meeting/index.js +105 -131
- package/dist/meeting/index.js.map +1 -1
- package/dist/types/meeting/index.d.ts +8 -1
- package/package.json +19 -19
- package/src/breakouts/index.ts +1 -1
- package/src/meeting/index.ts +28 -29
- package/test/unit/spec/meeting/index.js +21 -0
package/dist/meeting/index.js
CHANGED
|
@@ -104,7 +104,7 @@ var logRequest = function logRequest(request, _ref) {
|
|
|
104
104
|
};
|
|
105
105
|
var MEDIA_UPDATE_TYPE = {
|
|
106
106
|
TRANSCODED_MEDIA_CONNECTION: 'TRANSCODED_MEDIA_CONNECTION',
|
|
107
|
-
|
|
107
|
+
SHARE_FLOOR_REQUEST: 'SHARE_FLOOR_REQUEST',
|
|
108
108
|
UPDATE_MEDIA: 'UPDATE_MEDIA'
|
|
109
109
|
};
|
|
110
110
|
|
|
@@ -882,8 +882,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
882
882
|
case MEDIA_UPDATE_TYPE.TRANSCODED_MEDIA_CONNECTION:
|
|
883
883
|
mediaUpdate = _this.updateTranscodedMediaConnection();
|
|
884
884
|
break;
|
|
885
|
-
case MEDIA_UPDATE_TYPE.
|
|
886
|
-
mediaUpdate =
|
|
885
|
+
case MEDIA_UPDATE_TYPE.SHARE_FLOOR_REQUEST:
|
|
886
|
+
mediaUpdate = _this.requestScreenShareFloor();
|
|
887
887
|
break;
|
|
888
888
|
case MEDIA_UPDATE_TYPE.UPDATE_MEDIA:
|
|
889
889
|
mediaUpdate = _this.updateMedia(_options2);
|
|
@@ -1620,15 +1620,28 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
|
|
1622
1622
|
/**
|
|
1623
|
-
*
|
|
1624
|
-
* @
|
|
1625
|
-
* @param {String} [options.password] optional
|
|
1626
|
-
* @param {String} [options.captchaCode] optional
|
|
1627
|
-
* @public
|
|
1623
|
+
* returns meeting is joined
|
|
1624
|
+
* @private
|
|
1628
1625
|
* @memberof Meeting
|
|
1629
|
-
* @returns {
|
|
1626
|
+
* @returns {Boolean}
|
|
1630
1627
|
*/
|
|
1631
1628
|
(0, _createClass2.default)(Meeting, [{
|
|
1629
|
+
key: "isJoined",
|
|
1630
|
+
value: function isJoined() {
|
|
1631
|
+
var _this$joinedWith3;
|
|
1632
|
+
return ((_this$joinedWith3 = this.joinedWith) === null || _this$joinedWith3 === void 0 ? void 0 : _this$joinedWith3.state) === 'JOINED';
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
/**
|
|
1636
|
+
* Fetches meeting information.
|
|
1637
|
+
* @param {Object} options
|
|
1638
|
+
* @param {String} [options.password] optional
|
|
1639
|
+
* @param {String} [options.captchaCode] optional
|
|
1640
|
+
* @public
|
|
1641
|
+
* @memberof Meeting
|
|
1642
|
+
* @returns {Promise}
|
|
1643
|
+
*/
|
|
1644
|
+
}, {
|
|
1632
1645
|
key: "fetchMeetingInfo",
|
|
1633
1646
|
value: function () {
|
|
1634
1647
|
var _fetchMeetingInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(_ref3) {
|
|
@@ -1890,10 +1903,12 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1890
1903
|
}, _constants.EVENT_TRIGGERS.MEETING_BREAKOUTS_UPDATE);
|
|
1891
1904
|
});
|
|
1892
1905
|
this.breakouts.on(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN, function () {
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1906
|
+
if (_this4.isJoined()) {
|
|
1907
|
+
_triggerProxy.default.trigger(_this4, {
|
|
1908
|
+
file: 'meeting/index',
|
|
1909
|
+
function: 'setUpBreakoutsListener'
|
|
1910
|
+
}, _constants.EVENT_TRIGGERS.MEETING_BREAKOUTS_ASK_RETURN_TO_MAIN);
|
|
1911
|
+
}
|
|
1897
1912
|
});
|
|
1898
1913
|
this.breakouts.on(_constants.BREAKOUTS.EVENTS.LEAVE_BREAKOUT, function () {
|
|
1899
1914
|
_triggerProxy.default.trigger(_this4, {
|
|
@@ -4268,7 +4283,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4268
4283
|
case 0:
|
|
4269
4284
|
// @ts-ignore - Fix type
|
|
4270
4285
|
_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;
|
|
4271
|
-
isJoined = this.
|
|
4286
|
+
isJoined = this.isJoined(); // @ts-ignore - Fix type
|
|
4272
4287
|
if (!this.webex.internal.llm.isConnected()) {
|
|
4273
4288
|
_context11.next = 8;
|
|
4274
4289
|
break;
|
|
@@ -4866,25 +4881,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4866
4881
|
}).then(function () {
|
|
4867
4882
|
var _localTracks$screenSh2;
|
|
4868
4883
|
if (localTracks !== null && localTracks !== void 0 && (_localTracks$screenSh2 = localTracks.screenShare) !== null && _localTracks$screenSh2 !== void 0 && _localTracks$screenSh2.video) {
|
|
4869
|
-
_this35.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.
|
|
4870
|
-
lambda: function () {
|
|
4871
|
-
var _lambda = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
|
|
4872
|
-
return _regenerator.default.wrap(function _callee15$(_context15) {
|
|
4873
|
-
while (1) switch (_context15.prev = _context15.next) {
|
|
4874
|
-
case 0:
|
|
4875
|
-
return _context15.abrupt("return", _this35.requestScreenShareFloor());
|
|
4876
|
-
case 1:
|
|
4877
|
-
case "end":
|
|
4878
|
-
return _context15.stop();
|
|
4879
|
-
}
|
|
4880
|
-
}, _callee15);
|
|
4881
|
-
}));
|
|
4882
|
-
function lambda() {
|
|
4883
|
-
return _lambda.apply(this, arguments);
|
|
4884
|
-
}
|
|
4885
|
-
return lambda;
|
|
4886
|
-
}()
|
|
4887
|
-
});
|
|
4884
|
+
_this35.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.SHARE_FLOOR_REQUEST);
|
|
4888
4885
|
}
|
|
4889
4886
|
}).then(function () {
|
|
4890
4887
|
return _this35.mediaProperties.getCurrentConnectionType();
|
|
@@ -4959,11 +4956,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4959
4956
|
*/
|
|
4960
4957
|
}, {
|
|
4961
4958
|
key: "enqueueMediaUpdate",
|
|
4962
|
-
value: function enqueueMediaUpdate(mediaUpdateType
|
|
4959
|
+
value: function enqueueMediaUpdate(mediaUpdateType) {
|
|
4963
4960
|
var _this36 = this;
|
|
4964
|
-
|
|
4965
|
-
return _promise.default.reject(new Error('lambda must be specified when enqueuing MEDIA_UPDATE_TYPE.LAMBDA'));
|
|
4966
|
-
}
|
|
4961
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
4967
4962
|
var canUpdateMediaNow = this.canUpdateMedia();
|
|
4968
4963
|
return new _promise.default(function (resolve, reject) {
|
|
4969
4964
|
var queueItem = {
|
|
@@ -5005,32 +5000,32 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5005
5000
|
* @memberof Meeting
|
|
5006
5001
|
*/
|
|
5007
5002
|
function () {
|
|
5008
|
-
var _updateMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
5003
|
+
var _updateMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15(options) {
|
|
5009
5004
|
var audioEnabled, videoEnabled, receiveShare;
|
|
5010
|
-
return _regenerator.default.wrap(function
|
|
5011
|
-
while (1) switch (
|
|
5005
|
+
return _regenerator.default.wrap(function _callee15$(_context15) {
|
|
5006
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
5012
5007
|
case 0:
|
|
5013
5008
|
this.checkMediaConnection();
|
|
5014
5009
|
audioEnabled = options.audioEnabled, videoEnabled = options.videoEnabled, receiveShare = options.receiveShare;
|
|
5015
5010
|
_loggerProxy.default.logger.log("Meeting:index#updateMedia --> called with options=".concat((0, _stringify.default)(options)));
|
|
5016
5011
|
if (this.canUpdateMedia()) {
|
|
5017
|
-
|
|
5012
|
+
_context15.next = 5;
|
|
5018
5013
|
break;
|
|
5019
5014
|
}
|
|
5020
|
-
return
|
|
5015
|
+
return _context15.abrupt("return", this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.UPDATE_MEDIA, options));
|
|
5021
5016
|
case 5:
|
|
5022
5017
|
if (!this.isMultistream) {
|
|
5023
|
-
|
|
5018
|
+
_context15.next = 10;
|
|
5024
5019
|
break;
|
|
5025
5020
|
}
|
|
5026
5021
|
if (!(videoEnabled !== undefined)) {
|
|
5027
|
-
|
|
5022
|
+
_context15.next = 8;
|
|
5028
5023
|
break;
|
|
5029
5024
|
}
|
|
5030
5025
|
throw new Error('enabling/disabling video in a meeting is not supported for multistream, it can only be done upfront when calling addMedia()');
|
|
5031
5026
|
case 8:
|
|
5032
5027
|
if (!(receiveShare !== undefined)) {
|
|
5033
|
-
|
|
5028
|
+
_context15.next = 10;
|
|
5034
5029
|
break;
|
|
5035
5030
|
}
|
|
5036
5031
|
throw new Error('toggling receiveShare in a multistream meeting is not supported, to control receiving screen share call meeting.remoteMediaManager.setLayout() with appropriate layout');
|
|
@@ -5049,28 +5044,28 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5049
5044
|
this.mediaProperties.mediaDirection.receiveShare = receiveShare;
|
|
5050
5045
|
}
|
|
5051
5046
|
if (!this.isMultistream) {
|
|
5052
|
-
|
|
5047
|
+
_context15.next = 19;
|
|
5053
5048
|
break;
|
|
5054
5049
|
}
|
|
5055
5050
|
if (!(audioEnabled !== undefined)) {
|
|
5056
|
-
|
|
5051
|
+
_context15.next = 17;
|
|
5057
5052
|
break;
|
|
5058
5053
|
}
|
|
5059
|
-
|
|
5054
|
+
_context15.next = 17;
|
|
5060
5055
|
return this.mediaProperties.webrtcMediaConnection.enableMultistreamAudio(audioEnabled);
|
|
5061
5056
|
case 17:
|
|
5062
|
-
|
|
5057
|
+
_context15.next = 21;
|
|
5063
5058
|
break;
|
|
5064
5059
|
case 19:
|
|
5065
|
-
|
|
5060
|
+
_context15.next = 21;
|
|
5066
5061
|
return this.updateTranscodedMediaConnection();
|
|
5067
5062
|
case 21:
|
|
5068
|
-
return
|
|
5063
|
+
return _context15.abrupt("return", undefined);
|
|
5069
5064
|
case 22:
|
|
5070
5065
|
case "end":
|
|
5071
|
-
return
|
|
5066
|
+
return _context15.stop();
|
|
5072
5067
|
}
|
|
5073
|
-
},
|
|
5068
|
+
}, _callee15, this);
|
|
5074
5069
|
}));
|
|
5075
5070
|
function updateMedia(_x12) {
|
|
5076
5071
|
return _updateMedia.apply(this, arguments);
|
|
@@ -6093,37 +6088,37 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6093
6088
|
}, {
|
|
6094
6089
|
key: "enableMusicMode",
|
|
6095
6090
|
value: function () {
|
|
6096
|
-
var _enableMusicMode = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6097
|
-
return _regenerator.default.wrap(function
|
|
6098
|
-
while (1) switch (
|
|
6091
|
+
var _enableMusicMode = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16(shouldEnableMusicMode) {
|
|
6092
|
+
return _regenerator.default.wrap(function _callee16$(_context16) {
|
|
6093
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
6099
6094
|
case 0:
|
|
6100
6095
|
this.checkMediaConnection();
|
|
6101
6096
|
if (this.isMultistream) {
|
|
6102
|
-
|
|
6097
|
+
_context16.next = 3;
|
|
6103
6098
|
break;
|
|
6104
6099
|
}
|
|
6105
6100
|
throw new Error('enableMusicMode() only supported with multistream');
|
|
6106
6101
|
case 3:
|
|
6107
6102
|
if (!shouldEnableMusicMode) {
|
|
6108
|
-
|
|
6103
|
+
_context16.next = 8;
|
|
6109
6104
|
break;
|
|
6110
6105
|
}
|
|
6111
|
-
|
|
6106
|
+
_context16.next = 6;
|
|
6112
6107
|
return this.mediaProperties.webrtcMediaConnection.setCodecParameters(_internalMediaCore.MediaType.AudioMain, {
|
|
6113
6108
|
maxaveragebitrate: '64000',
|
|
6114
6109
|
maxplaybackrate: '48000'
|
|
6115
6110
|
});
|
|
6116
6111
|
case 6:
|
|
6117
|
-
|
|
6112
|
+
_context16.next = 10;
|
|
6118
6113
|
break;
|
|
6119
6114
|
case 8:
|
|
6120
|
-
|
|
6115
|
+
_context16.next = 10;
|
|
6121
6116
|
return this.mediaProperties.webrtcMediaConnection.deleteCodecParameters(_internalMediaCore.MediaType.AudioMain, ['maxaveragebitrate', 'maxplaybackrate']);
|
|
6122
6117
|
case 10:
|
|
6123
6118
|
case "end":
|
|
6124
|
-
return
|
|
6119
|
+
return _context16.stop();
|
|
6125
6120
|
}
|
|
6126
|
-
},
|
|
6121
|
+
}, _callee16, this);
|
|
6127
6122
|
}));
|
|
6128
6123
|
function enableMusicMode(_x13) {
|
|
6129
6124
|
return _enableMusicMode.apply(this, arguments);
|
|
@@ -6144,7 +6139,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6144
6139
|
var LOG_HEADER = 'Meeting:index#updateTranscodedMediaConnection -->';
|
|
6145
6140
|
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " starting"));
|
|
6146
6141
|
if (!this.canUpdateMedia()) {
|
|
6147
|
-
return this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.TRANSCODED_MEDIA_CONNECTION
|
|
6142
|
+
return this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.TRANSCODED_MEDIA_CONNECTION);
|
|
6148
6143
|
}
|
|
6149
6144
|
return this.mediaProperties.webrtcMediaConnection.update({
|
|
6150
6145
|
localTracks: {
|
|
@@ -6181,36 +6176,36 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6181
6176
|
}, {
|
|
6182
6177
|
key: "publishTrack",
|
|
6183
6178
|
value: function () {
|
|
6184
|
-
var _publishTrack = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6185
|
-
return _regenerator.default.wrap(function
|
|
6186
|
-
while (1) switch (
|
|
6179
|
+
var _publishTrack = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(track) {
|
|
6180
|
+
return _regenerator.default.wrap(function _callee17$(_context17) {
|
|
6181
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
6187
6182
|
case 0:
|
|
6188
6183
|
if (track) {
|
|
6189
|
-
|
|
6184
|
+
_context17.next = 2;
|
|
6190
6185
|
break;
|
|
6191
6186
|
}
|
|
6192
|
-
return
|
|
6187
|
+
return _context17.abrupt("return");
|
|
6193
6188
|
case 2:
|
|
6194
6189
|
if (!this.mediaProperties.webrtcMediaConnection) {
|
|
6195
|
-
|
|
6190
|
+
_context17.next = 9;
|
|
6196
6191
|
break;
|
|
6197
6192
|
}
|
|
6198
6193
|
if (!this.isMultistream) {
|
|
6199
|
-
|
|
6194
|
+
_context17.next = 8;
|
|
6200
6195
|
break;
|
|
6201
6196
|
}
|
|
6202
|
-
|
|
6197
|
+
_context17.next = 6;
|
|
6203
6198
|
return this.mediaProperties.webrtcMediaConnection.publishTrack(track);
|
|
6204
6199
|
case 6:
|
|
6205
|
-
|
|
6200
|
+
_context17.next = 9;
|
|
6206
6201
|
break;
|
|
6207
6202
|
case 8:
|
|
6208
6203
|
track.setPublished(true); // for multistream, this call is done by WCME
|
|
6209
6204
|
case 9:
|
|
6210
6205
|
case "end":
|
|
6211
|
-
return
|
|
6206
|
+
return _context17.stop();
|
|
6212
6207
|
}
|
|
6213
|
-
},
|
|
6208
|
+
}, _callee17, this);
|
|
6214
6209
|
}));
|
|
6215
6210
|
function publishTrack(_x14) {
|
|
6216
6211
|
return _publishTrack.apply(this, arguments);
|
|
@@ -6226,32 +6221,32 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6226
6221
|
}, {
|
|
6227
6222
|
key: "unpublishTrack",
|
|
6228
6223
|
value: function () {
|
|
6229
|
-
var _unpublishTrack = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6230
|
-
return _regenerator.default.wrap(function
|
|
6231
|
-
while (1) switch (
|
|
6224
|
+
var _unpublishTrack = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(track) {
|
|
6225
|
+
return _regenerator.default.wrap(function _callee18$(_context18) {
|
|
6226
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
6232
6227
|
case 0:
|
|
6233
6228
|
if (track) {
|
|
6234
|
-
|
|
6229
|
+
_context18.next = 2;
|
|
6235
6230
|
break;
|
|
6236
6231
|
}
|
|
6237
|
-
return
|
|
6232
|
+
return _context18.abrupt("return");
|
|
6238
6233
|
case 2:
|
|
6239
6234
|
if (!(this.isMultistream && this.mediaProperties.webrtcMediaConnection)) {
|
|
6240
|
-
|
|
6235
|
+
_context18.next = 7;
|
|
6241
6236
|
break;
|
|
6242
6237
|
}
|
|
6243
|
-
|
|
6238
|
+
_context18.next = 5;
|
|
6244
6239
|
return this.mediaProperties.webrtcMediaConnection.unpublishTrack(track);
|
|
6245
6240
|
case 5:
|
|
6246
|
-
|
|
6241
|
+
_context18.next = 8;
|
|
6247
6242
|
break;
|
|
6248
6243
|
case 7:
|
|
6249
6244
|
track.setPublished(false); // for multistream, this call is done by WCME
|
|
6250
6245
|
case 8:
|
|
6251
6246
|
case "end":
|
|
6252
|
-
return
|
|
6247
|
+
return _context18.stop();
|
|
6253
6248
|
}
|
|
6254
|
-
},
|
|
6249
|
+
}, _callee18, this);
|
|
6255
6250
|
}));
|
|
6256
6251
|
function unpublishTrack(_x15) {
|
|
6257
6252
|
return _unpublishTrack.apply(this, arguments);
|
|
@@ -6267,83 +6262,62 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6267
6262
|
}, {
|
|
6268
6263
|
key: "publishTracks",
|
|
6269
6264
|
value: function () {
|
|
6270
|
-
var _publishTracks = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6271
|
-
var _tracks$screenShare,
|
|
6272
|
-
_tracks$screenShare2,
|
|
6273
|
-
_tracks$screenShare3,
|
|
6274
|
-
_this48 = this;
|
|
6265
|
+
var _publishTracks = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(tracks) {
|
|
6266
|
+
var _tracks$screenShare, _tracks$screenShare2, _tracks$screenShare3;
|
|
6275
6267
|
var floorRequestNeeded, _tracks$screenShare4;
|
|
6276
|
-
return _regenerator.default.wrap(function
|
|
6277
|
-
while (1) switch (
|
|
6268
|
+
return _regenerator.default.wrap(function _callee19$(_context19) {
|
|
6269
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
6278
6270
|
case 0:
|
|
6279
6271
|
this.checkMediaConnection();
|
|
6280
6272
|
this.annotationInfo = tracks.annotationInfo;
|
|
6281
6273
|
if (!(!tracks.microphone && !tracks.camera && !((_tracks$screenShare = tracks.screenShare) !== null && _tracks$screenShare !== void 0 && _tracks$screenShare.audio) && !((_tracks$screenShare2 = tracks.screenShare) !== null && _tracks$screenShare2 !== void 0 && _tracks$screenShare2.video))) {
|
|
6282
|
-
|
|
6274
|
+
_context19.next = 4;
|
|
6283
6275
|
break;
|
|
6284
6276
|
}
|
|
6285
|
-
return
|
|
6277
|
+
return _context19.abrupt("return");
|
|
6286
6278
|
case 4:
|
|
6287
6279
|
floorRequestNeeded = false;
|
|
6288
6280
|
if (!((_tracks$screenShare3 = tracks.screenShare) !== null && _tracks$screenShare3 !== void 0 && _tracks$screenShare3.video)) {
|
|
6289
|
-
|
|
6281
|
+
_context19.next = 9;
|
|
6290
6282
|
break;
|
|
6291
6283
|
}
|
|
6292
|
-
|
|
6284
|
+
_context19.next = 8;
|
|
6293
6285
|
return this.setLocalShareTrack((_tracks$screenShare4 = tracks.screenShare) === null || _tracks$screenShare4 === void 0 ? void 0 : _tracks$screenShare4.video);
|
|
6294
6286
|
case 8:
|
|
6295
6287
|
floorRequestNeeded = true;
|
|
6296
6288
|
case 9:
|
|
6297
6289
|
if (!tracks.microphone) {
|
|
6298
|
-
|
|
6290
|
+
_context19.next = 12;
|
|
6299
6291
|
break;
|
|
6300
6292
|
}
|
|
6301
|
-
|
|
6293
|
+
_context19.next = 12;
|
|
6302
6294
|
return this.setLocalAudioTrack(tracks.microphone);
|
|
6303
6295
|
case 12:
|
|
6304
6296
|
if (!tracks.camera) {
|
|
6305
|
-
|
|
6297
|
+
_context19.next = 15;
|
|
6306
6298
|
break;
|
|
6307
6299
|
}
|
|
6308
|
-
|
|
6300
|
+
_context19.next = 15;
|
|
6309
6301
|
return this.setLocalVideoTrack(tracks.camera);
|
|
6310
6302
|
case 15:
|
|
6311
6303
|
if (this.isMultistream) {
|
|
6312
|
-
|
|
6304
|
+
_context19.next = 18;
|
|
6313
6305
|
break;
|
|
6314
6306
|
}
|
|
6315
|
-
|
|
6307
|
+
_context19.next = 18;
|
|
6316
6308
|
return this.updateTranscodedMediaConnection();
|
|
6317
6309
|
case 18:
|
|
6318
6310
|
if (!floorRequestNeeded) {
|
|
6319
|
-
|
|
6311
|
+
_context19.next = 21;
|
|
6320
6312
|
break;
|
|
6321
6313
|
}
|
|
6322
|
-
|
|
6323
|
-
return this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.
|
|
6324
|
-
lambda: function () {
|
|
6325
|
-
var _lambda2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20() {
|
|
6326
|
-
return _regenerator.default.wrap(function _callee20$(_context20) {
|
|
6327
|
-
while (1) switch (_context20.prev = _context20.next) {
|
|
6328
|
-
case 0:
|
|
6329
|
-
return _context20.abrupt("return", _this48.requestScreenShareFloor());
|
|
6330
|
-
case 1:
|
|
6331
|
-
case "end":
|
|
6332
|
-
return _context20.stop();
|
|
6333
|
-
}
|
|
6334
|
-
}, _callee20);
|
|
6335
|
-
}));
|
|
6336
|
-
function lambda() {
|
|
6337
|
-
return _lambda2.apply(this, arguments);
|
|
6338
|
-
}
|
|
6339
|
-
return lambda;
|
|
6340
|
-
}()
|
|
6341
|
-
});
|
|
6314
|
+
_context19.next = 21;
|
|
6315
|
+
return this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.SHARE_FLOOR_REQUEST);
|
|
6342
6316
|
case 21:
|
|
6343
6317
|
case "end":
|
|
6344
|
-
return
|
|
6318
|
+
return _context19.stop();
|
|
6345
6319
|
}
|
|
6346
|
-
},
|
|
6320
|
+
}, _callee19, this);
|
|
6347
6321
|
}));
|
|
6348
6322
|
function publishTracks(_x16) {
|
|
6349
6323
|
return _publishTracks.apply(this, arguments);
|
|
@@ -6359,10 +6333,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6359
6333
|
}, {
|
|
6360
6334
|
key: "unpublishTracks",
|
|
6361
6335
|
value: function () {
|
|
6362
|
-
var _unpublishTracks = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
6336
|
+
var _unpublishTracks = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(tracks) {
|
|
6363
6337
|
var promises, _iterator, _step, track;
|
|
6364
|
-
return _regenerator.default.wrap(function
|
|
6365
|
-
while (1) switch (
|
|
6338
|
+
return _regenerator.default.wrap(function _callee20$(_context20) {
|
|
6339
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
6366
6340
|
case 0:
|
|
6367
6341
|
this.checkMediaConnection();
|
|
6368
6342
|
promises = [];
|
|
@@ -6395,13 +6369,13 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6395
6369
|
if (!this.isMultistream) {
|
|
6396
6370
|
promises.push(this.updateTranscodedMediaConnection());
|
|
6397
6371
|
}
|
|
6398
|
-
|
|
6372
|
+
_context20.next = 7;
|
|
6399
6373
|
return _promise.default.all(promises);
|
|
6400
6374
|
case 7:
|
|
6401
6375
|
case "end":
|
|
6402
|
-
return
|
|
6376
|
+
return _context20.stop();
|
|
6403
6377
|
}
|
|
6404
|
-
},
|
|
6378
|
+
}, _callee20, this);
|
|
6405
6379
|
}));
|
|
6406
6380
|
function unpublishTracks(_x17) {
|
|
6407
6381
|
return _unpublishTracks.apply(this, arguments);
|