Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: Get Currently Playing Track info in WMP 11

HTVi
TV Discussion Newsgroups

Get Currently Playing Track info in WMP 11
"Scott Heimendinger [MS]" <scotthei[ at ]microsoft.com> 5/10/2007 5:37:41 PM
I've posted this question before, but I haven't yet gotten a response. How
can I get the "Now Playing" information (artist, title, etc) from a
standalone instance of WMP11 in an external project? I've read through all
of the MSDN documentation and it does not address getting this info from a
..NET project. I've read through other projects that can find the WMP window
and _send_ commands to it, but I've yet to see anything that will actually
read data from the player.

I tried using the blogging plugin, but it isn't supported on Vista.

Thanks in advance,
Scott

Re: Get Currently Playing Track info in WMP 11
"AUGE_OHR" <AUGE_OHR_NOSPAM_[ at ]CSI.COM> 5/10/2007 11:29:35 PM
hi,

[Quoted Text]
> can I get the "Now Playing" information (artist, title, etc) from a

try :attributeCount() with :getAttributeName() / getItemInfo()

greetings by OHR
Jimmy
*** snip ***
/*
Xbase++ (Clipper) code for WMP 9/10
!!! does only work if "media" is load in Playlist and "playing"
*/
nCount := oWMP:currentPlaylist:count
// are there some item in Playlist
IF nCount > 0
// get current item (SDK 9/10)
oItem := oWMP:controls:currentitem()
// get number of attribute
jMax := oItem:attributeCount()
FOR j = 0 TO jMax-1
// 1st get name
cName := oItem:getAttributeName(j)
// now use the name to get value info
cValue := oItem:getItemInfo(cName)
// display it
? cName , cValue
NEXT
ENDIF
*** eof ***


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen