Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to get the playtime of a MP3?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Ok I have a mediaplayer object to open MP3s with. I want to display the total time of the MP3 in a label.

how do I do that?

Thank you very much!
 
You have the TimeFormat method/propertiy(?) so you can get the length of the media in different formats.
And then use the Length method. (it returns the no. of milliseconds, by default - you can compute the hh,mm,ss from there).
Raz (just trying to be useful)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top