Trouble playing mp3s after id3 image edit

六眼飞鱼酱① 提交于 2019-12-06 05:07:25

TagLib# can be used to "downgrade" an ID3 tag from 2.4 to 2.3. I personally prefer to convert my ID3 tags to 2.3 since it is more consistently adopted across music players.

It's been a while, but I believe you can use the following in your above code:

TagLib.Id3v2.Tag id3v2tag = tagFile.GetTag(TagLib.TagTypes.Id3v2, false);

if(id3v2tag != null)
    id3v2tag.Version = 3;

tagFile.Save();

Alternatively, you can force all tags to render in 2.3 by using the following code when your application initializes:

TagLib.Id3v2.Tag.DefaultVersion = 3;
TagLib.Id3v2.Tag.ForceDefaultVersion = true;

TagLib# can also remove tags completely and re-add them, but it shouldn't have to come to that.

Good luck!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!