简体   繁体   English

获取mp3文件的插图

[英]Get the artwork for an mp3 file

Hi guys does anyone how you can access the artwork image for an mp3. 嗨,大家好,您如何访问mp3的图片图像。 I download the mp3 from a server and save it in documents, and when i play it from file I want to display the image for the mp3? 我从服务器下载mp3并将其保存在文档中,当我从文件播放该文件时,我想显示mp3的图像吗?

thanks 谢谢

The album art is usually embedded in the ID3 tag. 专辑封面通常嵌入在ID3标签中。 The id3lib library can be used to read it. 可以使用id3lib库读取它。

EDIT : There is also the id3v2 command-line utility. 编辑 :还有id3v2命令行实用程序。 I haven't used it though. 我没有用过。

It's probably going to be in the ID3 tag . 它可能会在ID3标签中 2.4 and 2.3 ("APIC") are the most common, but 2.2 ("PIC") is still floating around. 2.4和2.3(“ APIC”)是最常见的,但2.2(“ PIC”)仍在浮动。 There are various C libraries which may help. 有各种C库可能会有所帮助。

There's MPMediaItemArtwork, but I think that only works for files in the iTunes/iPod/whatever library. 有MPMediaItemArtwork,但我认为仅适用于iTunes / iPod /任何库中的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM