
6 Details
6.1
Startup behaviour
Value of configuration variable
QUICK_PLAY
determines the behavior of FTP MP3 Player upon
boot. If QUICK_PLAY is set to 0, FTP MP3 Player tries to refresh the configuration and the
music before starting the actual playing. This can be used to prevent playing obsolete
messages/music.
6.2
Scheduling
The most important task of the FTP MP3 Player is to play music. In order to ensure smooth
playback, only one of the other resource-demanding activities is allowed at a time.
These activities are:
●
updating the configuration
●
updating the music (including the clean-up phase)
In the case where one task is already being executed and the time comes to start a new task,
the new task execution is postponed until the entire current task is finished (e.g. all the music is
downloaded).
The most observable instance of this postponing is when updating music takes a long time.
During music update, it is not possible to force update of the configuration or restart music
update, until all of the music is downloaded.
6.3
Cleanup phase tuning
Because cleanup phase is resource intensive, and under certain conditions could interfere with
playback, it is possible to disable it:
•
during some parts of the day,
•
allow deleting only during song switching or
•
disable deleting entirely.
•
The following settings are available:
DEL_BEGIN
,
DEL_END
,
DELETE_STOP
,
NO_DELETE
If deleting is disabled using NO_DELETE, values of DEL_BEGIN and DEL_END are ignored.
6.4
Using a relay output during music playback
In some cases, a relay output may be needed to control external equipment (for example
power amplifier, lights, etc.). In this case the relay may be controlled by adding in the player.cfg
file the following option:
RELAY_ON_PLAY=1
In this case the relay will switch on when the music playback starts (found active playlist), and
switch off when there is no playlist to play.
Note:
Please have in mind that you need a BARIX device with a relay output (for example
25
Details