Reply To: zipped audio files

PennController for IBEX Forums Support zipped audio files Reply To: zipped audio files

#2981
roberto
Guest

Hi,

my code makes use of both PennController.PreloadZip() and PennController.Template(). Basically, what I want PennController to do is, preload the zip from a folder in my server (where there is also the system file .htaccess as explained in the tutorial) and play the files in the zip by referring to the row of my csv file (uploaded in the chunks_includes directory. Here is an excerpt of my code:


PennController.Sequence( "intro", "instructions", shuffle(randomize("exp"), startsWith("filler_question")), "exit", "send" );
PennController.ResetPrefix(null);
PennController.PreloadZip("https://sprouse.uconn.edu/downloads/syllabicity/mixed.zip");
PennController.CheckPreloaded();

// FURTHER PROPRIETIES OF THE HTML PAGES

[...].

// PENNCONTROLLER TEMPLATE

PennController.Template(
    row => PennController("exp",
               newText("intro", "Press PLAY to listen to the audio. You can listen to it only once.")
                          .settings.cssContainer("margin-bottom", "10px")
                          .settings.center()
                          .print()
    ,
    newAudio("sound", row.Item)
          .settings.cssContainer("margin-bottom","20px")
          .settings.center()
          .print()
          //.wait("first")
    ,
    getAudio("sound")
         .settings.disable()
     ...
    )
  )// Call .log 
      .log("sound", row.Item)
      .log("Prime", row.Prime)
      .log("PrimeCompressType", row.PrimeCompressType)
      .log("PrimeCompressValue", row.PrimeCompressValue)
      .log("PrimeOnset", row.PrimeOnset)
      .log("BwmOnset", row.BwmOnset)
      .log("condition", row.condition)
);

This does not seem to work (the audio files won’t play). Any idea of why it is so?

thank you in advance!
-roberto