简体   繁体   English

如何从 MPMediaItem 获取艺术家图片?

[英]How to get Artist picture from MPMediaItem?

I'm searching for a way to get the picture of an Artist through the MediaPlayer library.我正在寻找一种通过 MediaPlayer 库获取艺术家图片的方法。

I've searched in the Apple's Doc , but there is nothing about that.我在Apple 的 Doc中进行搜索,但没有任何相关内容。 The property "Artwork" refers to the album's cover.属性“艺术品”指的是专辑的封面。

Any idea if and how i can get that ?知道我是否以及如何获得它?

回复为时已晚,但可能会帮助某人请查看此链接,他精美地描述了如何访问MPMediaitem的库标题图像和名称属性http://developmobilesoftware.blogspot.com/2013/06/fetching-images-and -title-的-歌曲,and.html

I believe all that's happening is that an MPMediaItem for music is wrapping the properties of an MP3 tag.我相信发生的一切都是音乐的 MPMediaItem 包装了 MP3 标签的属性。 So the artwork is embedded in the source file (.mp3, .aac, etc.因此,艺术品被嵌入到源文件(.mp3、.aac 等)中。

So the question is, where would this Artist's picture come from?那么问题来了,这位艺术家的照片从何而来? I think you'd have to write your own webservice for this.我认为您必须为此编写自己的网络服务。

I may be wrong however.然而我可能错了。

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

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