質問

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.

役に立ちましたか?

解決

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.

他のヒント

add this to timer of track bar and dont forgot to add label in

 Label4.Text = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.durationString

player

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top