Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Storing audio files in html5 local storage- downloading audio files with javascript

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.

like image 239
Bahri Gökcan Avatar asked Dec 03 '11 13:12

Bahri Gökcan


1 Answers

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.

like image 132
AshleysBrain Avatar answered Nov 15 '22 00:11

AshleysBrain