import React from 'react'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Button from '/imports/ui/components/button/component'; import { clearModal } from '/imports/ui/components/app/service'; import styles from '../styles.scss'; import DeviceSelector from '/imports/ui/components/audio/device-selector/component'; import AudioStreamVolume from '/imports/ui/components/audio/audio-stream-volume/component'; import EnterAudioContainer from '/imports/ui/components/enter-audio/container'; import AudioTestContainer from '/imports/ui/components/audio-test/container'; import cx from 'classnames'; class AudioSettings extends React.Component { constructor(props) { super(props); this.chooseAudio = this.chooseAudio.bind(this); this.handleInputChange = this.handleInputChange.bind(this); this.handleOutputChange = this.handleOutputChange.bind(this); this.handleClose = this.handleClose.bind(this); this.state = { inputDeviceId: undefined, }; } chooseAudio() { this.props.changeMenu(this.props.JOIN_AUDIO); } handleInputChange(deviceId) { console.log(`INPUT DEVICE CHANGED: ${deviceId}`); this.setState({ inputDeviceId: deviceId, }); } handleOutputChange(deviceId) { console.log(`OUTPUT DEVICE CHANGED: ${deviceId}`); } handleClose() { this.setState({ isOpen: false }); clearModal(); } render() { const { intl, } = this.props; return (
); } }; const intlMessages = defineMessages({ backLabel: { id: 'app.audio.backLabel', }, }); export default injectIntl(AudioSettings);