Page 1 of 1
Question RE: Playlist events
Posted: 14 Feb 2026 20:03
by Thijmen
Hi Bernd,
Could you elaborate a bit on the exact inner working of the playlist events?
E.g.
OnTrackReplace
OnTrackAdded
OnTrackEmpty
(would it also be possible to add OnTrackRemove?)
Thanks!
Re: Question RE: Playlist events
Posted: 14 Feb 2026 23:15
by radio42
The 'Playlist.OnTrackAdded' event is raised whenever a track (or list of tracks) is added to a playlist.
The 'Playlist.OnTrackReplace' event is raised, when you manually drop a file to a DJ Player which already had another track loaded.
I.e. it doesn't mean you replace a track within the playlist itself, as such function dosen't exist.
The 'Playlist.OnTrackEmpty' event is raised whenever a track is manualy ejected from a DJ Player (automatic ejects/unloads are not reported).
You can for example use the following control-command to 'see' when the event is triggered: "SHOW_ALERT_WINDOW TRACK REPLACE" or "...EMPTY" ...
There is currently no event present, when you remove a playlist entry (note, that a replace would be a remove and an add).
Can you explain, what you like to achieve and why you exactly need these commands? Then I might better understand and can think of properly add more events for you.
Re: Question RE: Playlist events
Posted: 18 Feb 2026 18:44
by Thijmen
Haven't thought about that flow, thanks Bernd!