Detecting the end of a song #134
-
Currently, I need to set a state in my app every time the song ends, the first logic I had was:
But probably isn't a good idea. @gilbarbara or anyone, know a better way to accomplish this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @vettorazi When the callback receives an event of type |
Beta Was this translation helpful? Give feedback.
-
Thanks @gilbarbara this worked!
|
Beta Was this translation helpful? Give feedback.
Hey @vettorazi
Take a look in the Type Definition for the callback
When the callback receives an event of type
track_update
it means the player just loaded a new track, so it finished playing the "previous" track.