2016-11-16 05:00:28 +08:00
|
|
|
import React from 'react';
|
|
|
|
import Button from '/imports/ui/components/button/component';
|
|
|
|
import { clearModal } from '/imports/ui/components/app/service';
|
|
|
|
import styles from '../styles.scss';
|
|
|
|
|
2016-12-01 11:37:52 +08:00
|
|
|
import MicSource from '/imports/ui/components/mic-source/component';
|
|
|
|
import SpeakerSource from '/imports/ui/components/speaker-source/component';
|
2016-12-06 09:37:46 +08:00
|
|
|
import EnterAudioContainer from '/imports/ui/components/enter-audio/container';
|
2016-12-01 23:32:22 +08:00
|
|
|
import StreamVolume from '/imports/ui/components/stream-volume/component';
|
2016-12-06 09:37:46 +08:00
|
|
|
import AudioTestContainer from '/imports/ui/components/audio-test/container';
|
2016-12-01 11:37:52 +08:00
|
|
|
|
2016-11-16 05:00:28 +08:00
|
|
|
export default class AudioSettings extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
|
|
|
|
this.chooseAudio = this.chooseAudio.bind(this);
|
2016-11-22 05:06:19 +08:00
|
|
|
}
|
|
|
|
|
2016-11-16 05:00:28 +08:00
|
|
|
chooseAudio() {
|
|
|
|
this.props.changeMenu(this.props.JOIN_AUDIO);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div className={styles.center}>
|
|
|
|
<Button className={styles.backBtn}
|
|
|
|
label={'Back'}
|
|
|
|
icon={'left-arrow'}
|
|
|
|
size={'md'}
|
|
|
|
color={'primary'}
|
|
|
|
ghost={true}
|
|
|
|
onClick={this.chooseAudio}
|
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
Choose your audio settings
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-12-06 00:21:55 +08:00
|
|
|
<div className={styles.containerLeftHalfContent}>
|
2016-12-01 11:37:52 +08:00
|
|
|
<MicSource />
|
2016-12-01 23:32:22 +08:00
|
|
|
<StreamVolume />
|
2016-12-01 11:37:52 +08:00
|
|
|
<SpeakerSource />
|
2016-12-06 09:37:46 +08:00
|
|
|
<AudioTestContainer />
|
2016-11-16 05:00:28 +08:00
|
|
|
</div>
|
2016-12-06 00:21:55 +08:00
|
|
|
<div className={styles.containerRightHalfContent}>
|
2016-12-06 09:37:46 +08:00
|
|
|
<EnterAudioContainer isFullAudio={true}/>
|
2016-11-16 05:00:28 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|