AS3 - 访问iPhone音乐库并返回引用MP3(S)音乐库、iPhone

2023-09-08 13:35:05 作者:沉醉其中

我只是想知道如果任何人对如何从AS3 AIR应用程序?

I was just wondering if anyone had any ideas on how to read the music library on an iPhone from an AS3 Air application?

难道需要一个Adobe本机扩展,或者是有一个更简单的方法来实现这一目标?

Would it require an Adobe Native Extension, or is there a easier way to achieve this?

理想的情况是我想要做的就是弹出手机的音乐播放器,让用户任意选取曲目,专辑或playist,然后返回这些歌曲,我的应用程序添加到自己的播放列表。

Ideally what I'd like to do is just popup the phone's music player, to allow users to pick either a track, album or playist, and then return those songs to my app to add to my own playlist.

(另外,可能是一个单独的问题完全是,我需要做此为Android,Windows和Mac也是如此,如果任何人有最有效的方式任何有用的提示,在所有这些平台接近这一点, d是巨大的AP preciated)。的

在此先感谢,泰德

推荐答案

要访问几乎在iOS或Android的机端什么,保存为相机胶卷,相机,web视图,和视频,你需要一个AIR本机扩展到做到这一点。

To access nearly anything on the native side of iOS or Android, save for the Camera Roll, Camera, WebView, and Video, you need an AIR Native Extension to do it.

有关从设备的库访问音频,您可以使用 SongPicker ANE ,它允许你玩在设备的图书馆,并获得基本的元数据的轨道,虽然它不会给你访问到的歌曲数据本身。

For accessing audio from the device's library, you can use the SongPicker ANE, which allows you to play tracks in the device's library and access basic metadata, although it won't give you access to the song data itself.