diff --git a/app/public/config/config.example.js b/app/public/config/config.example.js index 9e16360..371d399 100644 --- a/app/public/config/config.example.js +++ b/app/public/config/config.example.js @@ -1,9 +1,9 @@ // eslint-disable-next-line var config = { - loginEnabled : false, - developmentPort : 3443, - productionPort : 443, + loginEnabled : false, + developmentPort : 3443, + productionPort : 443, /** * If defaultResolution is set, it will override user settings when joining: @@ -25,6 +25,7 @@ var config = { scaleResolutionDownBy: 2 }, { scaleResolutionDownBy: 1 } ], + /** * White listing browsers that support audio output device selection. * It is not yet fully implemented in Firefox. @@ -43,6 +44,10 @@ var config = }, lastN : 4, mobileLastN : 1, + // Highest number of speakers user can select + maxLastN : 5, + // If truthy, users can NOT change number of speakers visible + lockLastN : false, background : 'images/background.jpg', // Add file and uncomment for adding logo to appbar // logo : 'images/logo.svg', diff --git a/app/src/components/Settings/Settings.js b/app/src/components/Settings/Settings.js index 5a4a09a..af46eb2 100644 --- a/app/src/components/Settings/Settings.js +++ b/app/src/components/Settings/Settings.js @@ -355,36 +355,41 @@ const Settings = ({ /> { settings.advancedMode && -
- - - - - - -
+ { window.config && !window.config.lockLastN && +
+ + + + + + +
+ } }