Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How to prevent playing a track? (Read 1353 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to prevent playing a track?

Hi,

I need the following behaviour: When a track should be played by clicking in the GUI on play, instead of playing the track, another action should be performed. The decision if normal playback is started or another action is performed should be based either on metadata tag values or on item paths.

Can this be done creating a foobar plugin? I think I can use play_callback to detect the play-action, evaluate the criteria and start the other action. But can I also suppress/prevent the real playback of the track this way?

Thanks!