Page 1 of 1

OnDJAPlay doesn't work twice in a row

Posted: 15 Oct 2021 15:20
by franksiegers
Hi Bernd,

I've set the following events:

OnDJAPlay: Set the track state for module 4 to 1 ("PLAYING")

Code: Select all

EXEC_SEND_DRAIRLITE_SETTRACKSTATE 4|1
OnDJAStop: Set the track state for module 4 to 0 ("STOPPED")

Code: Select all

EXEC_SEND_DRAIRLITE_SETTRACKSTATE 4|0
OnDJAEject: Turn off the channel so it's ready for me to turn in it on again by pressing the button on the Airlite

Code: Select all

sleep 100
EXEC_SEND_DRAIRLITE_REMOTEON 4|0
I've set the same commands for DJ Player B with channel 5.

When I start a song by pressing the Airlite's On button on Channel 4, this works. Pressing it again, stops the song and a new song is automatically loaded. Now, when I try to start the new song on Channel 4 by pressing the On button on the Airlite, the song starts for a milisecond and then stops or pauses. This only happens when I start 2 consecutive songs on the same channel. When I first start a song on Channel 4, than on Channel 5 and then back on Channel 4 everything seems to work normally.

What am I missing here?

Thanks,

Frank

Re: OnDJAPlay doesn't work twice in a row

Posted: 15 Oct 2021 16:25
by radio42
To me this seems like an Airlite issue.
I just tested it here with plain commands:

Code: Select all

SHOW_ALERT_WINDOW A-PLAY/A-STOP/A-EJECT
instead of the Airlite commands for exactly the same events! And all was correct, these are all gracefully executed in the correct border without any side-effect - please test for yourself!

Thus maybe your above Airlite commands have an impact?!
I am afraid, that this needs to be checked by D&R?!
I am not even sure, what the REMOTEON command is exactly doing on the Airlite.