File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -405,11 +405,7 @@ export default {
405
405
isRecording: false ,
406
406
bitRate: 128 ,
407
407
sampleRate: 44100 ,
408
- format: ' mp3' ,
409
- micFailed: null ,
410
- beforeRecording: null ,
411
- pauseRecording: null ,
412
- afterRecording: null
408
+ format: ' mp3'
413
409
}
414
410
},
415
411
@@ -844,15 +840,19 @@ export default {
844
840
this .isRecording = false
845
841
846
842
return new Recorder ({
847
- beforeRecording: this . beforeRecording ,
848
- afterRecording: this . afterRecording ,
849
- pauseRecording: this . pauseRecording ,
843
+ beforeRecording: null ,
844
+ afterRecording: null ,
845
+ pauseRecording: null ,
850
846
micFailed: this .micFailed ,
851
847
bitRate: this .bitRate ,
852
848
sampleRate: this .sampleRate ,
853
849
format: this .format
854
850
})
855
851
},
852
+ micFailed () {
853
+ this .isRecording = false
854
+ this .recorder = this .initRecorder ()
855
+ },
856
856
toggleRecorder (recording ) {
857
857
this .isRecording = recording
858
858
You can’t perform that action at this time.
0 commit comments