I need to get the title as well as the current progress duration of the song which is currently playing(the one which is shown in the now playing section) in Windows 10 using Python. Using this answer, I have so far successfully fetched the title as well as the album details but however I am unable to get the current duration of the song.
WinRT API does indeed have a way to get the current duration using the position property as documented here but it returns a TimeSpan object which I tried converting but it returns a date, not the current duration/progress of the song.
Can anyone please give me any pointers as to how to get the current duration of the playing song? Is there any other way to get the current playing song details in Python?
Source: Windows Questions