Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Implement review changes 3
Mihai-Andrei Uscat996c9fb06474
diff --git a/config.js b/config.jsindex e1f8faaee0..076bf07ae4 100644--- a/config.js+++ b/config.js@@ -117,20 +117,15 @@ var config = {// participants and to enable it back a reload is needed.// startSilent: false- // Sets the preferred target bitrate for the Opus audio codec by setting its- // 'maxaveragebitrate' parameter. Currently not available in p2p mode.- // Valid values are in the range 6000 to 510000- // opusMaxAverageBitrate: 20000,-// Enables support for opus-red (redundancy for Opus).// enableOpusRed: false,- // Specify audio quality stereo and opusMaxAverageBitrate values, both necessary in order to enable HD audio.+ // Specify audio quality stereo and opusMaxAverageBitrate values in order to enable HD audio.// Beware, by doing so, you are disabling echo cancellation, noise suppression and AGC.// audioQuality: {// stereo: false,// opusMaxAverageBitrate: null // Value to fit the 6000 to 510000 range.- // }+ // },// Videodiff --git a/react/features/base/config/reducer.js b/react/features/base/config/reducer.jsindex 75fda94c2d..ac002a0ded 100644--- a/react/features/base/config/reducer.js+++ b/react/features/base/config/reducer.js@@ -142,19 +142,16 @@ function _setConfig(state, { config }) {// eslint-disable-next-line no-param-reassignconfig = _translateLegacyConfig(config);- const hdAudioOptions = {};- const { audioQuality } = config;- if (audioQuality?.stereo && audioQuality?.opusMaxAverageBitrate) {- const { opusMaxAverageBitrate, stereo } = audioQuality;+ const { audioQuality } = config;+ const hdAudioOptions = {};+ if (audioQuality?.stereo) {Object.assign(hdAudioOptions, {disableAP: true,enableNoAudioDetection: false,enableNoisyMicDetection: false,- enableTalkWhileMuted: false,- opusMaxAverageBitrate,- stereo+ enableTalkWhileMuted: false});}@@ -231,6 +228,13 @@ function _translateLegacyConfig(oldValue: Object) {newValue.toolbarButtons = interfaceConfig.TOOLBAR_BUTTONS;}+ if (oldValue.stereo || oldValue.opusMaxAverageBitrate) {+ newValue.audioQuality = {+ opusMaxAverageBitrate: oldValue.audioQuality?.opusMaxAverageBitrate ?? oldValue.opusMaxAverageBitrate,+ stereo: oldValue.audioQuality?.stereo ?? oldValue.stereo+ };+ }+return newValue;}