fixed shit
This commit is contained in:
parent
596e7d1c3b
commit
8a441f6633
1 changed files with 2 additions and 1 deletions
|
@ -62,12 +62,13 @@ function startOrResumeRec() {
|
|||
timer.resume();
|
||||
}
|
||||
function restartRec() {
|
||||
if (_mediaRecorder.state !== 'recording') _mediaRecorder.pause();
|
||||
if (_mediaRecorder.state !== 'inactive') _mediaRecorder.stop();
|
||||
|
||||
_mediaRecorder = null;
|
||||
timer = new Timer();
|
||||
init()
|
||||
.then(startOrResumeRec());
|
||||
.then(startOrResumeRec);
|
||||
}
|
||||
|
||||
// TODO: Handle turning off the recorder to remove the browser indicator
|
||||
|
|
Loading…
Reference in a new issue