axmediaplayer and e.newState [modified]
-
I have used the following code in my media player for several years now and have incurred no problems. I recently updated to Mediaplayer 11 and this code is no longer recognized.
private void player_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e)
{if (e.newState == 8 || e.newState == 1) { //MessageBox.Show("-----------"); // for testing this.WMPlayer.Size = new System.Drawing.Size(325, 64); } if (e.newState == 8) { //MessageBox.Show("-----------"); // for testing timer3.Interval = 5000; timer3.Enabled = true; // This timer plays the next selection } }
Does anyone have an explanation and solution? Complete source code that works under Mediaplayer 10 is available from my web site: http://electriac.googlepages.com/wmplayer.exe[^]
modified on Tuesday, August 19, 2008 4:57 PM
-
I have used the following code in my media player for several years now and have incurred no problems. I recently updated to Mediaplayer 11 and this code is no longer recognized.
private void player_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e)
{if (e.newState == 8 || e.newState == 1) { //MessageBox.Show("-----------"); // for testing this.WMPlayer.Size = new System.Drawing.Size(325, 64); } if (e.newState == 8) { //MessageBox.Show("-----------"); // for testing timer3.Interval = 5000; timer3.Enabled = true; // This timer plays the next selection } }
Does anyone have an explanation and solution? Complete source code that works under Mediaplayer 10 is available from my web site: http://electriac.googlepages.com/wmplayer.exe[^]
modified on Tuesday, August 19, 2008 4:57 PM