From b0188a71841c966122c3cce8c7023b7de8e32a82 Mon Sep 17 00:00:00 2001 From: plokta <7414587+plokta@users.noreply.github.com> Date: Sat, 11 Jul 2020 10:33:49 +0200 Subject: [PATCH] config: Add option to set preferred audio bitrate. (#7072) The maxaveragebitrate parameter to be used by Opus can be configured through the new opusMaxAvgBitrate config option. Values are restricted by Opus to integers between 6000 to 510000. Works for non-p2p only. move option to Audio section, add documentation Co-authored-by: plokta --- config.js | 5 +++++ react/features/base/config/configWhitelist.js | 1 + 2 files changed, 6 insertions(+) diff --git a/config.js b/config.js index c3b42b5b4..369b1ec4c 100644 --- a/config.js +++ b/config.js @@ -111,6 +111,11 @@ 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 + // opusMaxAvgBitrate: 20000, + // Video // Sets the preferred resolution (height) for local video. Defaults to 720. diff --git a/react/features/base/config/configWhitelist.js b/react/features/base/config/configWhitelist.js index 3b32a2965..12d19631b 100644 --- a/react/features/base/config/configWhitelist.js +++ b/react/features/base/config/configWhitelist.js @@ -125,6 +125,7 @@ export default [ 'minParticipants', 'nick', 'openBridgeChannel', + 'opusMaxAvgBitrate', 'p2p', 'pcStatsInterval', 'preferH264',