I'm trying to retrieve a list of all artists in the media collection using
the getAttributeStringCollection call. Sounds fairly simple but here what I
see:
Calling with the parameters "artist", "audio" gets a list of most of the
Contributing Artist collection -- not the same set as the album artist
collection. Which is odd because the docs don't mention Contributing Artist
anywhere.
Calling with the parameters "author", "audio" gets a different subset of
Contributing Artist collection -- still not what I need and is odd because
artist and author are aliases.
Calling with the parameters "AlbumArtist", "audio" gets a list with 150
blank entries and 100 artists that may be some subset of either the
Contributing Artist or Album Artist -- hard to tell.
Calling with the parameters "AlbumIDAlbumArtist" ", "audio" gets a list that
isn't usable -- most of the album names have no artist appended.
So I'm in a quandary here -- what do I need to do to get a list that
represents the Album Artist list??
TIA
Mike P
Take a clean user and run against the default -- looks like:
- AlbumArtist looks fine
09:08:45:234[2444][3968] Artist Name 0 = New Stories
09:08:45:234[2444][3968] Artist Name 1 = Seattle Symphony Orchestra
Now add some albums from a folder and it looks like:
10:09:10:203[3204][2236] Album Name = 2 Years On
10:09:10:203[3204][2236] Album Name = Bad Love
10:09:10:218[3204][2236] Album Name = Beethoven's Symphony No. 9 (Scherzo)
10:09:10:218[3204][2236] Album Name = Blues For Thought
10:09:10:234[3204][2236] Album Name = Boomer's Story
10:09:10:234[3204][2236] Album Name = Bring Em In
10:09:10:250[3204][2236] Album Name = Carolina Dreams
10:09:10:250[3204][2236] Album Name = Chrome, Smoke & BBQ Disc 1
10:09:10:250[3204][2236] Album Name = Cucumber Castle
10:09:10:265[3204][2236] Album Name = High Civilization
10:09:10:265[3204][2236] Album Name = John Wesley Harding
10:09:10:281[3204][2236] Album Name = A Kick In The Head Is Worth Eight In
The Pants
10:09:10:281[3204][2236] Album Name = No Foolin'
10:09:10:281[3204][2236] Album Name = Rhythm & Groove
10:09:10:296[3204][2236] Album Name = Right As Rain
10:09:10:296[3204][2236] Album Name = Single 1967 Jun/Jul B-Side
10:09:10:312[3204][2236] Album Name = Smokin' O.P.s
10:09:10:312[3204][2236] Album Name = Speakin' Out
10:09:10:328[3204][2236] Album Name = Trio
10:09:10:328[3204][2236] Album Name = Trio II
10:09:10:328[3204][2236] 20 Album Names Loaded in 141 ms
10:09:10:344[3204][2236] l_spMediaCollection->getAttributeStringCollection
using AlbumArtist with audio
10:09:11:968[3204][2236] Artist Name 1 =
10:09:11:968[3204][2236] Artist Name 2 =
10:09:11:968[3204][2236] Artist Name 3 =
10:09:11:984[3204][2236] Artist Name 4 =
10:09:11:984[3204][2236] Artist Name 5 =
10:09:12: 0[3204][2236] Artist Name 6 =
10:09:12: 0[3204][2236] Artist Name 7 = The Bee Gees
10:09:12: 0[3204][2236] Artist Name 8 = The Bee Gees
10:09:12: 15[3204][2236] Artist Name 9 = Bob Dylan
10:09:12: 15[3204][2236] Artist Name 10 = Bob Seger
10:09:12: 31[3204][2236] Artist Name 11 = The Marshall Tucker Band
10:09:12: 31[3204][2236] Artist Name 12 = New Stories
10:09:12: 46[3204][2236] Artist Name 13 = Randy Newman
10:09:12: 46[3204][2236] Artist Name 14 = Seattle Symphony Orchestra
10:09:12: 46[3204][2236] Artist Name 15 = Terry Evans
10:09:12: 62[3204][2236] Artist Name 16 = Tommy Castro
10:09:12: 62[3204][2236] Artist Name 17 = Tommy Castro
10:09:12: 78[3204][2236] Artist Name 18 = The Trio
10:09:12: 78[3204][2236] Artist Name 19 = The Trio
But The Media Player is displaying the Artists with their associated albums
just fine. Windows XP Sp2 with Media Player 10.00.00.3802. I'm thinking that
this is a Media Player problem. Can anyone confirm this????
Thanks,
Mike P
"Mikep" <mi...@NOSPAMturboware.com> wrote in message
news:uu9uql7J...@TK2MSFTNGP15.phx.gbl...
Could you compile it and run it on the same computer to see how the UI in
the sample behaves? Does it reproduce the issue you're seeing?
Thanks,
--
Jim Travis
Microsoft Corp.
Windows Media Player SDK
Download:
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/winmedia.asp
Latest online:
http://msdn.microsoft.com/library/en-us/wmplay10/mmp_sdk/windowsmediaplayer10sdk.asp
Please do not send email directly to this alias as this alias is for
newsgroup purposes only. This posting is provided "AS IS" with no
warranties, and confers no rights. You assume all risk for your use. © 2006
Microsoft Corporation. All rights reserved.
Hey, thanks for the follow-up --- here's the code from the WMPML sample:
// Now we add artist, album and genre nodes
hr = ShowStringCollection(
AddNode(_T("Artist"), TREE_MUSIC_ARTIST, m_hAllMusicNode),
//TREE_MUSIC_ARTISTITEM, _T("Artist"), _T("Audio"));
TREE_MUSIC_ARTISTITEM, _T("AlbumArtist"), _T("Audio"));
The commented out line is the original and it retrieves the list of
contributing artists in WMPML. Note that this isn't always apparent because
a small library might have the same album artists as contributing artists.
But as you add to the library, the lists may diverge.
The uncommented line the same as the code I was using attempting to retrieve
the album artists and the results were the same as mine -- lots of entries
for 'Unknown'. I tried it on 2 boxes with the same results.
An interesting side note is that on a box with the default installation (2
albums and artists) retrieving the album artists works as expected.
Thanks Again,
Mike P (who would be happy to email you screen shots)
"Jim Travis [ms]" <JimTr...@discussions.microsoft.com> wrote in message
news:389E8DE0-CE9B-4CE4...@microsoft.com...