PennController for IBEX › Forums › Support › Automatically start recording at end of trial and have a submit button › Reply To: Automatically start recording at end of trial and have a submit button
March 1, 2021 at 1:30 pm
#6679
![](https://www.pcibex.net/wp-content/uploads/2018/10/IMG_8365-e1540835663655-150x150.jpg)
Keymaster
Hi,
The code you posted will not show any button, because there is no print command in the script after clear has been executed. Why don’t you remove the last wait command (on the MediaRecorder element) and create a “Save recording” button?
newMediaRecorder("recorder", "audio") .log() .once() .record() // .wait() , newButton("Save recording") .callback(getMediaRecorder("recorder").stop()) .print() .wait()
Jeremy