xaudio.js
A Multiple Audio Player Module
Features
- playlist supported
- 3 kind of play mode:single loop,list loop,random
- skip prev and skip next
- and more
- just for fun, enjoy it :)
Examples
var list = 'src' : '//xxx/song1.mp3' 'src' : '//xxx/song2.mp3' 'src' : '//xxx/song3.mp3' 'src' : '//xxx/song4.mp3' 'src' : '//xxx/song5.mp3' ; var player = list; // get list lengthplayer; // 5// orplayer__listlength; // 5 // play the 4th audio in the playlistplayerindex3;// orplayer; // get current indexplayerindex; // 3 // switch play mode [1:list,2:single,3:random]player; // jump to 30%player; // jump to 65splayer; // get current timeplayer; // 65 // muteplayer; // unmuteplayer; // play nextplayernext; // and more examples is on the way