获取 mp3 文件的插图
大家好,请问如何访问 mp3 的艺术作品图像。我从服务器下载 mp3 并将其保存在文档中,当我从文件播放它时,我想显示 mp3 的图像?
谢谢
Hi guys does anyone how you can access the artwork image for an 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?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
专辑封面通常嵌入在 ID3 标签中。可以使用 id3lib 库来读取它。
编辑:还有 id3v2 命令行实用程序。不过我还没用过。
The album art is usually embedded in the ID3 tag. The id3lib library can be used to read it.
EDIT: There is also the id3v2 command-line utility. I haven't used it though.
它可能位于 ID3 标记 中。 2.4 和 2.3(“APIC”)是最常见的,但 2.2(“PIC”)仍然存在。有各种 C 库可能会有所帮助。
有 MPMediaItemArtwork,但我认为它仅适用于 iTunes/iPod/任何库中的文件。
It's probably going to be in the ID3 tag. 2.4 and 2.3 ("APIC") are the most common, but 2.2 ("PIC") is still floating around. There are various C libraries which may help.
There's MPMediaItemArtwork, but I think that only works for files in the iTunes/iPod/whatever library.