Hi Scripters,
i need some help with this project i'm building.
i'm working on a smartphone App for remote control.
I'll try to explain what the app can do and what i'm going to implements.
- open and search by UDP all BrightSign (with my custom autorun). WORKS
- get files (in SD:/CONTENT/). WORKS
- Play, Loop, Stop, Pause files. WORKS
- Change ViewMode and save in file for future power on. WORKS
- playlist MISSING
i'd like to send by http (i can do it) a csv file and save on storage at a certain location, in order to save the playlist.
the .csv file i like to be in this format:
<fileType>;<fileName>;<Duration>
my pseudocode is this:
file = readAsciiFile()
commandRows = file.tokenize("\n") --> here i will have an array of rows
for each row in commandRows
fields = row.tokenize(";") --> here i will have an array of fields [fileType,fileName,Duration]
if fields[0] = "IMAGE" then
DisplayImage(fields[1])
sleep(fields[2]) --> this interrupt other input events
else
playFile(fields[1])
wait for "end of file" --> can't imagine how to implement...
next
send("END PLAYLIST")
that's it.
if someone have another solution, i'll be very happy to try it.
thanks, Luca