Question RE: Playlist events

You have a question or need an advice about how to do something? Ask it here!
Post Reply
Thijmen
Posts: 125
Joined: 16 Jul 2019 20:19
Question RE: Playlist events

Post 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!
User avatar
radio42
Site Admin
Posts: 9029
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Question RE: Playlist events

Post 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.
Thijmen
Posts: 125
Joined: 16 Jul 2019 20:19
Re: Question RE: Playlist events

Post by Thijmen »

Haven't thought about that flow, thanks Bernd!

Post Reply