@webex/plugin-meetings 3.12.0-next.156 → 3.12.0-next.158
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/aiEnableRequest/index.js +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meeting/index.js +5 -1
- package/dist/meeting/index.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +32 -4
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/types/multistream/remoteMediaManager.d.ts +18 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +3 -3
- package/src/meeting/index.ts +9 -1
- package/src/multistream/remoteMediaManager.ts +23 -1
- package/test/unit/spec/meeting/index.js +35 -0
- package/test/unit/spec/multistream/remoteMediaManager.ts +46 -0
|
@@ -3681,6 +3681,41 @@ describe('plugin-meetings', () => {
|
|
|
3681
3681
|
assert.exists(meeting.addMedia);
|
|
3682
3682
|
});
|
|
3683
3683
|
|
|
3684
|
+
it('logs a compact remote media manager configuration', async () => {
|
|
3685
|
+
const loggerInfoStub = sinon.stub(LoggerProxy.logger, 'info');
|
|
3686
|
+
const remoteMediaManagerConfig = {
|
|
3687
|
+
audio: {
|
|
3688
|
+
numOfActiveSpeakerStreams: 3,
|
|
3689
|
+
numOfScreenShareStreams: 1,
|
|
3690
|
+
},
|
|
3691
|
+
video: {
|
|
3692
|
+
preferLiveVideo: true,
|
|
3693
|
+
initialLayoutId: 'initial',
|
|
3694
|
+
layouts: {
|
|
3695
|
+
initial: {activeSpeakerVideoPaneGroups: []},
|
|
3696
|
+
excluded: {activeSpeakerVideoPaneGroups: []},
|
|
3697
|
+
},
|
|
3698
|
+
},
|
|
3699
|
+
};
|
|
3700
|
+
|
|
3701
|
+
const error = await assert.isRejected(
|
|
3702
|
+
meeting.addMediaInternal(() => 'JOIN_MEETING_FINAL', false, undefined, undefined, {
|
|
3703
|
+
remoteMediaManagerConfig,
|
|
3704
|
+
})
|
|
3705
|
+
);
|
|
3706
|
+
|
|
3707
|
+
assert.instanceOf(error, MeetingNotActiveError);
|
|
3708
|
+
assert.calledOnceWithExactly(
|
|
3709
|
+
loggerInfoStub,
|
|
3710
|
+
`Meeting:index#addMedia --> called with: options=${JSON.stringify({
|
|
3711
|
+
remoteMediaManagerConfig:
|
|
3712
|
+
RemoteMediaManagerModule.getRemoteMediaManagerConfigForLogging(
|
|
3713
|
+
remoteMediaManagerConfig
|
|
3714
|
+
),
|
|
3715
|
+
})}, turnServerInfo=undefined, forceTurnDiscovery=false, iceTransportPolicy=undefined`
|
|
3716
|
+
);
|
|
3717
|
+
});
|
|
3718
|
+
|
|
3684
3719
|
it('should reject promise if meeting is not active and the meeting in lobby is not enabled', async () => {
|
|
3685
3720
|
const result = await assert.isRejected(meeting.addMedia({allowMediaInLobby: false}));
|
|
3686
3721
|
|
|
@@ -6,6 +6,7 @@ import {MediaType} from '@webex/internal-media-core';
|
|
|
6
6
|
import {
|
|
7
7
|
Configuration,
|
|
8
8
|
Event,
|
|
9
|
+
getRemoteMediaManagerConfigForLogging,
|
|
9
10
|
RemoteMediaManager,
|
|
10
11
|
VideoLayoutChangedEventData,
|
|
11
12
|
} from '@webex/plugin-meetings/src/multistream/remoteMediaManager';
|
|
@@ -120,6 +121,34 @@ const DefaultTestConfiguration: Configuration = {
|
|
|
120
121
|
},
|
|
121
122
|
};
|
|
122
123
|
|
|
124
|
+
describe('getRemoteMediaManagerConfigForLogging', () => {
|
|
125
|
+
it('returns undefined when no configuration is provided', () => {
|
|
126
|
+
assert.isUndefined(getRemoteMediaManagerConfigForLogging());
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
it('replaces layouts with their count and initial layout without mutating the configuration', () => {
|
|
130
|
+
const config = cloneDeep(DefaultTestConfiguration);
|
|
131
|
+
const originalConfig = cloneDeep(config);
|
|
132
|
+
|
|
133
|
+
const result = getRemoteMediaManagerConfigForLogging(config);
|
|
134
|
+
|
|
135
|
+
assert.deepEqual(result, {
|
|
136
|
+
...config,
|
|
137
|
+
video: {
|
|
138
|
+
...config.video,
|
|
139
|
+
layouts: {
|
|
140
|
+
count: Object.keys(config.video.layouts).length,
|
|
141
|
+
initial: {
|
|
142
|
+
id: config.video.initialLayoutId,
|
|
143
|
+
definition: config.video.layouts[config.video.initialLayoutId],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
});
|
|
148
|
+
assert.deepEqual(config, originalConfig);
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
|
|
123
152
|
describe('RemoteMediaManager', () => {
|
|
124
153
|
let remoteMediaManager;
|
|
125
154
|
let fakeReceiveSlotManager;
|
|
@@ -663,6 +692,23 @@ describe('RemoteMediaManager', () => {
|
|
|
663
692
|
});
|
|
664
693
|
|
|
665
694
|
describe('constructor', () => {
|
|
695
|
+
it('logs the compact remote media manager configuration', () => {
|
|
696
|
+
logger.log.resetHistory();
|
|
697
|
+
|
|
698
|
+
new RemoteMediaManager(
|
|
699
|
+
fakeReceiveSlotManager,
|
|
700
|
+
fakeMediaRequestManagers,
|
|
701
|
+
DefaultTestConfiguration
|
|
702
|
+
);
|
|
703
|
+
|
|
704
|
+
assert.calledOnceWithExactly(
|
|
705
|
+
logger.log,
|
|
706
|
+
`RemoteMediaManager#constructor --> RemoteMediaManager created with config: ${JSON.stringify(
|
|
707
|
+
getRemoteMediaManagerConfigForLogging(DefaultTestConfiguration)
|
|
708
|
+
)}`
|
|
709
|
+
);
|
|
710
|
+
});
|
|
711
|
+
|
|
666
712
|
it('throws if the initial layout in the config is invalid', () => {
|
|
667
713
|
const config = cloneDeep(DefaultTestConfiguration);
|
|
668
714
|
|