My p5js application needs to load a folder with a lot of short mp3 files inside (around 300 files for a total size of 1 Mo).
When I was developing the application locally, everything was fine. But Today I would like to deploy it on the web. So when I run the app, I load all the sounds with Tone.js like this :
sound_dict = {}
for (var i = 0; i < number_of_files; i++) {
sound_dict[i] = file_path[i]
}
kit = new Tone.Players(sound_dict);
But I get the (429) Too Many Requests error because the app sends one request per file.
Isn't there a way to retrieve these files in a single request ? (maybe by creating an archive)
Thank you for your help
Aucun commentaire:
Enregistrer un commentaire