How To Generate An XML Feed Of Audio Files

alt=
Ekwe
@ekwe
10 years ago
212 posts
Trying to generate an xml feed of mp3's that are free downloads on my site for a html5 player player. How do I go about that? Thanks
updated by @ekwe: 10/10/14 04:36:00PM
brian
@brian
10 years ago
10,148 posts
Ekwe:
Trying to generate an xml feed of mp3's that are free downloads on my site for a html5 player player. How do I go about that? Thanks

You would create a template in XML format (whatever your player needs) and call it in a jrCore_list call in a template - i.e. create a file called "audio_list_xml.tpl" in your active skin directory.

Inside place:

{jrCore_list module="jrAudio" search="audio_genre = rock" template="audio_xml_row.tpl" ... }

Adjust that list call to suit your needs - i.e. adjust the search to get just the files you want.

Then create a file called "audio_xml_row.tpl" in your active skin directory:

... XML header here ...
{foreach $_items as $item}
    ... each XML entry ...
{/foreach}

https://www.jamroom.net/the-jamroom-network/documentation/howto/1080/howto-using-jrcore-list-in-a-template-step-by-step

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags