@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.
- package/dist/meeting/index.js +0 -21
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/muteState.js +13 -0
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/roap/index.js +16 -10
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/turnDiscovery.js +6 -4
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/package.json +18 -18
- package/src/meeting/index.ts +0 -26
- package/src/meeting/muteState.ts +11 -0
- package/src/roap/index.ts +8 -8
- package/src/roap/turnDiscovery.ts +4 -4
- package/test/unit/spec/meeting/muteState.js +11 -0
- package/test/unit/spec/roap/index.ts +8 -4
- package/test/unit/spec/roap/turnDiscovery.ts +8 -4
|
@@ -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
|
-
|
|
51
|
-
|
|
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.
|
|
103
|
-
videoMuted: meeting.
|
|
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
|
-
|
|
44
|
-
|
|
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.
|
|
76
|
-
videoMuted: testMeeting.
|
|
79
|
+
audioMuted: testMeeting.audio?.isLocallyMuted(),
|
|
80
|
+
videoMuted: testMeeting.video?.isLocallyMuted(),
|
|
77
81
|
meetingId: testMeeting.id,
|
|
78
82
|
});
|
|
79
83
|
|