访问iPhone音乐库 [英] Access to iPhone music library

查看:99
本文介绍了访问iPhone音乐库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算开发一种可以从音乐库加载音乐的DJ应用程序。
当然它会在应用程序商店中销售。

I'm planning to develop kind of DJ application which loads musics from music library. And of course it'll sell in app store.

所以问题是,是否可以在AppStore中分发?

So question is, does it possible distribute in AppStore?

我发现它至少在6个月前被禁止了...
但是我希望现在可以... ...

I found it was forbidden at least about 6 month ago... But I hope it is possible now...

推荐答案

在iPhone OS 2.x中,您无法通过iTunes访问传输到手机的音乐。您只能访问自己的应用程序创建的数据。

In iPhone OS 2.x you can't access the music transferred to the phone via iTunes. You only have access to the data created by your own application.

即将推出的3.0版本确实具备此功能。 发行说明包含此

The forthcoming version 3.0 does have this capability. Release notes include this


iPod库访问

几个新的类和协议已将
添加到Media Player
框架(MediaPlayer.framework)到
允许访问用户的音频
库。您可以使用这些类来
执行以下任务:

Several new classes and protocols have been added to the Media Player framework (MediaPlayer.framework) to allow access to the user’s audio library. You can use these classes to perform the following tasks:


  • 播放用户库中的音频项目。此支持允许您播放
    iPod
    应用程序支持的所有音频类型。

  • 构建要播放的音频项目队列。

  • 执行用户音频库的搜索。

  • 访问用户的播放列表(包括智能,移动和
    天才播放列表)。

  • Play audio items from the user’s library. This support lets you play all audio types supported by the iPod application.
  • Construct queues of audio items to play back.
  • Perform searches of the user’s audio library.
  • Access the user’s playlists (including smart, on-the-go, and genius playlists).

有关Media Player框架的
类的更多信息,请参阅
媒体播放器框架参考

For more information about the classes of the Media Player framework, see Media Player Framework Reference.

(对不起,链接可能仅适用于已注册的Apple开发人员)。

这篇关于访问iPhone音乐库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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