Merge pull request #17394 from schrd/fix-issue-16057

Fix: Workaround firefox' missing audio output selection
This commit is contained in:
Paulo Lanzarin 2023-04-11 09:04:23 -03:00 committed by GitHub
commit 67e4a9ebf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,13 +129,12 @@ class DeviceSelector extends Component {
} = this.props;
const { options } = this.state;
const { isSafari } = browserInfo;
let notFoundOption;
if (blocked) {
notFoundOption = <option value="finding">{intl.formatMessage(intlMessages.findingDevicesLabel)}</option>;
} else if (kind === 'audiooutput' && isSafari) {
} else if (kind === 'audiooutput' && !('setSinkId' in HTMLMediaElement.prototype)) {
const defaultOutputDeviceLabel = intl.formatMessage(intlMessages.defaultOutputDeviceLabel);
notFoundOption = <option value="not-found">{defaultOutputDeviceLabel}</option>;
} else {