@webex/plugin-meetings 2.38.0 → 2.38.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.
@@ -161,6 +161,17 @@ describe('plugin-meetings', () => {
161
161
  assert.isFalse(audio.isSelf());
162
162
  });
163
163
 
164
+ describe('#isLocallyMuted()', () => {
165
+ it('does not consider remote mute status for audio', async () => {
166
+ // simulate being already remote muted
167
+ meeting.remoteMuted = true;
168
+ // create a new MuteState intance
169
+ audio = createMuteState(AUDIO, meeting, {sendAudio: true});
170
+
171
+ assert.isFalse(audio.isLocallyMuted());
172
+ });
173
+ });
174
+
164
175
  describe('#handleClientRequest', () => {
165
176
  it('disables/enables the local audio track when audio is muted/unmuted', async () => {
166
177
  // mute
@@ -47,8 +47,12 @@ describe('Roap', () => {
47
47
  correlationId: 'correlation id',
48
48
  selfUrl: 'self url',
49
49
  mediaId: 'media id',
50
- isAudioMuted: () => true,
51
- isVideoMuted: () => false,
50
+ audio:{
51
+ isLocallyMuted: () => true,
52
+ },
53
+ video:{
54
+ isLocallyMuted: () => false,
55
+ },
52
56
  setRoapSeq: sinon.stub(),
53
57
  config: {experimental: {enableTurnDiscovery: false}},
54
58
  };
@@ -99,8 +103,8 @@ describe('Roap', () => {
99
103
  correlationId: meeting.correlationId,
100
104
  locusSelfUrl: meeting.selfUrl,
101
105
  mediaId: expectEmptyMediaId ? '' : meeting.mediaId,
102
- audioMuted: meeting.isAudioMuted(),
103
- videoMuted: meeting.isVideoMuted(),
106
+ audioMuted: meeting.audio?.isLocallyMuted(),
107
+ videoMuted: meeting.video?.isLocallyMuted(),
104
108
  meetingId: meeting.id,
105
109
  });
106
110
 
@@ -40,8 +40,12 @@ describe('TurnDiscovery', () => {
40
40
  mediaId: 'fake media id',
41
41
  locusUrl: `https://locus-a.wbx2.com/locus/api/v1/loci/${FAKE_LOCUS_ID}`,
42
42
  roapSeq: -1,
43
- isAudioMuted: () => true,
44
- isVideoMuted: () => false,
43
+ audio:{
44
+ isLocallyMuted: () => true,
45
+ },
46
+ video:{
47
+ isLocallyMuted: () => false,
48
+ },
45
49
  setRoapSeq: sinon.fake((newSeq) => {
46
50
  testMeeting.roapSeq = newSeq;
47
51
  }),
@@ -72,8 +76,8 @@ describe('TurnDiscovery', () => {
72
76
  correlationId: testMeeting.correlationId,
73
77
  locusSelfUrl: testMeeting.selfUrl,
74
78
  mediaId: expectedMediaId,
75
- audioMuted: testMeeting.isAudioMuted(),
76
- videoMuted: testMeeting.isVideoMuted(),
79
+ audioMuted: testMeeting.audio?.isLocallyMuted(),
80
+ videoMuted: testMeeting.video?.isLocallyMuted(),
77
81
  meetingId: testMeeting.id,
78
82
  });
79
83