October 21, 2020, 12:26:18 AM
Welcome, Guest. Please login or register
News: Stay up to date with everything that's happening at http://twitter.digitalsignage.com

MediaSignage support forum



Author Topic: Reading from a text file/XML?  (Read 3650 times)

solerous

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Reading from a text file/XML?
« on: November 29, 2010, 08:46:03 AM »
I was wondering if it's possible to read data from a text file into a signageplayer, specifically an xml file.  I have the file available as a URL and want to just map it into various labels/boxes on a screen.  The only thing I see under components that looks like it might do this is Catalog Item but I don't know how that works or if that's even the way to go.  Is this even possible with this software?

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5093
  • Karma: +35/-8
    • View Profile
Re: Reading from a text file/XML?
« Reply #1 on: November 29, 2010, 09:44:58 AM »
If the XML is of a format of RSS, yes you can use our RSS news or custom RSS and point to the feed.
If it's not, you should look into making a custom SWF to read the data, we do have some samples.

See these videos:

http://mediasignage.com/html/signage_video.html?videoNumber=customRSS

http://mediasignage.com/html/signage_video.html?videoNumber=flashSDK

solerous

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Reading from a text file/XML?
« Reply #2 on: November 29, 2010, 12:11:09 PM »
Thanks, those examples look promising.  On the one where it showed the xml for the file the swf was using though, I was wondering if you edit the xml directly, will it reflect the changes in SignagePlayer each time it reloads the timeline (every minute or whatever it's set to)?  It seems like it would but that wasn't mentioned in the video and I'm unfamiliar with how swf files work.  The video only showed how to edit the entries with SignageStudio and we'd like for our users to be able to just edit the (external/stand-alone) text file directly and load it from a URL into the swf
« Last Edit: November 29, 2010, 12:30:50 PM by solerous »

solerous

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Reading from a text file/XML?
« Reply #3 on: November 29, 2010, 01:05:39 PM »
Actually, it looks like just re-formatting the XML to be RSS compatible would be the least painful of the two options.  I think I'll give that a try.

 

Carbonate design by Bloc
variant: carbon
SMF 2.0.12 | SMF © 2016, Simple Machines