Answer the question
In order to leave comments, you need to log in
Seamless transitions between audio files
There is an array of Audio objects
filled with something like this:
var buffer = new Array();
myAudio = new Audio('/playlist/radio');
buffer[last_part_index] = myAudio;
function work()
{
myAudio = buffer[current_part_index];
myAudio.addEventListener('ended', function () {
current_part_index++;
work();
});
myAudio.play();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question