kopia lustrzana https://github.com/backface/turtlestitch
commit
83c54ca207
5
gui.js
5
gui.js
|
@ -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));
|
||||
|
|
Ładowanie…
Reference in New Issue