using AxWMPLib; using WMPLib;
public static AxWMPLib.AxWindowsMediaPlayer wplayer = new AxWMPLib.AxWindowsMediaPlayer(); public static WMPLib.WindowsMediaPlayer wplayer_1 = new WMPLib.WindowsMediaPlayer();
//state changed event handler wplayer_1.PlayStateChange += new WMPLib._WMPOCXEvents_PlayStateChangeEventHandler((NewState) => wplayer_playstate_change(NewState, media, playlist));
wplayer.PlayStateChange += new AxWMPLib._WMPOCXEvents_PlayStateChangeEventHandler((NewState) => wplayer_playstate_change(NewState,media,playlist));
private void wplayer_playstate_change(int NewState, OmnisignMedia media, IEnumerable<OmnisignMedia> partialList) { }
Are you aware that the delegate for AxWMPLib (Activex Control Wrapper) player_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e). So you might have to rewrite your code accordingly.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)