This PR fixes an issue that occurs when a song is paused, which causes the timer to reset and keep counting. Also added a state for when a song is stopped, and changing the state parameter in UpdatePresence() method from string to PlayState type, because we need to distinguish between "Playing" and "Paused/Stopped" states.
This PR fixes an issue that occurs when a song is paused, which causes the timer to reset and keep counting. Also added a state for when a song is stopped, and changing the
state
parameter inUpdatePresence()
method fromstring
toPlayState
type, because we need to distinguish between "Playing" and "Paused/Stopped" states.