kopia lustrzana https://github.com/backface/turtlestitch
fix the sound recorder issue
rodzic
b30d2a894d
commit
833d3b3aba
5
gui.js
5
gui.js
|
@ -9116,6 +9116,11 @@ SoundRecorderDialogMorph.prototype.buildProgressBar = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
SoundRecorderDialogMorph.prototype.record = function () {
|
SoundRecorderDialogMorph.prototype.record = function () {
|
||||||
|
if (this.mediaRecorder && this.mediaRecorder.state !== 'inactive') {
|
||||||
|
this.stop();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.mediaRecorder.start();
|
this.mediaRecorder.start();
|
||||||
this.recordButton.label.setColor(new Color(255, 0, 0));
|
this.recordButton.label.setColor(new Color(255, 0, 0));
|
||||||
this.playButton.label.setColor(new Color(0, 0, 0));
|
this.playButton.label.setColor(new Color(0, 0, 0));
|
||||||
|
|
Ładowanie…
Reference in New Issue