Reply To: recording audio production

PennController for IBEX Forums Support recording audio production Reply To: recording audio production

#8235
Jeremy
Keymaster

Hi,

You cannot do that, because there is one recording per MediaRecorder element, and elements are created before the sequence of trials is run, they cannot be created on the fly

My suggestion is you give unique labels to your recording trials and use jump to run them again if needed, eg:

Template( row => 
  newTrial( "recorder-"+row.item ,
    newMediaRecorder("mediarecorder-"+row.item, "audio").print().wait().log()
    ,
    // Jump to this trial (= recorder-ITEM#)
    newButton("Again").print().callback( jump("recorder-"+row.item) , getButton("Next").click() )
    ,
    newButton("Next").print().wait()
  )
  .log("item#", row.item)
)

Jeremy