Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2010-01-31 14:38:04
- joel
- Member
- Registered: 2004-11-26
- Posts: 162
Integration of JW player and XML playlists
Hi!
I want to integrate JW Player for audio playback on a project. I also would like a playlist served via XML from a specific files-category.
I’ve looked around but I didn’t find the right info anywhere. Could someone please point me in the right direction? Which plugins do I need etc.?
Thanks! :)
Offline
Re: Integration of JW player and XML playlists
I would go with rah_external_output and make it to generate a simple XML playlist file.
With the plugin, I could create a new (text/xml) snippet that would list the files. Code might look something like:
<?xml version="1.0" encoding="UTF-8"?>
<playlist xmlns="http://xspf.org/ns/0/" version="1">
<trackList>
<txp:file_download_list category="MyCategoryHere">
<track>
<location>/MyFileLocation/path/to/<txp:file_download_name /></location>
</track>
</txp:file_download_list>
</trackList>
</playlist>
Note: It’s just an example. Use a XML template that you want and works for you and your player.
After that, the XML playist goes into the JW player with flasvars:
s1.addVariable("file","<txp:site_url />?rah_external_output=MyPlaylistSnippetName");
More info and resources:
Offline
Re: Integration of JW player and XML playlists
there is also mg setheader but rah_external_output looks a bit cleaner cause you don’t have to use pages to create your xml file it seems.
Offline
#4 2010-02-08 17:42:57
- joel
- Member
- Registered: 2004-11-26
- Posts: 162
Re: Integration of JW player and XML playlists
Thanks a lot! You guys really saved the day for me!!! :)
Offline
Re: Integration of JW player and XML playlists
Legend. Thank you
Offline