Replies: 2 comments
-
Hi, I think that in this case, a transition is the best way to go. Transitions are functions: Something like this:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Nice, thanks for pointing me in the right way, I'll try it out! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm migrating our broadcasting script from
2.1.4
to2.3.x-rc
, and there's one feature that I can figure out.I would like to send an HTTP request at the end of specific streams in a
switch
.And each
morning
,afternoon
,evening
andnight
is a version of this:However, the more recent version of LS have dropped
on_leave()
I've gone through the API docs and it looks like
on_done()
might be a good replacement, but it's not clear whatplaylist is finished
means... If the playlist is interrupted by the end of the switch, does this count as done?Otherwise, maybe the proper way to go about it would be to, instead of doing the request when handling the end of a given playlist, I should do the request on the first track of the following playlist (would essentially be the same behavior).
Thanks for your opinions!
Beta Was this translation helpful? Give feedback.
All reactions