diff --git a/app/src/components/Settings/MediaSettings.js b/app/src/components/Settings/MediaSettings.js index ae73613..a4e057f 100644 --- a/app/src/components/Settings/MediaSettings.js +++ b/app/src/components/Settings/MediaSettings.js @@ -95,6 +95,9 @@ const MediaSettings = ({ { const intl = useIntl(); + const [ audioSettingsOpen, setAudioSettingsOpen ] = React.useState(false); + const [ videoSettingsOpen, setVideoSettingsOpen ] = React.useState(false); + const resolutions = [ { value : 'low', label : intl.formatMessage({ @@ -152,13 +155,6 @@ const MediaSettings = ({ else audioOutputDevices = []; - const [ open, setOpen ] = React.useState(true); - - const advancedAudioSettings = () => - { - setOpen(!open); - }; - return (
@@ -205,118 +201,130 @@ const MediaSettings = ({ } - - - { - if (event.target.value) - roomClient.updateWebcam({ newFrameRate: event.target.value }); - }} - name='Frame rate' - autoWidth - className={classes.selectEmpty} - > - { [ 1, 5, 10, 15, 20, 25, 30 ].map((frameRate) => - { - return ( - - {frameRate} - - ); - })} - - - - - - - - - - - - - - - - - + {videoSettingsOpen ? : } + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -357,10 +365,8 @@ const MediaSettings = ({ } -
- { 'audioOutputSupportedBrowsers' in window.config && - window.config.audioOutputSupportedBrowsers.includes(me.browser.name) && -
+ { 'audioOutputSupportedBrowsers' in window.config && + window.config.audioOutputSupportedBrowsers.includes(me.browser.name) &&