API来从iTunes下载歌曲到iPhone [英] APIs to download songs from iTunes to iPhone

查看:205
本文介绍了API来从iTunes下载歌曲到iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我正在写一部iPhone应用程序下载的歌曲并将其存储在我的应用程序。对此有任何框架?你可以帮我如何开始它。先谢谢了。

Hi all i am writing one iphone application to download the songs and store it in my application. Is there any framework for this?. Can you please help me how to get started with it. Thanks in advance.

推荐答案

您试图从用户的主文件夹中的文件复制到iPhone?

Are you trying to copy files from the user's home folder to the iPhone?

您可以解析 iTunes音乐Library.xml 文件的文件位置。例如,这可能是普通的iTunes用户的音乐文件夹的根文件夹:

You can parse the iTunes Music Library.xml file for file locations. For example, this is likely the root folder of the average iTunes user's music folder:

<key>Music Folder</key><string>file://localhost/Users/username/Music/iTunes/iTunes%20Music/</string>

然后,你需要设置一些最终用户的计算机上的服务,如Web服务,以将数据复制到iPhone。然后,你可以写一个RESTful客户端拉过的数据。

Then you'd need to set up some kind of service on the end user's computer, such as a web service, in order to copy data up to the iPhone. You could then write a RESTful client to pull data over.

这是一个很大的工作,但可行的。正如你基本上复制iTunes中,你也可以运行苹果将拒绝您的应用程序的风险。

It's a lot of work, but doable. As you're basically duplicating iTunes, you would also be running the risk that Apple will reject your app.

这篇关于API来从iTunes下载歌曲到iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆