fix(device-selection) Do not create preview when mic selection is disabled.
This fixes an issue on mobile Safari when audio is lost after the user opens the device selection menu.
This commit is contained in:
parent
e278703c58
commit
58d98ad7d3
|
@ -258,6 +258,12 @@ class DeviceSelection extends AbstractDialogTab<Props, State> {
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
_createAudioInputTrack(deviceId) {
|
_createAudioInputTrack(deviceId) {
|
||||||
|
const { hideAudioInputPreview } = this.props;
|
||||||
|
|
||||||
|
if (hideAudioInputPreview) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
return this._disposeAudioInputPreview()
|
return this._disposeAudioInputPreview()
|
||||||
.then(() => createLocalTrack('audio', deviceId, 5000))
|
.then(() => createLocalTrack('audio', deviceId, 5000))
|
||||||
.then(jitsiLocalTrack => {
|
.then(jitsiLocalTrack => {
|
||||||
|
|
Loading…
Reference in New Issue