# Getting total seconds of mp3 file before its loaded

**URL:** <https://forum.kirupa.com/t/getting-total-seconds-of-mp3-file-before-its-loaded/287738>\
**Category:** Uncategorized\
**Created:** [May 5, 2009, 6:47pm UTC](https://forum.kirupa.com/t/getting-total-seconds-of-mp3-file-before-its-loaded/287738 "2009-05-05T18:47:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andriusain](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@andriusain](https://forum.kirupa.com/u/andriusain)\
**Post date:** [May 5, 2009, 6:47pm UTC](https://forum.kirupa.com/t/getting-total-seconds-of-mp3-file-before-its-loaded/287738/1 "2009-05-05T18:47:29Z")

</div>

Hello all, I am stuck with something which I do not know if its possible but I would guess that it is; I just need a little help from someone.

I have an mp3 player that has a countdown timer. Well that count timer will not work properly until the mp3 is fully loaded. All I need to do is get the exact total seconds that the song has. How do I do that before the song is loaded?  
I would really appreciate your help.

Many thanks!
