audiojs icon indicating copy to clipboard operation
audiojs copied to clipboard

audio.js: multpile playlist players on one page

Open SunnyOz opened this issue 8 years ago • 1 comments

I found your audio.js examples.. and they are just what I’ve been looking for. Thank you for sharing them.

I just have a quick question... on your example 5 of Customised playlist player http://kolber.github.com/audiojs/demos/test6.html - is it possible to place more than one of these on a single website page?

I have tried it, and the second instance player just displays a rotating circle (instead of the arrow for play).. and if you select any song from this second group, it plays, but shows up as playing on the first player.

Can you quickly tell me if I am missing anything? Or is it not possible to have multiple players that also have the playlist option. (I know you can have multiple players with no playlist - as shown on your example 2 of Custom markup/css: http://kolber.github.io/audiojs/demos/test2.html).

Originally, I was guessing that the problem was the fact that I had two divs with id="wrapper" (from your original code examples). But I think when I changed the name of the ids, it doesn't gel with the javascript. Any suggestions?

You can see it online here: http://www.allanzavod.com/test-music3.htm

Thanks for any advice.

SunnyOz avatar Aug 31 '16 05:08 SunnyOz

I think that solution might work: https://github.com/kolber/audiojs/issues/190#issuecomment-180565736

hexplor avatar Dec 16 '16 11:12 hexplor