【问题标题】:access and modify iTunes library from another application从另一个应用程序访问和修改 iTunes 库
【发布时间】:2017-07-19 20:32:47
【问题描述】:

我想知道是否有任何方法可以访问我的 iTunes 数据(歌曲信息)并修改数据(创建新的(智能)播放列表,将歌曲添加到播放列表,将 cmets 添加到歌曲) iOS 应用?

我基本上是在考虑创建一个可以以自定义方式自动排序和组织我的歌曲的应用程序。

提前致谢!

【问题讨论】:

    标签: ios itunes itunes-sdk


    【解决方案1】:

    在 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 应用程序或编程语言会很有帮助。

    【讨论】:

      猜你喜欢
      • 2012-05-29
      • 1970-01-01
      • 1970-01-01
      • 2021-01-15
      • 2015-10-25
      • 1970-01-01
      • 2011-02-15
      • 1970-01-01
      • 2015-11-09
      相关资源
      最近更新 更多