0

Node.js read Media List details from Presentation

Hi there! I am a developer building a Node.js-based presentation for a BrightSign XD1033 model. I'm wondering if there is any way for my Node.js scripts to read information out of the presentation itself.  For example, if someone opens up the Presentation in BrightAuthor and adds a Media List object to the playlist, I am looking for a way to have my Node.js code read the values that the content editor has specified. 

Is this possible?

I've poked around the documentation, and the BrightSign-to-JavaScript objects are pretty sparse. I didn't see anything in there that looks like it would give me the information I am looking for.

I did see that Node.js builds do have full read access to the SD card.  Theoretically, I could read the local-sync.xml file. Look up my presentation's <download> element, read the .bml from the pool directory, and dig out the <mediaListItem> details from that file.  But that's a bit of manual file IO and XML parsing that I'd rather not write! Plus I'd be SOL if the BML file format ever changed!  Would much prefer a method that's "supported."

Any ideas?  Thanks!

1 comment

  • 1
    Avatar
    Lyndon

     

    There isn't any access into the ba datas structures. You would need to do what you suggested, either read from xml files on the sd card, or have a plugin attached to the ba project that will do the same thing and send it over.

Please sign in to leave a comment.