@webex/plugin-meetings 3.0.0-beta.344 → 3.0.0-beta.346

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.
@@ -62,7 +62,7 @@ var Webinar = _webexCore.WebexPlugin.extend({
62
62
  updateCanManageWebcast: function updateCanManageWebcast(canManageWebcast) {
63
63
  this.set('canManageWebcast', canManageWebcast);
64
64
  },
65
- version: "3.0.0-beta.344"
65
+ version: "3.0.0-beta.346"
66
66
  });
67
67
  var _default = Webinar;
68
68
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webex/plugin-meetings",
3
- "version": "3.0.0-beta.344",
3
+ "version": "3.0.0-beta.346",
4
4
  "description": "",
5
5
  "license": "Cisco EULA (https://www.cisco.com/c/en/us/products/end-user-license-agreement.html)",
6
6
  "contributors": [
@@ -33,12 +33,12 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@peculiar/webcrypto": "^1.4.3",
36
- "@webex/plugin-meetings": "3.0.0-beta.344",
37
- "@webex/test-helper-chai": "3.0.0-beta.344",
38
- "@webex/test-helper-mocha": "3.0.0-beta.344",
39
- "@webex/test-helper-mock-webex": "3.0.0-beta.344",
40
- "@webex/test-helper-retry": "3.0.0-beta.344",
41
- "@webex/test-helper-test-users": "3.0.0-beta.344",
36
+ "@webex/plugin-meetings": "3.0.0-beta.346",
37
+ "@webex/test-helper-chai": "3.0.0-beta.346",
38
+ "@webex/test-helper-mocha": "3.0.0-beta.346",
39
+ "@webex/test-helper-mock-webex": "3.0.0-beta.346",
40
+ "@webex/test-helper-retry": "3.0.0-beta.346",
41
+ "@webex/test-helper-test-users": "3.0.0-beta.346",
42
42
  "chai": "^4.3.4",
43
43
  "chai-as-promised": "^7.1.1",
44
44
  "jsdom-global": "3.0.2",
@@ -47,19 +47,19 @@
47
47
  "typescript": "^4.7.4"
48
48
  },
49
49
  "dependencies": {
50
- "@webex/common": "3.0.0-beta.344",
50
+ "@webex/common": "3.0.0-beta.346",
51
51
  "@webex/internal-media-core": "2.2.6",
52
- "@webex/internal-plugin-conversation": "3.0.0-beta.344",
53
- "@webex/internal-plugin-device": "3.0.0-beta.344",
54
- "@webex/internal-plugin-llm": "3.0.0-beta.344",
55
- "@webex/internal-plugin-mercury": "3.0.0-beta.344",
56
- "@webex/internal-plugin-metrics": "3.0.0-beta.344",
57
- "@webex/internal-plugin-support": "3.0.0-beta.344",
58
- "@webex/internal-plugin-user": "3.0.0-beta.344",
59
- "@webex/media-helpers": "3.0.0-beta.344",
60
- "@webex/plugin-people": "3.0.0-beta.344",
61
- "@webex/plugin-rooms": "3.0.0-beta.344",
62
- "@webex/webex-core": "3.0.0-beta.344",
52
+ "@webex/internal-plugin-conversation": "3.0.0-beta.346",
53
+ "@webex/internal-plugin-device": "3.0.0-beta.346",
54
+ "@webex/internal-plugin-llm": "3.0.0-beta.346",
55
+ "@webex/internal-plugin-mercury": "3.0.0-beta.346",
56
+ "@webex/internal-plugin-metrics": "3.0.0-beta.346",
57
+ "@webex/internal-plugin-support": "3.0.0-beta.346",
58
+ "@webex/internal-plugin-user": "3.0.0-beta.346",
59
+ "@webex/media-helpers": "3.0.0-beta.346",
60
+ "@webex/plugin-people": "3.0.0-beta.346",
61
+ "@webex/plugin-rooms": "3.0.0-beta.346",
62
+ "@webex/webex-core": "3.0.0-beta.346",
63
63
  "ampersand-collection": "^2.0.2",
64
64
  "bowser": "^2.11.0",
65
65
  "btoa": "^1.2.1",
@@ -4251,6 +4251,14 @@ export default class Meeting extends StatelessWebexPlugin {
4251
4251
  ) {
4252
4252
  const {mediaOptions, joinOptions} = options;
4253
4253
 
4254
+ if (!mediaOptions?.allowMediaInLobby) {
4255
+ return Promise.reject(
4256
+ new ParameterError('joinWithMedia() can only be used with allowMediaInLobby set to true')
4257
+ );
4258
+ }
4259
+
4260
+ LoggerProxy.logger.info('Meeting:index#joinWithMedia called');
4261
+
4254
4262
  return this.join(joinOptions)
4255
4263
  .then((joinResponse) =>
4256
4264
  this.addMedia(mediaOptions).then((mediaResponse) => ({
@@ -635,7 +635,14 @@ describe('plugin-meetings', () => {
635
635
  describe('rejection', () => {
636
636
  it('should error out and return a promise', async () => {
637
637
  meeting.join = sinon.stub().returns(Promise.reject());
638
- assert.isRejected(meeting.joinWithMedia({}));
638
+ assert.isRejected(meeting.joinWithMedia({mediaOptions: {allowMediaInLobby: true}}));
639
+ });
640
+
641
+ it('should fail if called with allowMediaInLobby:false', async () => {
642
+ meeting.join = sinon.stub().returns(Promise.resolve(test1));
643
+ meeting.addMedia = sinon.stub().returns(Promise.resolve(test4));
644
+
645
+ assert.isRejected(meeting.joinWithMedia({mediaOptions: {allowMediaInLobby: false}}));
639
646
  });
640
647
  });
641
648
  });