In this video we’ll get the song duration and the total song length for our MP3 songs in our MP3 playlist!
Pygame makes getting the current position of a song (it’s duration) pretty easy, but it doesn’t have any mechanism to find out an mp3 files total length.
So we’ll install something called Mutagen to get our MP3 song lengths, then we’ll output both the song duration and length onto a status bar at the bottom of our mp3 player that updates as the song plays.
Add comment