How to set mediaRecorder FileName

PennController for IBEX Forums Support How to set mediaRecorder FileName

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5854
    xmayoral
    Participant

    Hi,
    is it possible to set the filename of the mediaRecorder?
    I our server we have the video-recorded files with names like: “732a1115-9414-87de-cf19-b75fee084f1e.zip”
    Or, maybe, we have an error in our server set-up

    Than’s,
    Xavi

    #5857
    Jeremy
    Keymaster

    Hi Xavi,

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

    Jeremy

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.