@webex/plugin-meetings 3.8.1-next.11 → 3.8.1-next.2
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/README.md +13 -26
- 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 +24 -14
- package/dist/meeting/index.js.map +1 -1
- package/dist/reachability/index.js +10 -5
- package/dist/reachability/index.js.map +1 -1
- package/dist/types/reachability/index.d.ts +2 -2
- package/dist/webinar/index.js +1 -1
- package/package.json +24 -24
- package/src/meeting/index.ts +22 -16
- package/src/reachability/index.ts +13 -5
- package/test/unit/spec/meeting/index.js +26 -50
- package/test/unit/spec/reachability/index.ts +6 -2
package/README.md
CHANGED
@@ -30,9 +30,9 @@ This is a plugin for the Cisco Webex JS SDK . Please see our [developer portal](
|
|
30
30
|
|
31
31
|
## API Docs and Sample App
|
32
32
|
|
33
|
-
API Docs:
|
34
|
-
Hosted Sample App:
|
35
|
-
See
|
33
|
+
API Docs: https://webex.github.io/webex-js-sdk/api/
|
34
|
+
Hosted Sample App: https://webex.github.io/webex-js-sdk/samples/browser-plugin-meetings/
|
35
|
+
See https://github.com/webex/webex-js-sdk/tree/master/docs/samples/browser-plugin-meetings for the sample app code vs the readme
|
36
36
|
|
37
37
|
#### Device Registration
|
38
38
|
|
@@ -110,7 +110,6 @@ webex.meetings.syncMeetings().then(() => {
|
|
110
110
|
```
|
111
111
|
|
112
112
|
Or, to keep meetings with an locus url that is still active and any meeting without a locus url:
|
113
|
-
|
114
113
|
```js
|
115
114
|
let existingMeetings;
|
116
115
|
// Sync Meetings From Server
|
@@ -344,7 +343,6 @@ webex.meetings.on('meeting:added', (addedMeeting) => {
|
|
344
343
|
addedMeeting.join().then(() => {});
|
345
344
|
}
|
346
345
|
```
|
347
|
-
|
348
346
|
##### Reject an incoming meeting
|
349
347
|
|
350
348
|
When listening to an added meeting, to determine if it is an "incoming" meeting, check the type property of the meeting:
|
@@ -470,9 +468,7 @@ audioOutputSelect.onchange = function () {
|
|
470
468
|
attachSinkId(document.getElementById('remoteaudio'), audioOutputSelect.value);
|
471
469
|
};
|
472
470
|
```
|
473
|
-
|
474
|
-
##### Available joining options
|
475
|
-
|
471
|
+
##### Availabel joining options
|
476
472
|
```
|
477
473
|
/**
|
478
474
|
* Make a network request to join a meeting
|
@@ -494,29 +490,21 @@ audioOutputSelect.onchange = function () {
|
|
494
490
|
* @returns {Promise}
|
495
491
|
*/
|
496
492
|
```
|
497
|
-
|
498
493
|
##### options.deviceCapabilities
|
499
|
-
|
500
494
|
This option provides toggles that Locus service needs, and those toggles will control the performance or features of the meetings to be joined, see examples:
|
501
|
-
|
502
495
|
###### Breakout Sessions
|
503
|
-
|
504
496
|
```
|
505
497
|
if (breakoutsSupported) {
|
506
498
|
deviceCapabilities.push(BREAKOUTS.BREAKOUTS_SUPPORTED);
|
507
499
|
}
|
508
500
|
```
|
509
|
-
|
510
501
|
###### Live Annotation
|
511
|
-
|
512
502
|
```
|
513
503
|
if (liveAnnotationSupported) {
|
514
504
|
deviceCapabilities.push(ANNOTATION.ANNOTATION_ON_SHARE_SUPPORTED);
|
515
505
|
}
|
516
506
|
```
|
517
|
-
|
518
507
|
###### Audio Disclaimer
|
519
|
-
|
520
508
|
```
|
521
509
|
const joinOptions = {
|
522
510
|
locale: 'en_UK', // audio disclaimer language
|
@@ -707,7 +695,7 @@ webex.meetings.personalMeetingRoom.get().then((pmr) => {
|
|
707
695
|
|
708
696
|
#### Usage of Webex Devices
|
709
697
|
|
710
|
-
For details on how to use the devices see
|
698
|
+
For details on how to use the devices see https://github.com/webex/webex-js-sdk/tree/master/packages/node_modules/%40webex/plugin-device-manager
|
711
699
|
|
712
700
|
##### Leave a Meeting Using a Device
|
713
701
|
|
@@ -797,7 +785,7 @@ meeting.reconnect();
|
|
797
785
|
|
798
786
|
#### Scheduled Meetings
|
799
787
|
|
800
|
-
For scheduled meetings see
|
788
|
+
For scheduled meetings see https://github.com/webex/webex-js-sdk/tree/master/packages/node_modules/%40webex/internal-plugin-calendar
|
801
789
|
|
802
790
|
#### Member
|
803
791
|
|
@@ -1199,14 +1187,13 @@ meeting.members.on(...)
|
|
1199
1187
|
```
|
1200
1188
|
|
1201
1189
|
There are several events submitted by this package that you can subscribe to.
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
|
1205
|
-
| `members:update` | Fired when a member in the collection has been updated |
|
1190
|
+
| Event Name | Description |
|
1191
|
+
|---|---|
|
1192
|
+
| `members:update` | Fired when a member in the collection has been updated |
|
1206
1193
|
| `members:content:update` | Fired when a member in the collection has a changed content stream (share screen) |
|
1207
|
-
| `members:host:update`
|
1208
|
-
| `members:self:update`
|
1209
|
-
|
1194
|
+
| `members:host:update` | Fired when a member in the collection has a changed host value |
|
1195
|
+
| `members:self:update` | Fired when a member in the collection has a changed self value |
|
1196
|
+
|---|---|
|
1210
1197
|
|
1211
1198
|
`members:update` has the following payload
|
1212
1199
|
|
@@ -1265,4 +1252,4 @@ Pull requests welcome. Please see [CONTRIBUTING.md](https://github.com/webex/web
|
|
1265
1252
|
|
1266
1253
|
## License
|
1267
1254
|
|
1268
|
-
© 2016-
|
1255
|
+
© 2016-2020 Cisco and/or its affiliates. All Rights Reserved.
|
package/dist/breakouts/index.js
CHANGED
@@ -1110,7 +1110,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
|
|
1110
1110
|
this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
|
1111
1111
|
}
|
1112
1112
|
},
|
1113
|
-
version: "3.8.1-next.
|
1113
|
+
version: "3.8.1-next.2"
|
1114
1114
|
});
|
1115
1115
|
var _default = exports.default = Breakouts;
|
1116
1116
|
//# sourceMappingURL=index.js.map
|
@@ -373,7 +373,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
|
|
373
373
|
throw error;
|
374
374
|
});
|
375
375
|
},
|
376
|
-
version: "3.8.1-next.
|
376
|
+
version: "3.8.1-next.2"
|
377
377
|
});
|
378
378
|
var _default = exports.default = SimultaneousInterpretation;
|
379
379
|
//# sourceMappingURL=index.js.map
|
package/dist/meeting/index.js
CHANGED
@@ -3405,10 +3405,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
3405
3405
|
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_TRANSCRIPTION_SPOKEN_LANGUAGE_UPDATED, function (_ref12) {
|
3406
3406
|
var spokenLanguage = _ref12.spokenLanguage;
|
3407
3407
|
if (spokenLanguage) {
|
3408
|
-
|
3409
|
-
if ((_this14$transcription = _this14.transcription) !== null && _this14$transcription !== void 0 && _this14$transcription.languageOptions) {
|
3410
|
-
_this14.transcription.languageOptions.currentSpokenLanguage = spokenLanguage;
|
3411
|
-
}
|
3408
|
+
_this14.transcription.languageOptions.currentSpokenLanguage = spokenLanguage;
|
3412
3409
|
// @ts-ignore
|
3413
3410
|
_this14.webex.internal.voicea.onSpokenLanguageUpdate(spokenLanguage);
|
3414
3411
|
_triggerProxy.default.trigger(_this14, {
|
@@ -5381,6 +5378,13 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
5381
5378
|
|
5382
5379
|
// Only send restore event when it was disconnected before and for connected later
|
5383
5380
|
if (!_this27.hasWebsocketConnected) {
|
5381
|
+
// @ts-ignore
|
5382
|
+
_this27.webex.internal.newMetrics.submitClientEvent({
|
5383
|
+
name: 'client.mercury.connection.restored',
|
5384
|
+
options: {
|
5385
|
+
meetingId: _this27.id
|
5386
|
+
}
|
5387
|
+
});
|
5384
5388
|
_metrics.default.sendBehavioralMetric(_constants2.default.MERCURY_CONNECTION_RESTORED, {
|
5385
5389
|
correlation_id: _this27.correlationId
|
5386
5390
|
});
|
@@ -5391,6 +5395,13 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
5391
5395
|
// @ts-ignore
|
5392
5396
|
this.webex.internal.mercury.on(_constants.OFFLINE, function () {
|
5393
5397
|
_loggerProxy.default.logger.error('Meeting:index#setMercuryListener --> Web socket offline');
|
5398
|
+
// @ts-ignore
|
5399
|
+
_this27.webex.internal.newMetrics.submitClientEvent({
|
5400
|
+
name: 'client.mercury.connection.lost',
|
5401
|
+
options: {
|
5402
|
+
meetingId: _this27.id
|
5403
|
+
}
|
5404
|
+
});
|
5394
5405
|
_metrics.default.sendBehavioralMetric(_constants2.default.MERCURY_CONNECTION_FAILURE, {
|
5395
5406
|
correlation_id: _this27.correlationId
|
5396
5407
|
});
|
@@ -9425,8 +9436,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
9425
9436
|
key: "getMediaReachabilityMetricFields",
|
9426
9437
|
value: (function () {
|
9427
9438
|
var _getMediaReachabilityMetricFields = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee42() {
|
9428
|
-
var
|
9429
|
-
var reachabilityMetrics, successKeys, totalSuccessCases, selectedSubnetFirstOctet, isSubnetReachable, selectedCluster;
|
9439
|
+
var reachabilityMetrics, successKeys, totalSuccessCases, isSubnetReachable, selectedCluster;
|
9430
9440
|
return _regenerator.default.wrap(function _callee42$(_context42) {
|
9431
9441
|
while (1) switch (_context42.prev = _context42.next) {
|
9432
9442
|
case 0:
|
@@ -9442,18 +9452,18 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
9442
9452
|
}
|
9443
9453
|
return total;
|
9444
9454
|
}, 0);
|
9445
|
-
selectedSubnetFirstOctet = (_this$mediaServerIp = this.mediaServerIp) === null || _this$mediaServerIp === void 0 ? void 0 : _this$mediaServerIp.split('.')[0];
|
9446
9455
|
isSubnetReachable = null;
|
9447
|
-
if (totalSuccessCases > 0
|
9448
|
-
isSubnetReachable =
|
9456
|
+
if (totalSuccessCases > 0) {
|
9449
9457
|
// @ts-ignore
|
9450
|
-
this.webex.meetings.reachability.isSubnetReachable(
|
9458
|
+
isSubnetReachable = this.webex.meetings.reachability.isSubnetReachable(this.mediaServerIp);
|
9459
|
+
}
|
9460
|
+
selectedCluster = null;
|
9461
|
+
if (this.mediaConnections && this.mediaConnections.length > 0) {
|
9462
|
+
selectedCluster = this.mediaConnections[0].mediaAgentCluster;
|
9451
9463
|
}
|
9452
|
-
selectedCluster = (_this$mediaConnection = (_this$mediaConnection2 = this.mediaConnections) === null || _this$mediaConnection2 === void 0 ? void 0 : (_this$mediaConnection3 = _this$mediaConnection2[0]) === null || _this$mediaConnection3 === void 0 ? void 0 : _this$mediaConnection3.mediaAgentCluster) !== null && _this$mediaConnection !== void 0 ? _this$mediaConnection : null;
|
9453
9464
|
return _context42.abrupt("return", _objectSpread(_objectSpread({}, reachabilityMetrics), {}, {
|
9454
|
-
|
9455
|
-
|
9456
|
-
selected_subnet: selectedSubnetFirstOctet ? "".concat(selectedSubnetFirstOctet, ".X.X.X") : null
|
9465
|
+
isSubnetReachable: isSubnetReachable,
|
9466
|
+
selectedCluster: selectedCluster
|
9457
9467
|
}));
|
9458
9468
|
case 10:
|
9459
9469
|
case "end":
|