Windows Media Player
Hi
I am looking to create a C# windows forms application that embeds four media player controls on the page in a square like the crude diagram below.
X X
X X
I have a multi-screen presentation that runs as 4 mpg 1 on each media player object.
The problem i have is running them in sync so that images appear to float from one player to another easily.
Has anybody had any experience in this or advice.
Thanks in advance
Anthony
Ebin RoyPosted Jul 20, 2007, 11:30 AM
Scott LyslePosted Apr 20, 2007, 2:12 AM
public
partial class Form1 : Form{ private int timerTime = 0; public Form1()
{
InitializeComponent();
} private void Form1_Load(object sender, EventArgs e)
{
axWindowsMediaPlayer1.Ctlcontrols.stop();
axWindowsMediaPlayer2.Ctlcontrols.stop();
timer1.Enabled = true;
} private void timer1_Tick(object sender, EventArgs e)
{
timerTime += 1; switch (timerTime)
{
case 2:
axWindowsMediaPlayer1.Ctlcontrols.play();
break;
case 6:
axWindowsMediaPlayer2.Ctlcontrols.play();
break;
default:
break;
}
}
}