2017-07-19 91 views
0

我想知道是否有任何方法可以訪問我的iTunes數據(歌曲信息)並修改數據(創建新的(智能)播放列表,將歌曲添加到播放列表,從另一個iOS應用程序添加評論到歌曲)?從另一個應用程序訪問和修改iTunes庫

我基本上想創建一個應用程序,可以自定義的方式自動排序和組織我的歌曲。

提前致謝!

回答

0

下面是在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應用程序或編程語言。

相關問題