@webex/plugin-meetings 3.8.0-next.16 → 3.8.0-next.17

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.
@@ -458,7 +458,7 @@ var Webinar = _webexCore.WebexPlugin.extend({
458
458
  }, _callee7);
459
459
  }))();
460
460
  },
461
- version: "3.8.0-next.16"
461
+ version: "3.8.0-next.17"
462
462
  });
463
463
  var _default = exports.default = Webinar;
464
464
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -43,7 +43,7 @@
43
43
  "@webex/eslint-config-legacy": "0.0.0",
44
44
  "@webex/jest-config-legacy": "0.0.0",
45
45
  "@webex/legacy-tools": "0.0.0",
46
- "@webex/plugin-meetings": "3.8.0-next.16",
46
+ "@webex/plugin-meetings": "3.8.0-next.17",
47
47
  "@webex/plugin-rooms": "3.8.0-next.9",
48
48
  "@webex/test-helper-chai": "3.8.0-next.8",
49
49
  "@webex/test-helper-mocha": "3.8.0-next.8",
@@ -71,7 +71,7 @@
71
71
  "@webex/internal-plugin-metrics": "3.8.0-next.8",
72
72
  "@webex/internal-plugin-support": "3.8.0-next.9",
73
73
  "@webex/internal-plugin-user": "3.8.0-next.8",
74
- "@webex/internal-plugin-voicea": "3.8.0-next.16",
74
+ "@webex/internal-plugin-voicea": "3.8.0-next.17",
75
75
  "@webex/media-helpers": "3.8.0-next.8",
76
76
  "@webex/plugin-people": "3.8.0-next.9",
77
77
  "@webex/plugin-rooms": "3.8.0-next.9",
@@ -92,5 +92,5 @@
92
92
  "//": [
93
93
  "TODO: upgrade jwt-decode when moving to node 18"
94
94
  ],
95
- "version": "3.8.0-next.16"
95
+ "version": "3.8.0-next.17"
96
96
  }
@@ -8726,6 +8726,9 @@ export default class Meeting extends StatelessWebexPlugin {
8726
8726
  LoggerProxy.logger.log(
8727
8727
  `Meeting:index#handleShareVideoStreamMuteStateChange --> Share video stream mute state changed to muted ${muted}`
8728
8728
  );
8729
+
8730
+ const shareVideoStreamSettings = this.mediaProperties?.shareVideoStream?.getSettings();
8731
+
8729
8732
  Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.MEETING_SHARE_VIDEO_MUTE_STATE_CHANGE, {
8730
8733
  correlationId: this.correlationId,
8731
8734
  muted,
@@ -8734,8 +8737,9 @@ export default class Meeting extends StatelessWebexPlugin {
8734
8737
  // SDK to TypeScript 5, which may affect other packages, use bracket notation for now, since
8735
8738
  // all we're doing here is adding metrics.
8736
8739
  // eslint-disable-next-line dot-notation
8737
- displaySurface: this.mediaProperties?.shareVideoStream?.getSettings()['displaySurface'],
8740
+ displaySurface: shareVideoStreamSettings?.['displaySurface'],
8738
8741
  isMultistream: this.isMultistream,
8742
+ frameRate: shareVideoStreamSettings?.frameRate,
8739
8743
  });
8740
8744
  };
8741
8745
 
@@ -12682,6 +12682,31 @@ describe('plugin-meetings', () => {
12682
12682
  });
12683
12683
  });
12684
12684
  });
12685
+
12686
+ describe('handleShareVideoStreamMuteStateChange', () => {
12687
+ it('should emit MEETING_SHARE_VIDEO_MUTE_STATE_CHANGE event with correct fields', () => {
12688
+ meeting.isMultistream = true;
12689
+ meeting.statsAnalyzer = {shareVideoEncoderImplementation: 'OpenH264'};
12690
+ meeting.mediaProperties.shareVideoStream = {
12691
+ getSettings: sinon.stub().returns({displaySurface: 'monitor', frameRate: 30}),
12692
+ };
12693
+
12694
+ meeting.handleShareVideoStreamMuteStateChange(true);
12695
+
12696
+ assert.calledOnceWithExactly(
12697
+ Metrics.sendBehavioralMetric,
12698
+ BEHAVIORAL_METRICS.MEETING_SHARE_VIDEO_MUTE_STATE_CHANGE,
12699
+ {
12700
+ correlationId: meeting.correlationId,
12701
+ muted: true,
12702
+ encoderImplementation: 'OpenH264',
12703
+ displaySurface: 'monitor',
12704
+ isMultistream: true,
12705
+ frameRate: 30,
12706
+ }
12707
+ );
12708
+ });
12709
+ });
12685
12710
  });
12686
12711
 
12687
12712
  describe('#startKeepAlive', () => {