events triggered by WMP playback time?

mukiwa

New member
Joined
Nov 14, 2007
Messages
3
Programming Experience
Beginner
I am developing an application using windows forms.
I have a WMP object on my form.
Right now, all it does is plays an mp3.

I want to implement a sort of animation (for lack of a better word).
I want to change properties of certain text boxes on the form depending on the current playback time.

For example, imagine something like a karaoke ball bouncing along the lyrics, but done by changing font, for example.
For my purposes, each word of those lyrics must be a separate text box.
I am trying to develop a teaching tool, and this would help greatly.

So far, I haven't found a property for the player that lets me execute events based on the playback time.

Notes: I'm using vs2008, using vb to program windows forms. However, I've been trying to switch to asp.net. I know that's a different forum, but if it sounds like what I'm trying to do would be easier using asp.net, please say so.

Thanks.
Kevin
 
Have a read about "markers" in this old article Inserting Markers in Digital Media Content. The "Advanced Script Indexer" tool they mention for inserting markers in media was replaced with "Windows Media File Editor" in WME9 and is compatible with .wma .wmv and .asf files. WMP has the MarkerHit event to catch these markers during playback.
 
Back
Top