Merge pull request #17394 from schrd/fix-issue-16057
Fix: Workaround firefox' missing audio output selection
This commit is contained in:
commit
67e4a9ebf3
@ -129,13 +129,12 @@ class DeviceSelector extends Component {
|
|||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
const { options } = this.state;
|
const { options } = this.state;
|
||||||
const { isSafari } = browserInfo;
|
|
||||||
|
|
||||||
let notFoundOption;
|
let notFoundOption;
|
||||||
|
|
||||||
if (blocked) {
|
if (blocked) {
|
||||||
notFoundOption = <option value="finding">{intl.formatMessage(intlMessages.findingDevicesLabel)}</option>;
|
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);
|
const defaultOutputDeviceLabel = intl.formatMessage(intlMessages.defaultOutputDeviceLabel);
|
||||||
notFoundOption = <option value="not-found">{defaultOutputDeviceLabel}</option>;
|
notFoundOption = <option value="not-found">{defaultOutputDeviceLabel}</option>;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user