Hi! On FireEvent with event type TrackEnd the reason can be "REPLACED" or "FINISHED"
You should put a condition to check the reason.
If the track is replaced this means a "skip" was occurred, the player plays the next track but the Playing status is false and this gives me some problems for example I can pause the current running player.
When the player plays the next track the Playing status is set to true but, after, the Lavalink service send the TrackEnd event and the Playing status is set to false.
If the track is finished then the Playing status can be false, this should be.
Please fix it fast.
Hi! On
FireEvent
with event typeTrackEnd
the reason can be "REPLACED" or "FINISHED" You should put a condition to check the reason. If the track is replaced this means a "skip" was occurred, the player plays the next track but thePlaying
status is false and this gives me some problems for example I can pause the current running player. When the player plays the next track thePlaying
status is set to true but, after, the Lavalink service send theTrackEnd
event and thePlaying
status is set to false. If the track is finished then the Playing status can be false, this should be. Please fix it fast.https://github.com/Devoxin/SharpLink/blob/3bb33574ec0d32f913c5afa2dd33b876073a7c34/SharpLink/LavalinkPlayer.cs#L146-L181