Reply To: Automatically start recording at end of trial and have a submit button

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

#6679
Jeremy
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