PennController for IBEX › Forums › Support › Storing trial order information in audio file name › Reply To: Storing trial order information in audio file name
June 8, 2023 at 10:52 am
#10672
Jeremy
Keymaster
Hello,
Unfortunately, since elements are created before the running order is determined, naming the audio elements after the order in which the trials are run would be challenging. You could always try uploading an edited version of PennController_media.js to your project, in which you replace let fileName = PennEngine.utils.guidGenerator()+'.zip';
with something like let fileName = PennEngine.utils.guidGenerator()+'-'+PennEngine.controllers.running.id+'.zip';
to overwrite the MediaRecorder element
Jeremy