I have a ton of audio files to download, and downloading them triggers a lot of calls to the server, blocking calls to the services too: is it possible to compress all these files in a single zip and then use them as if I had single files (with an auto-decompression process), available through the Assets library as before?
I can also simply pack the files without compression (mp3 and ogg size hardly goes down), so I can also evaluate alternatives, what I need is to download a single file.
Maybe I could use SWF (right?), but I’d like to avoid that format as much as possible, because one day the servers could block that file format, who knows?
EDIT: I installed the ZIP library and managed to load and extract the bytearray, now I need to convert it to Sound instances:
I tried the newSound.loadCompressedDataFromByteArray way, but doesn’t work.
I also tried the method suggested here, and it works, but I don’t get Sounds, I am getting a js.html.audio.AudioBuffer and not a lime.media.AudioBuffer that I could use to instance a new Sound.
EDIT 2 : loadCompressedDataFromByteArray works, I just have to save the Sound into the Asset cache correctly…