@webex/plugin-meetings 2.24.1 → 2.25.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webex/plugin-meetings",
3
- "version": "2.24.1",
3
+ "version": "2.25.0",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -24,15 +24,15 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@babel/runtime-corejs2": "^7.14.8",
27
- "@webex/webex-core": "2.24.1",
28
- "@webex/internal-plugin-mercury": "2.24.1",
29
- "@webex/internal-plugin-conversation": "2.24.1",
27
+ "@webex/webex-core": "2.25.0",
28
+ "@webex/internal-plugin-mercury": "2.25.0",
29
+ "@webex/internal-plugin-conversation": "2.25.0",
30
30
  "webrtc-adapter": "^7.7.0",
31
31
  "lodash": "^4.17.21",
32
32
  "uuid": "^3.3.2",
33
33
  "global": "^4.4.0",
34
34
  "ip-anonymize": "^0.1.0",
35
- "@webex/common": "2.24.1",
35
+ "@webex/common": "2.25.0",
36
36
  "bowser": "^2.11.0",
37
37
  "sdp-transform": "^2.12.0",
38
38
  "btoa": "^1.2.1",
@@ -5156,7 +5156,7 @@ export default class Meeting extends StatelessWebexPlugin {
5156
5156
 
5157
5157
  /**
5158
5158
  * Sends request to change layout type for the current meeting for the specific participant/device only
5159
- * @param {String} layoutType a layout type that should be available in meeting constants {@link #layout_types}
5159
+ * @param {String} [layoutType] a layout type that should be available in meeting constants {@link #layout_types}
5160
5160
  * @param {Object} renderInfo preferred dimensions for the remote main and content streams (server can ignore it)
5161
5161
  * @param {Object} renderInfo.main preferred dimensions for the remote main video stream
5162
5162
  * @param {Number} renderInfo.main.width preferred width of main video stream
@@ -5179,12 +5179,13 @@ export default class Meeting extends StatelessWebexPlugin {
5179
5179
  return this.rejectWithErrorLog('Meeting:index#changeVideoLayout --> cannot change video layout, you are not recieving any video/share stream');
5180
5180
  }
5181
5181
 
5182
- if (LAYOUT_TYPES.includes(layoutType)) {
5182
+ if (layoutType) {
5183
+ if (!LAYOUT_TYPES.includes(layoutType)) {
5184
+ this.rejectWithErrorLog('Meeting:index#changeVideoLayout --> cannot change video layout, invalid layoutType recieved.');
5185
+ }
5186
+
5183
5187
  layoutInfo.layoutType = layoutType;
5184
5188
  }
5185
- else {
5186
- return this.rejectWithErrorLog('Meeting:index#changeVideoLayout --> cannot change video layout, invalid layoutType recieved.');
5187
- }
5188
5189
 
5189
5190
  if (main) {
5190
5191
  const mainWidth = Math.round(main.width);
@@ -1948,6 +1948,18 @@ describe('plugin-meetings', () => {
1948
1948
  assert.isRejected(meeting.changeVideoLayout(layoutType));
1949
1949
  });
1950
1950
 
1951
+ it('should send no layoutType when layoutType is not provided', async () => {
1952
+ await meeting.changeVideoLayout(undefined, {main: {width: 100, height: 200}});
1953
+
1954
+ assert.calledWith(meeting.meetingRequest.changeVideoLayoutDebounced, {
1955
+ locusUrl: meeting.locusInfo.self.url,
1956
+ deviceUrl: meeting.deviceUrl,
1957
+ layoutType: undefined,
1958
+ main: {width: 100, height: 200},
1959
+ content: undefined
1960
+ });
1961
+ });
1962
+
1951
1963
  it('throws if trying to send renderInfo for content when not receiving content', async () => {
1952
1964
  assert.isRejected(meeting.changeVideoLayout(layoutTypeSingle, {content: {width: 1280, height: 720}}));
1953
1965
  });