Open ghost opened 9 years ago
Worth thinking about... Probably better to integrate this into the jPlayer.injector since that will be a polyfill for HTML5 media and kinda do everything even easier and using web standards... But alas, that is also WIP and in its dev branch for the polyfill stuff.
I see from the dev branch that you're experimenting with Mustache templating. Great! And I was wondering if this might be the start of a super-easy jplayer install for noobs.
At the moment the docs suggest download and install to server, and from the looks of the forums, this is where a lot of people mess up - wrong swfpath, forgetting to include jquery, old versions etc.
The docs could simplify things a little by also saying something like:
But seeing as the skins are ALSO hosted on the CDN, in theory, you could turn the whole thing into a single line plugin: One line of javascript would load jquery if not already loaded, document.write all the correct css URLs into the header and script URLs into the footer, and Mustache could be used to write out the jplayer object to the DOM.
Given that there's code out there which will seek out items of a certain class, "suck them into" the playlist object and then hide the items, you could end up with instructions as simple as
Madness or a reasonable idea?