2018-04-24 13:06 GMT-05:00 Dave Hayes <[email protected]>:
> On Tue, 24 Apr 2018 08:49:59 -0500
> Romain Beauxis <[email protected]> wrote:
>> Ok, I've just pushed a new on_track callback for playlists. It takes
>> two argument: ~last:bool, true when the next track is the last in the
>> playlist and the actual track's position. If you return true in this
>> function then a playlist reload will be immediately queued.
>
> Is there any way to print a message to a connected server from this
> callback?

Yes, just add it inside the callback function. If sending the message can
take a while and block you may want to wrap it in a add_timeout to make
sure the main streaming thread isn't stopped by it.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to