fix the sound recorder issue

upd4.2
Rui Zhi 2018-03-11 14:12:25 -04:00
rodzic b30d2a894d
commit 833d3b3aba
1 zmienionych plików z 5 dodań i 0 usunięć

5
gui.js
Wyświetl plik

@ -9116,6 +9116,11 @@ SoundRecorderDialogMorph.prototype.buildProgressBar = function () {
};
SoundRecorderDialogMorph.prototype.record = function () {
if (this.mediaRecorder && this.mediaRecorder.state !== 'inactive') {
this.stop();
return;
}
this.mediaRecorder.start();
this.recordButton.label.setColor(new Color(255, 0, 0));
this.playButton.label.setColor(new Color(0, 0, 0));