다음을 통해 공유


Apple ITunes SDK supports C#

"Apple's SDK enables Windows developers to write code to control iTunes from other applications. These tools require iTunes 4.5 or later and support several languages, including C++, C# and JavaScript."

News Source: https://www.macnewsworld.com/story/34235.html
SDK Link: https://developer.apple.com/SDK/#iTunesCOM

Sweet!

Comments

  • Anonymous
    June 08, 2004
    C# is supported via COM Interop. There's no managed interfaces (as you would expect from Apple) and its slow to enumerate the collections :(
  • Anonymous
    June 08, 2004
    I have some samples at http://blogs.msdn.com/dancre/archive/2004/05/08/128645.aspx
  • Anonymous
    June 08, 2004
    I think they were just refering to the musical note, not the computer language. I think they are contractually obligated by the RIAA to support all standard notes and chords. Sure, most musicians avoid using B-flat but you still gotta have it for backward compatibility.
  • Anonymous
    June 08, 2004
    Apple ITunes SDK supports C#
  • Anonymous
    September 15, 2005
    how would i in C# make it show the current songs its ploaying....?
  • Anonymous
    September 16, 2005
    How would i rerad theitunes db and then populate a listbox with these songs?
  • Anonymous
    September 18, 2005
    Check out Dan Crevier's post that shows how to work with iTunes using C#

    http://blogs.msdn.com/dancre/archive/2004/05/08/128645.aspx
  • Anonymous
    September 20, 2005
    The comment has been removed
  • Anonymous
    September 20, 2005
    The comment has been removed
  • Anonymous
    October 20, 2005
    The comment has been removed
  • Anonymous
    November 21, 2005
    So i heard there was a way to use the SDK and C# to get songs album art....Do you know how . Do you know of any exapmles?
  • Anonymous
    January 13, 2006
    How about adding tracks to the iTunes main Library or to an iPod? The SDK doesn't seem to allow that, even with casting of the IITPlaylist to an IITUserPlaylist or IITLibraryPlaylist... iTunes throws an exception.

    Did Apple intentionally block the ability to add tracks to those playlists?
  • Anonymous
    April 09, 2006
    Hi,

    Wrote an application in C# with .Net framework 2.0 using this API. The application keeps syncs the tracks (and their information) in my MediaPlayer and iTunes database. Tracks that are in MediaPlayer but not in iTunes are automatically added and converted with the artwork for the album. Track information of existing tracks that has been modified in iTunes or MediaPlayer is synced as well.

    Both the MediaPlayer and iTunes SDK have their quircks that I've tried to solve in a wrapper library for both. As far as possible the programming model for both is more consistent.

    Somethings to be aware of:
    -When adding a track to iTunes it may be pretty hard to get a reference to that track in order to do things like setting the artwork.
    -In my wrapper classes I've implemented the Dispose pattern. When loading many tracks the garbage collector may need some help with so many COM-interopped instances (reduce memory requirements by 75% in my case)
    -When your app is running, DON'T even think about doing anything in the iTunes application that pops up. It will certainly crach the app.

    Have fun, (I did)
    Cheers,
    Arie (aleeuwesteyn@hotmail.com)
  • Anonymous
    April 19, 2006
    I have written a library for parsing the iTunes db in C#, if you use it, please give me some feedback or any problems you had.  Here's the link.

    http://www.itunessdk.com/blog/itunesdb-library/
  • Anonymous
    February 17, 2007
    I want to make a program for apple products which extracts the midi of the mp3 or cd  and harmonize it like jaco pastorius and than play with itunes or quicktime midi synthesizer which i added my fretless fender jazz bass samples. How can I do it ? Whenever you play a sweet jazz song , jaco will accompany it. Mustafa Umut Sarac mustafaumutsarac@gmail.com