I'd like to be able to get a track list from an external source, posting to the UDP port /listtracks returns nothing, and there is nothing in the server logs. Is there any chance of being able to return the servers internal list of tracks? Seeing as server,addtrack doesn't add this to the serverargs otherwise we would just parse this etc.
You have to use javascript. You can either hook the addtrack command or use mxserver.getstring("tracklist", index) to enumerate the tracks. Use mxserver.string_to_file to write the list out to a file.
Josh Vanderhoof
Sole Proprietor jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
jlv wrote:You have to use javascript. You can either hook the addtrack command or use mxserver.getstring("tracklist", index) to enumerate the tracks. Use mxserver.string_to_file to write the list out to a file.
That's great, thanks JLV - I wasn't in the know (been a while) with regards to the JS API so thanks for that