logo

accessing media player library in vb.net to get list of photo's wi

Rodling83643 posted on Wednesday, November 18, 2009 7:54 PM

using vb.net and accessing the media player library I can not figure out how
to access a list of photos with a perticular keyword like MP does in keyword
list.  The data I am after is already in the media player Library and I am
tring to find the VB.NET commands to access it. Media player keeps a list of
pictures that match a perticular keyword in its library. In media player
select picture-Libray-Keyword to see the list of boat pitures or Moms
pictures... Using Vb.net media player object access coding I am trying to
gain access to this list just like it lets me access playlist and pictures.
Playlist code is below as an example of the type of access I am using. This
was just test code to prove the access work to look at objects in the debuger.



Private



Sub play_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles play.Click




Dim MyList As IWMPPlaylistArray




Dim PlList As IWMPPlaylist

Player.currentPlaylist = Player.mediaCollection.getByName(



MyList = Player.playlistCollection.getAll




For x = 0 To 25

PlList = MyList.Item(x)




Next x




End Sub
reply


The photo-specific metadata attributes available are :http://msdn.microsoft.

Neil Smith [MVP Digital Media] replied to Rodling83643 on Sunday, November 29, 2009 8:37 AM

The photo-specific metadata attributes available are :
http://msdn.microsoft.com/en-us/library/dd563997.aspx

In the overall list there is no specific Keywords attribute though.

There is a Tags feature, which is part of Vistas version of windows
explorer, not of media player :

http://windows.microsoft.com/en-US/windows-vista/Tag-pictures-so-theyre-easier-to-find
http://windowsitpro.com/article/articleid/95691/what-tags-can-i-use-to-search-in-windows-explorer.html

HTH
Cheers - Neil


------------------------------------------------
Digital Media MVP : 2004-2009
http://mvp.support.microsoft.com/mvpfaqs
reply


Didn't Find The Answer You Were Looking For?

View Windows Media SDK Posts   Ask A New Question

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Create Account & Ask Question In Live Forum

Previous Windows Media SDK conversation.

Multimedia Windows Media    Windows Media Center    Windows Media    Windows Media Encoder    Windows Media SDK    Win32 Multimedia    Windows Media Center Digital   




  $1000    Adam Houldsworth - $181  |  Jonathan VH - $157  |  Kirtan Patel - $125  |  F Cali - $98  |  Mr. Khan - $92  |  more Neado  |  Free Icons  |  Privacy  |   (c) 2010