Catch media player event

G

Guest

Hi everybody,
I need catch media player library events, as add a new sons or change
attributes. When i modify the library in media player, my external win form
application doesn't catch the events, can you help me?

This is my code:
this.Player.MediaError += new
AxWMPLib._WMPOCXEvents_MediaErrorEventHandler(this.Player_MediaError);

or

this.Player.MediaCollectionChange += new
_WMPCoreEvents_MediaCollectionChangeEventHandler(this.MCHandler);

where Player is the object
AxWMPLib.AxWindowsMediaPlayer Player;

Thanks to all
Danilo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top