feat(HDAudio): Initial implementation.
This commit is contained in:
parent
c12c554138
commit
dcd073b407
|
@ -125,6 +125,9 @@ var config = {
|
||||||
// Enables support for opus-red (redundancy for Opus).
|
// Enables support for opus-red (redundancy for Opus).
|
||||||
// enableOpusRed: false,
|
// enableOpusRed: false,
|
||||||
|
|
||||||
|
// Enables HD audio quality (but also disables echo cancellation, noise suppression and AGC).
|
||||||
|
// enableHdAudio: false,
|
||||||
|
|
||||||
// Video
|
// Video
|
||||||
|
|
||||||
// Sets the preferred resolution (height) for local video. Defaults to 720.
|
// Sets the preferred resolution (height) for local video. Defaults to 720.
|
||||||
|
|
|
@ -104,6 +104,7 @@ export default [
|
||||||
'e2eping',
|
'e2eping',
|
||||||
'enableDisplayNameInStats',
|
'enableDisplayNameInStats',
|
||||||
'enableEmailInStats',
|
'enableEmailInStats',
|
||||||
|
'enableHdAudio',
|
||||||
'enableIceRestart',
|
'enableIceRestart',
|
||||||
'enableInsecureRoomNameWarning',
|
'enableInsecureRoomNameWarning',
|
||||||
'enableLayerSuspension',
|
'enableLayerSuspension',
|
||||||
|
|
|
@ -42,11 +42,25 @@ export function initLib() {
|
||||||
return (dispatch: Dispatch<any>, getState: Function): void => {
|
return (dispatch: Dispatch<any>, getState: Function): void => {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
const config = state['features/base/config'];
|
const config = state['features/base/config'];
|
||||||
|
const { enableHdAudio } = config;
|
||||||
|
|
||||||
if (!config) {
|
if (!config) {
|
||||||
throw new Error('Cannot init lib-jitsi-meet without 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 });
|
dispatch({ type: LIB_WILL_INIT });
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue