Commit 518f7353 authored by Michael Henretty's avatar Michael Henretty

change recording display immediately after hitting record button, since the...

change recording display immediately after hitting record button, since the audio callback is slow in firefox
parent 1c830f98
......@@ -159,15 +159,14 @@ export default class RecordPage extends Component<RecordProps, RecordState> {
}
startRecording() {
this.audio.start().then(() => {
this.setState({
recording: true,
// TODO: reanble display of recording time at some point.
// recordingStartTime: this.audio.audioContext.currentTime
});
this.props.onRecord && this.props.onRecord();
this.setState({
recording: true,
// TODO: reanble display of recording time at some point.
// recordingStartTime: this.audio.audioContext.currentTime
});
this.props.onRecord && this.props.onRecord();
this.audio.start();
}
stopRecording() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment