Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 VB.net 中获取 mp3 的时间长度?我有 TagLib,但它似乎没有任何功能。
我认为您正在寻找 TagLib.File.Properties.Duration,它返回一个 TimeSpan 对象。从那里您可以使用 TotalSeconds 以秒为单位获取 mp3 的长度。
将此添加到轨迹栏的计时器,并且不要忘记在其中添加标签
Label4.Text = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.durationString
播放器