sb2702 / audioRecord.js

Easily record audio in the browser, export as WAV, MP3 or OGG
MIT License
57 stars 14 forks source link

libvorbis.module.min.js.mem file can't be loaded #1

Closed d668 closed 9 years ago

d668 commented 9 years ago

IIS (and others) don't allow mem files, can you change format?

sb2702 commented 9 years ago

Sure - Looking into it right now

Rillke commented 9 years ago

Maybe I am on the wrong path; according to MSDN, there is configuration for MIME types.

Don't make it js, otherwise CloudFlare will possibly corrupt the files ;-)

I guess something that suggests it could be a binary file like zip or lzh could work for most servers. It is possibly important not to choose an image format because some providers will try to scale them for mobile etc....

sb2702 commented 9 years ago

Well, so the original problem I ran into was finding a javascript library that could do the OGG Vorbis encoding. I found this library: https://github.com/itsjoesullivan/libvorbis.js/tree/master for compiling native libraries into javascript (with emscripten), but it's been giving me trouble on my system. I can't remember where exactly I found the minified, optimized version of libvorbis.module.min.js, but I found it somewhere, found out that it worked, and integrated it into the project.

To fix this, I just need a compiled version of libvorbis https://github.com/itsjoesullivan/libvorbis.js/tree/master or something equivalent, that's not optimized - I just found https://github.com/Garciat/libvorbis.js, so I'm checking into it now

As a sidenote- the mem file suggess that this copy of libvorbis is optimized, meaning it'll perform better

d668 commented 9 years ago

i just renamed the .mem file to .txt and it worked fine

sb2702 commented 9 years ago

Perfect!