I am trying to create a function in which an mp3 file is pulled from
<input type=file id=sound accept=audio/*/>
and stored in localStorage within Chrome. (I know localStorage is limited in size, but the audio files that I will be working with will be under 2mb.) Once this audio file is stored, it will be played with:
var audio = new Audio('audioFile');
audio.play();
I am still new to web development, so any pointers would be great!
NOTE: This is not a duplicate of HTML5 record audio to file. I am trying to take a preexisting mp3 file from my HDD and storing it into localStorage so that it can be played back.