wmp component in vb.net...
-
Wednesday, April 04, 2007 6:35 PM
i use windows media player cmpnnt.
but how can i get the title or song name of currently playing song?
All Replies
-
Wednesday, April 04, 2007 9:03 PM
Hi Jay, try this:
Dim zArtist As String = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.getItemInfo("Artist")
Dim zTrackTitle As String = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.getItemInfo("Title")
Dim zAlbum As String = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.getItemInfo("Album")
Or use this instead: AxWindowsMediaPlayer1.currentMedia.getItemInfo()
Other attributes that you can get:
http://msdn2.microsoft.com/en-us/library/aa385263.aspx
http://msdn.microsoft.com/.../wmpsdk11/mmp_sdk/kwindowsmediaplayer11sdk.asp -
Thursday, April 05, 2007 6:12 AM
mind blowing ...sir thx.. its working...
Dim zArtist As String = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.getItemInfo("Artist")
Dim zTrackTitle As String = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.getItemInfo("Title")
Dim zAlbum As String = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.getItemInfo("Album")
Or use this instead: AxWindowsMediaPlayer1.currentMedia.getItemInfo()
Other attributes that you can get:
http://msdn2.microsoft.com/en-us/library/aa385263.aspx
http://msdn.microsoft.com/.../wmpsdk11/mmp_sdk/kwindowsmediaplayer11sdk.asp -
Thursday, April 05, 2007 6:16 AMYou're welcome, Jay

-
Wednesday, September 19, 2012 10:52 PM
Why isn't this working for me?
Although the Title returns the correct value, Artist, or Album doesn't return anything...
TsopTsop

