fixed shit

This commit is contained in:
C0ffeeCode 2022-01-06 12:29:35 +01:00
parent 596e7d1c3b
commit 8a441f6633

View file

@ -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