• 0

[VB] Get iTunes info from API etc


Question

hey,

i'm trying to write a plugin at the moment, but i can't find out how to get the currently playing artist name, track title and album name (and maybe some other stuff if thats possible) from iTunes...

is it possible to use the iTunes API or something?

i'm not exactly new to VB, but i have never tried to use an API before...

thanks in advance :yes: :D

ps. i have tried the iTunes SDK and COM things, but they seem to be only for JavaScript or C/C++ :( :no:

Link to comment
https://www.neowin.net/forum/topic/331830-vb-get-itunes-info-from-api-etc/
Share on other sites

8 answers to this question

Recommended Posts

  • 0
  Prism128 said:
hey,

i'm trying to write a plugin at the moment, but i can't find out how to get the currently playing artist name, track title and album name (and maybe some other stuff if thats possible) from iTunes...

is it possible to use the iTunes API or something?

i'm not exactly new to VB, but i have never tried to use an API before...

thanks in advance :yes: :D

ps. i have tried the iTunes SDK and COM things, but they seem to be only for JavaScript or C/C++ :( :no:

586059442[/snapback]

If it's COM, you can use VB. Just add a reference to the COM lib in your project.

  • 0

According to the documentation, :o you create an instance of the iTunesApp class to access other interfaces in the library. iTunesApp is the only externally createable iTunes COM object.

See IiTunes in the documentation.

' Create the app
    Dim iTunes As New iTunesApp
    
    Me.Caption = iTunes.CurrentTrack.Name

  • 0
  weenur said:
According to the documentation,  :o you create an instance of the iTunesApp class to access other interfaces in the library. iTunesApp is the only externally createable iTunes COM object.

See IiTunes in the documentation.

' Create the app
    Dim iTunes As New iTunesApp
    
    Me.Caption = iTunes.CurrentTrack.Name

586060187[/snapback]

OK thanks i'll try this; looks promising! :yes:

What documentation tho?

  yyy said:
Use this: http://www.newjerseyhunter.com/blog/2005/0...nes-with-c.html

I know it's in C# but I don't think it's too hard to convert to VB (especially if you use VB.NET). You need to reference to iTunes 1.2 Type library.

586060191[/snapback]

and if the above doesn't work, i'll give this a try... but it looks pretty daunting... i don't do VB.net.. just VB6 :no:

Thanks to both of you :D

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.