OnDJAPlay doesn't work twice in a row

You have a question or need an advice about how to do something? Ask it here!
Post Reply
franksiegers
Posts: 122
Joined: 15 Nov 2019 14:24
OnDJAPlay doesn't work twice in a row

Post 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
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: OnDJAPlay doesn't work twice in a row

Post 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.

Post Reply