bluematt / textual-musicplayer

A simple music player (MP3, etc.) using Textual.
MIT License
15 stars 1 forks source link

Track progress/info not updating when a track finishes #14

Closed bluematt closed 1 year ago

bluematt commented 1 year ago

Using pygame.mixer.music.queue to set the next track up ready for playing is fine, but there is no current signal for indicating when the next track starts.

This means that the UI doesn't update as expected.

bluematt commented 1 year ago

I was thinking about this too deeply. As track progress is already kept track of, it just needs to advance the playlist when progress >= 1.0. No need for low level pygame signals (which require the display to be active anyway for the event system to be enabled, for some inexplicable reason).