Author Topic: NOW PLAYING XML TEMPLATE  (Read 9497 times)

manishboyradio

  • Full Member

  • Offline
  • ***
  • 136
NOW PLAYING XML TEMPLATE
« on: October 07, 2015, 07:41:54 PM »
Does anyone know how to create a now playing xml template, i am banging my head against the wall trying to do it, could someone show me a basic script for a now playing xml template to be generated

Thanks

Marius

  • Administrator
  • Hero Member

  • Offline
  • *****
  • 5744
    • Radio DJ
Re: NOW PLAYING XML TEMPLATE
« Reply #1 on: October 08, 2015, 06:08:28 AM »
Two questions:
1. Now playing supports several templates (file export, web export, serial export), which one are you using?
2. There is a special format do you need to export, if so, which one?
DOWNLOADS PAGE

HOW TO FIX RADIODJ DATABASE
----------------
Please don't PM me for support requests. Use the forums instead.

manishboyradio

  • Full Member

  • Offline
  • ***
  • 136
Re: NOW PLAYING XML TEMPLATE
« Reply #2 on: October 09, 2015, 02:37:00 AM »
the file export to either html or xml, so that it displays the artist, title and cover art

Thanks

Marius

  • Administrator
  • Hero Member

  • Offline
  • *****
  • 5744
    • Radio DJ
Re: NOW PLAYING XML TEMPLATE
« Reply #3 on: October 09, 2015, 07:13:21 AM »
In the Docs folder of RadioDJ there is a list of supported variables. When you make the template, insert them as placeholders for the actual values. It's that easy.
DOWNLOADS PAGE

HOW TO FIX RADIODJ DATABASE
----------------
Please don't PM me for support requests. Use the forums instead.

manishboyradio

  • Full Member

  • Offline
  • ***
  • 136
Re: NOW PLAYING XML TEMPLATE
« Reply #4 on: October 12, 2015, 02:48:36 AM »
I have no idea where to start , what are placeholders?, as i said i have no experience making xml files, show me an example

thanks

Valdis

  • Hero Member

  • Offline
  • *****
  • 562
  • Personal Text
    Radio is a mental condition
    • home
Re: NOW PLAYING XML TEMPLATE
« Reply #5 on: October 26, 2015, 01:29:06 AM »
It is really as simple as Marius says. For software developers, but not mere mortals. :)
Example:
Code: (XML) [Select]
<?xml version="1.0" encoding="utf-8" ?>
<track id="$track_id$">
<artist>$artist$</artist>
<title>$title$</title>
<album>$album$</album>
<year>$year$</year>
<path>$path$</path>
<trackType>$track-type$</trackType>
<duration>$durationinSeconds$</duration>
<durationinSeconds>$durationinSeconds$</durationinSeconds>
</track>
I am, therefore I think.
I design and develop web apps, and have created few RadioDJ plugins - https://axellence.lv/downloads/

manishboyradio

  • Full Member

  • Offline
  • ***
  • 136
Re: NOW PLAYING XML TEMPLATE
« Reply #6 on: October 26, 2015, 06:26:29 PM »
Thank You!!, this gives me a place to start:), So will this code change the album art and text when i song changes in radio dj?, again thank you posting the xml code:)

manishboyradio

  • Full Member

  • Offline
  • ***
  • 136
Re: NOW PLAYING XML TEMPLATE
« Reply #7 on: October 26, 2015, 10:12:08 PM »
another question, it is not displaying the actual album art, it is only displaying the filename of the album art, how do i fix that?

Valdis

  • Hero Member

  • Offline
  • *****
  • 562
  • Personal Text
    Radio is a mental condition
    • home
Re: NOW PLAYING XML TEMPLATE
« Reply #8 on: October 26, 2015, 10:23:41 PM »
XML is a data mark up language, not presentation mark up language. HTML is better suited for display images. You should have mentioned what you want to accomplish. You asked for XML but now you want it to function like HTML.
Banging head against wall is not healthy.
I am, therefore I think.
I design and develop web apps, and have created few RadioDJ plugins - https://axellence.lv/downloads/

manishboyradio

  • Full Member

  • Offline
  • ***
  • 136
Re: NOW PLAYING XML TEMPLATE
« Reply #9 on: October 26, 2015, 10:34:33 PM »
okay i apologize, my mistake, so how do i go about doing that, sorry for the confusion, when you get a chance show me a code to do that, thanks for your help:)

Marius

  • Administrator
  • Hero Member

  • Offline
  • *****
  • 5744
    • Radio DJ
Re: NOW PLAYING XML TEMPLATE
« Reply #10 on: October 26, 2015, 10:41:26 PM »
Do you have the album art images on your web server? If so, what is the path to them?
DOWNLOADS PAGE

HOW TO FIX RADIODJ DATABASE
----------------
Please don't PM me for support requests. Use the forums instead.

manishboyradio

  • Full Member

  • Offline
  • ***
  • 136
Re: NOW PLAYING XML TEMPLATE
« Reply #11 on: October 26, 2015, 10:51:13 PM »
yes i do, they are locally stored in a folder in the same directory as radio dj, i know we have been going back and forth with this, i want to display album art using the html that was mentioned before , and plug into a title generator for xsplit broadcaster that reads HTML code. Thanks again for your help

manishboyradio

  • Full Member

  • Offline
  • ***
  • 136
Re: NOW PLAYING XML TEMPLATE
« Reply #12 on: October 27, 2015, 12:25:42 AM »
F:\RadioDJ\Album_Art, path to album art

Marius

  • Administrator
  • Hero Member

  • Offline
  • *****
  • 5744
    • Radio DJ
Re: NOW PLAYING XML TEMPLATE
« Reply #13 on: October 27, 2015, 08:31:08 AM »
Do you run your site from your computer? Do you have a web server installed locally?
I ask this because if you are running the site from a hosting company server, the image files must be uploaded there and then you must find a way to upload also the generated html on each track change. For such a scenario the php would be better, but that requires some programming knowledge.
DOWNLOADS PAGE

HOW TO FIX RADIODJ DATABASE
----------------
Please don't PM me for support requests. Use the forums instead.

manishboyradio

  • Full Member

  • Offline
  • ***
  • 136
Re: NOW PLAYING XML TEMPLATE
« Reply #14 on: October 27, 2015, 02:22:04 PM »
so i need a webserver installed like apache? to use the generated html?, i am using MariaDB rather MYSQL, and accessing the DB via hedi sql, i would be greatfull if you could step me through the whole process, i looked at the xml for the web export, it looks like a foreign language to me, thanks again