从另一个应用程序访问和修改iTunes库
问题描述:
我想知道是否有任何方法可以访问我的iTunes数据(歌曲信息)并修改数据(创建新的(智能)播放列表,将歌曲添加到播放列表,从另一个iOS应用程序添加评论到歌曲)?从另一个应用程序访问和修改iTunes库
我基本上想创建一个应用程序,可以自定义的方式自动排序和组织我的歌曲。
提前致谢!
答
下面是在C#中如何:
// initialize Itunes connection
iTunesApp itunes = new iTunesLib.iTunesApp();
private void Form1_Load(object sender, EventArgs e)
{
// get main library playlist
ITLibraryPlaylist mainLibrary = itunes.LibraryPlaylist;
// Gets a list of all playlists and adds them to the combo box
foreach (ITPlaylist pl in itunes.LibrarySource.Playlists)
{
comboBox1.Items.Add(pl.Name);
}
// Gets the tracks within the mainlibrary
GetTracks((ITPlaylist)mainLibrary);
// Sets the datagridview1 data source to the data table.
dataGridView1.DataSource = dataTable1;
}
这将有助于了解你想要使用什么样的iOS应用程序或编程语言。