System.NotImplementedException:'不支持ID3v2版本2'。
问题描述:
希望一切顺利。在C#表单应用程序中尝试从Visual Studio上的MP3文件获取元标记时,出现以下错误。任何帮助表示赞赏。提前致谢。System.NotImplementedException:'不支持ID3v2版本2'。
System.NotImplementedException:'不支持ID3v2版本2'。
这是我的代码看起来像至今:
Mp3Lib.Mp3File mFile = new Mp3Lib.Mp3File(file: @"C:\Users\user\Music\song.mp3");
string mArtist = mFile.TagHandler.Artist;
答
这似乎是你使用不支持ID3v2的版本2.
作为替代品“MP3Lib”库,我建议你使用ATL.NET(https://github.com/Zeugma440/atldotnet)或TagLibSharp(https://github.com/mono/taglib-sharp)。
这两个都是最新的库,可以从MP3文件中读取ID3v2.x元数据,等等。