My audioPlayer works just like I want it to. The only issue I have is trying to list a second type of audio file in an Array. I have .m4a files right now which work great in Safari and Chrome, but I need .ogg files for it to work in Firefox. Does anyone know the proper way to list a second format? Here is my code:
Code:
var urls = new Array();
urls[0] = 'audio/song1.m4a';
urls[1] = 'audio/song2.m4a';
urls[2] = 'audio/song3.m4a';
urls[3] = 'audio/song4.m4a';
urls[4] = 'audio/song5.m4a';
urls[5] = 'audio/song6.m4a';
var next = 0;