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
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()