Windows Develop Bookmark and Share   
 index > Windows Forms General > getting track info from axmediaplayer
 

getting track info from axmediaplayer

I would like to know how to retrieve track information for media files. Right now, i have the following code to do this.. but its delayed and doesnt give info for the current song, but the previous one played.
label1.Text = axMp3P1.GetTagInfo(0);
label2.Text = axMp3P1.GetTagInfo(1);
label3.Text = axMp3P1.GetTagInfo(2);
label4.Text = axMp3P1.GetTagInfo(3);
label5.Text = axMp3P1.GetTagInfo(4);
label6.Text = axMp3P1.GetTagInfo(5);
label7.Text = axMp3P1.GetTagInfo(6);
because i want the media to be played with axWindowsMediaPlayer, and not axMp3P1, i use this code to stop axMP3P1
axMp3P1.Play();
AxMp3P1.Stop();
so that i get track info but it plays on axWindowsMediaPlayer. Any ideas of how to do this with just axWindowsMediaPlayer??
grr grr grr  Thursday, May 24, 2007 7:08 PM
I know that people out there know how to help me, its frustrating when they don't. I have seen similar posts to this, but they weren't exactly what I was looking for (they involved Media Player SDK, which I will only use if there is no other alternative, and sdk 11 isnt downloadable, unless you want the 1.1 GB Windows SDK.)
Link9228  Friday, May 25, 2007 6:41 PM
O btw.. incase of confusion, I wasnt paying attention and replied myself on my other login name, I accidentally made two.. anyways grr grr grr and Link9228 are one in the same, that is all.

o and..
i still need help..
I can only do basic stuff in c# atm, i have recently come from basic.
grr grr grr  Friday, May 25, 2007 11:53 PM
Forums Moderator, you can delete this post, as no one is replying.

thanks

grr grr grr  Sunday, May 27, 2007 6:17 PM

You can use google to search for other answers

Custom Search

More Threads

• Drag&Drop
• CheckedListBox selct all items...
• listen to shortcut key
• ComboBox Sorting Bug
• detect/copy text
• Mixed application console/windows.forms??
• System.IO.File / FileStream
• this.MdiParent keeps coming up null?
• TabControl: Custom TabPageCollection?
• I've asked my question the wrong way