问题描述
当文件来自Apple Music时, MPMediaItem
上的属性 MPMediaItemPropertyAssetURL
似乎返回null并且已经离线使用。
It seems that the property MPMediaItemPropertyAssetURL
on a MPMediaItem
returns null when the file is one that was from Apple Music and has been made "available offline".
另一方面,我上传到iTunes的原始图书馆中的项目匹配/苹果音乐然后离线可用似乎有这个问题。
On the other hand, items from my original library which I uploaded to iTunes match/apple music and then make available offline don't seem to have this problem.
这是一个错误吗?我做错了什么吗?有没有类似问题的人?
Is this a bug? Have I done something wrong? Anyone having similar issues?
推荐答案
似乎Apple Music文件受DRM保护且基于订阅,因此Apple可能禁止使用由于权利管理而引用这些资产。
It seems that Apple Music files are DRM-protected and subscription based, so probably Apple prohibits the use of references to these assets due to rights management.
参考:
这篇关于Apple Music脱机文件没有URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!