Api overlay play

SteveG

New member
Hi all.
It could nice to include an overlayplay (level) scheduler command to use it with remote control API, including %variables for file name to dynamically call it like: http://127.0.0.1:9001/?pass=WxPe2JXh&action=overlayplay 20&filename=D:\announce\%year\%artist - %title.mp3
I am already using some complex python code, songrequest event (overlay playback) to override it , but a single command with %variables could be very useful!
 
Last edited:
You can achieve this as following:
  • Create a (disabled) scheduled event, configure its overlay options as needed
  • When you need to play something as overlay using the API:
    • Modify the event's action (set file name): read the event, change file name, save event
    • Start the event
 
I already do it this way, but i can't chose any other song except the one that already saved in the scheduled event.
This has the limitation that the file is specific, pre-saved in the event.
I meant something like inserttrack, overlay play any mp3 file (just without the position (pos) argument).
As always, thank you for your direct response.
 
Last edited:
I already do it this way, but i can't chose any other song except the one that already saved in the scheduled event.
That's what the first step is - modify the event's FileName field to make it play what you need. Use the schedule API command for this: https://manual.djsoft.net/radioboss/en/remote_controlapi.htm

First list the events, get the event that you need, modify it, save, then run.

Another approach would be to make the event start the playlist, and with your script simply modify the playlist content. A playlist can be a simple one-line text file, specifying the file (full path) that you want to start.
 
Back
Top