C# iTunesLib com: AlbumArtist member not accessible with intellisense

181 Views Asked by At

I am using the iTunesLib V1.13 in C#. I can read the current playing track just fine together with its Artist, Album, TrackName, Duration, etc.. properties. But I can't read the 'AlbumArtist' property. Even though it shows up while debugging:

enter image description here

But I can't seem to access it in code...

enter image description here

It also does not show up in the metadata of the interface IITTrack, but I don't understand why I see it when I debug...

1

There are 1 best solutions below

0
HaveSpacesuit On BEST ANSWER

You can access it by casting the track to a dynamic type in C#.

iTunesAppClass iTunesApp = new iTunesAppClass();
dynamic track = iTunesApp.CurrentTrack;
string albumArtist = track.AlbumArtist;