feat(HDAudio): Initial implementation.

This commit is contained in:
Mihai-Andrei Uscat 2021-03-10 11:05:09 +02:00 committed by Saúl Ibarra Corretgé
parent c12c554138
commit dcd073b407
3 changed files with 18 additions and 0 deletions

View File

@ -125,6 +125,9 @@ var config = {
// Enables support for opus-red (redundancy for Opus).
// enableOpusRed: false,
// Enables HD audio quality (but also disables echo cancellation, noise suppression and AGC).
// enableHdAudio: false,
// Video
// Sets the preferred resolution (height) for local video. Defaults to 720.

View File

@ -104,6 +104,7 @@ export default [
'e2eping',
'enableDisplayNameInStats',
'enableEmailInStats',
'enableHdAudio',
'enableIceRestart',
'enableInsecureRoomNameWarning',
'enableLayerSuspension',

View File

@ -42,11 +42,25 @@ export function initLib() {
return (dispatch: Dispatch<any>, getState: Function): void => {
const state = getState();
const config = state['features/base/config'];
const { enableHdAudio } = config;
if (!config) {
throw new Error('Cannot init lib-jitsi-meet without config');
}
if (enableHdAudio) {
Object.assign(config, {
...config,
channelCount: 2,
disableAP: true,
enableNoAudioDetection: false,
enableNoisyMicDetection: false,
enableTalkWhileMuted: false,
opusMaxAverageBitrate: 510000,
stereo: true
});
}
dispatch({ type: LIB_WILL_INIT });
try {