5
votes

I searched and found that html5 does not support directly storing audio. I will convert audios to base64 strings and then I will store in the local storage.

I am developing a html5 audio player application with jplayer. I have audios in the server and I need to store them in the local storage, so I need to download audio files with javascript. Is there way to download audio files with javascript? Any help would be appreciate.

2
I could not find how safari supports storing audio in local storage. Can you give exact section that explains it?Bahri Gökcan
how's it going? Cracked it using Offline Application Cache? I'll be needing this functionality soon, too..Lloyd

2 Answers

5
votes

Local storage tends to be limited in size (5mb ish? can't find a reference) so this is unlikely to work well.

You might be able to look in to using the HTML5 AppCache or File system API.

4
votes

You could use the HTML5 Offline Application Cache in Safari / Webkit.

Use the offline application cache to store HTML, JavaScript, CSS, and media resources locally, to create web-based applications that work even when a returning user is not connected to the Internet.