Walk Artists/Albums trees like Media Player does?
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Walk Artists/Albums trees like Media Player does?

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK
Author Message
Gregory Hassett
Guest





Posted: Tue Dec 20, 2005 9:30 pm    Post subject: Walk Artists/Albums trees like Media Player does? Reply with quote

Hello,

Can I easily extract a list of all (unique) artists that are present in a
media library using the Media Player SDK?
I can brute-force this by walking all the songs (tracks) in the library and
building a list of unique artists... but I wonder if there's any easier way?
I would like to do the same thing for albums, as well, much as the tree
control in the Windows Media Player does it.

Help is appreciated!

// greg //

Back to top
Neil Smith [MVP Digital M
Guest





Posted: Tue Dec 20, 2005 9:30 pm    Post subject: Re: Walk Artists/Albums trees like Media Player does? Reply with quote

On Tue, 20 Dec 2005 12:49:41 -0500, "Gregory Hassett"
<ghassett@hotmail.com> wrote:

Quote:
Hello,

Can I easily extract a list of all (unique) artists that are present in a
media library using the Media Player SDK?
I can brute-force this by walking all the songs (tracks) in the library and
building a list of unique artists... but I wonder if there's any easier way?
I would like to do the same thing for albums, as well, much as the tree
control in the Windows Media Player does it.

Not as far as I'm aware. Until the WMP team sees fit to provide an XML
interface to the library (where you could just have an XSL and use
xsl:key and xsl:generate-id to group the artists), you'll have to
brute force it - and the database is dog slow I'm afraid.

Cheers - Neil
Back to top
Gregory Hassett
Guest





Posted: Tue Dec 20, 2005 9:30 pm    Post subject: Re: Walk Artists/Albums trees like Media Player does? Reply with quote

Thank you for your help, Neil -- I will stop driving myself insane looking
for a "documented" way to do this.

// greg //

"Neil Smith [MVP Digital Media]" <neil@nospam.com> wrote in message
news:s8kgq1pa620ou89gscokf6p4iufuciia9h@4ax.com...
Quote:
On Tue, 20 Dec 2005 12:49:41 -0500, "Gregory Hassett"
ghassett@hotmail.com> wrote:

Hello,

Can I easily extract a list of all (unique) artists that are present in a
media library using the Media Player SDK?
I can brute-force this by walking all the songs (tracks) in the library
and
building a list of unique artists... but I wonder if there's any easier
way?
I would like to do the same thing for albums, as well, much as the tree
control in the Windows Media Player does it.

Not as far as I'm aware. Until the WMP team sees fit to provide an XML
interface to the library (where you could just have an XSL and use
xsl:key and xsl:generate-id to group the artists), you'll have to
brute force it - and the database is dog slow I'm afraid.

Cheers - Neil


Back to top
JD
Guest





Posted: Tue Dec 20, 2005 9:30 pm    Post subject: Re: Walk Artists/Albums trees like Media Player does? Reply with quote

No, don't stop looking!! -- Try asking the media library for a string
collection with either an album or artist attribute.... It does what you
want. I've already done the same head banging---

Mike P

"Gregory Hassett" <ghassett@hotmail.com> wrote in message
news:uAg$UxZBGHA.3396@tk2msftngp13.phx.gbl...
Quote:
Thank you for your help, Neil -- I will stop driving myself insane looking
for a "documented" way to do this.

// greg //

"Neil Smith [MVP Digital Media]" <neil@nospam.com> wrote in message
news:s8kgq1pa620ou89gscokf6p4iufuciia9h@4ax.com...
On Tue, 20 Dec 2005 12:49:41 -0500, "Gregory Hassett"
ghassett@hotmail.com> wrote:

Hello,

Can I easily extract a list of all (unique) artists that are present in
a
media library using the Media Player SDK?
I can brute-force this by walking all the songs (tracks) in the library
and
building a list of unique artists... but I wonder if there's any easier
way?
I would like to do the same thing for albums, as well, much as the tree
control in the Windows Media Player does it.

Not as far as I'm aware. Until the WMP team sees fit to provide an XML
interface to the library (where you could just have an XSL and use
xsl:key and xsl:generate-id to group the artists), you'll have to
brute force it - and the database is dog slow I'm afraid.

Cheers - Neil

Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB