samedi 7 février 2015

I did a little research about streaming mp3 files from a remote server and playing them as one but because i'm totally new to Web Audio API , i'm a little bit confused.


What i have is PATHs to 5 MP3 files that are stored on another server. Their length is around 10 minutes so the file size is "big". What i want to do to download the first one, start playing it and while it is playing i want to continue and download the other files in their sequence.


I have read that i need to create a XMLHttpRequest to each file and get it as "arraybuffer". Then what i need to do is to decode the arraybuffer. What does it mean to decode it?


Lets say the arraybuffer is decoded, how do i play it in the html5 tag? How do i keep doing XMLHttpRequests and adding them to the arraybuffer of the first file that is already playing?


Aucun commentaire:

Enregistrer un commentaire