PennController for IBEX › Forums › Support › How to set mediaRecorder FileName › Reply To: How to set mediaRecorder FileName
You cannot name the ZIP files yourself, and I don’t think I’ll give the option to do so in the next releases of PennController. The filenames need to be unique so the automatic uploads don’t overwrite preexisting files on the server. The current method generates a random filename which is extremely likely to be unique. Also, you have the option to asynchronously upload recordings, which can result in the creation of an indefinite number of zip files whose sample repartition is also non-deterministic.
The names of the ZIP files are reported in the results file, so you can associate them with their corresponding submission.
You can name the samples within the ZIP files though by giving your MediaRecorder element a name, e.g. newMediaRecorder("sample", "audio") will generate a file named sample.ogg (or sample.webm depending on the participant’s browser).