Is there a way to get the time length of an mp3 in VB.net? I have TagLib, but it doesn't seem to have any functionality for it.
Asked
Active
Viewed 3,101 times
2 Answers
2
I think you are looking for the TagLib.File.Properties.Duration, which returns a TimeSpan object. From there you can use TotalSeconds to get the length of the mp3 in seconds.

John Koerner
- 37,428
- 8
- 84
- 134
-
And also TotalMilliseconds for milliseconds. :) – Russell Feb 17 '11 at 03:11
0
add this to timer of track bar and dont forgot to add label in
Label4.Text = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.durationString
player

betrice mpalanzi
- 1,436
- 12
- 16