diff --git a/bigbluebutton-html5/imports/ui/components/audio/audio-controls/component.jsx b/bigbluebutton-html5/imports/ui/components/audio/audio-controls/component.jsx
index 19503786ee..df076956d9 100755
--- a/bigbluebutton-html5/imports/ui/components/audio/audio-controls/component.jsx
+++ b/bigbluebutton-html5/imports/ui/components/audio/audio-controls/component.jsx
@@ -109,18 +109,14 @@ class AudioControls extends PureComponent {
inAudio,
} = this.props;
- const { isMobile } = deviceInfo;
-
let { enableDynamicAudioDeviceSelection } = Meteor.settings.public.app;
if (typeof enableDynamicAudioDeviceSelection === 'undefined') {
enableDynamicAudioDeviceSelection = true;
}
- const _enableDynamicDeviceSelection = enableDynamicAudioDeviceSelection && !isMobile;
-
if (inAudio) {
- return this.renderButtonsAndStreamSelector(_enableDynamicDeviceSelection);
+ return this.renderButtonsAndStreamSelector(enableDynamicAudioDeviceSelection);
}
return this.renderJoinButton();
diff --git a/bigbluebutton-html5/imports/ui/components/audio/audio-controls/input-stream-live-selector/component.jsx b/bigbluebutton-html5/imports/ui/components/audio/audio-controls/input-stream-live-selector/component.jsx
index a4db942577..1d2b1b05d5 100644
--- a/bigbluebutton-html5/imports/ui/components/audio/audio-controls/input-stream-live-selector/component.jsx
+++ b/bigbluebutton-html5/imports/ui/components/audio/audio-controls/input-stream-live-selector/component.jsx
@@ -77,6 +77,7 @@ const propTypes = {
disable: PropTypes.bool.isRequired,
talking: PropTypes.bool,
notify: PropTypes.func.isRequired,
+ isMobile: PropTypes.bool.isRequired,
};
const defaultProps = {
@@ -95,7 +96,7 @@ class InputStreamLiveSelector extends Component {
super(props);
this.updateDeviceList = this.updateDeviceList.bind(this);
this.renderDeviceList = this.renderDeviceList.bind(this);
- this.renderListenOnlyButton = this.renderListenOnlyButton.bind(this);
+ this.renderAudioButton = this.renderAudioButton.bind(this);
this.renderMuteToggleButton = this.renderMuteToggleButton.bind(this);
this.renderButtonsWithSelectorDevice = this.renderButtonsWithSelectorDevice.bind(this);
this.renderButtonsWithoutSelectorDevice = this.renderButtonsWithoutSelectorDevice.bind(this);
@@ -345,18 +346,23 @@ class InputStreamLiveSelector extends Component {
);
}
- renderListenOnlyButton() {
+ renderAudioButton() {
const {
handleLeaveAudio,
intl,
shortcuts,
isListenOnly,
+ _enableDynamicDeviceSelection,
+ isMobile,
} = this.props;
+ const actAsSelectorTrigger = _enableDynamicDeviceSelection && isMobile;
return (