- Code: Select all
private void button4_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog1 = new OpenFileDialog();
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
FileVideoSource videoSource = new FileVideoSource(openFileDialog1.FileName);
videoSourcePlayer1.VideoSource = videoSource;
}
}
private void button5_Click(object sender, EventArgs e)
{
videoSourcePlayer1.Start();
}
I have already tested the tracking on a webcam and the code works perfectly. But when I tried loading a video the videosourceplayer won't even play it.