I have some songs in the resources of my application and want to get their time length so that I can set a timer to tick when the song ends. And then start the next song. I want to do that in my code, and get the time length of a song as an integer value.

I have been googling for it for many hours. I'm a beginner. So please try to explain in a simple language. Thanks in advance.