Using commands in the playlist

djsoft

Well-known member
Staff member
A guide on how to use commands in the playlist.

Commands are the same as for the scheduler:
http://manual.djsoft.net/radioboss/en/scheduler_commands.htm

To use command in a playlist you should add ".command" after the command text. Eg. if your command is "setvol 50" then it should appear in the playlist as "setvol 50.command", for "stop" it will become "stop.command", and so on.

Here's an example .M3U playlist:
Code:
#EXTM3U
#EXTINF:set volume
setvol 50.command
#EXTINF:202,ATB - the summer (airplay desire)
D:\Atb - The Summer (Airplay Desire).mp3

This playlist has 2 items:
1) a command to set volume to 50%.
2) a music track

Quick explanation of the playlist format:
#EXTM3U - always the first line in the file
#EXTINF - sets how the item will appear in the playlist (any text can be used here)
Next line after #EXTINF is the file name (or command name).

Another example, the playlist with 2 tracks. Forst track will play at 100% volume, and second will play at 50% volume:
Code:
#EXTM3U
#EXTINF:set volume
setvol 100.command
#EXTINF:Track1
D:\track1.mp3
#EXTINF:set volume
setvol 50 200.command
#EXTINF:Track2
D:\track2.mp3

The second setvol command has an additional parameter "200" for smooth volume change (200 is the duration in milliseconds).
 
Back
Top