Firstly I'd like to thank UncleCheese for this great a flexible module. I can't begin to understand how to get the most of it at the moment, but even for people with little coding knowledge such as myself (I'm primarily a designer) it is impressive what can be achieved.
I like the fact that MP3 playing is included, but I need a player I can style and amend easily with CSS, and which doesn't rely on flash.
I've been trying all day to make a module making use of the Jplayer code, and in partcular basing it on the playlist demo:
http://www.happyworm.com/jquery/jplayer/latest/demo-02.htm
The problem is that in the supplied code the playlist appears to need to be hardcoded into the .js config file (is this the right term or it?). As far as I know it isn't possible to use Silverstripe markup inside javascript?
So, I've tried a workaround which uses Silverstripe to generate the required code inside a hidden div (pretty ugly in terms of accessibility - I told you I was a designer not a coder!), and then jquery pulls that into 'var myPlayList' inside the config file.
I've been able to get the page to then display the string 'myPlayList' to check it is formatted correctly - which it appears to be, and if then copy and pasted into the config file it works, but I'm guessing the raw data is not just text as this then results in a load of links on the page called: undefined (mp3)
I've attached a link to a zip of the files so you are able to see my attempts so far, and would be very grateful if someone can tell me where I'm going wrong.
Is there a way to get this to work, or even better work in a much more elegant fashion not using the evil hidden content, or is it a much harder job than I originally anticipated?