I want to use the IEViewer control first for video record and after this for video play. But after i called this "Viewer.DirectShow.SetVideoInput(1, 0);" i'm not able to play video on this IEViewer (it behaives like in record mode from camera). Could you help me please? This is my code.
public void StartVideoRecord()
{
if(Viewer.DirectShow.Connected)
Viewer.DirectShow.Disconnect();
Viewer.VideoCaptureShowVideo = false;
Viewer.DirectShow.FileInput = String.Empty;
Viewer.DirectShow.FileOutput = videoFileName;
Viewer.DirectShow.SetVideoInput(1, 0);
if (!Viewer.DirectShow.Connected)
{
Viewer.DirectShow.Connect();
}
Viewer.DirectShow.Run();
}
public void StopVideoRecord()
{
if (Viewer.DirectShow.Connected)
{
Viewer.DirectShow.Stop();
Viewer.DirectShow.Disconnect();
}
OpenVideo();
}
public void OpenVideo()
{
if (Viewer.DirectShow.Connected)
{
Viewer.DirectShow.Stop();
Viewer.DirectShow.Disconnect();
}
Viewer.DirectShow.FileOutput = String.Empty;
Viewer.DirectShow.FileInput = videoFileName;
Viewer.VideoCaptureShowVideo = true;
if (!Viewer.DirectShow.Connected)
{
Viewer.DirectShow.Connect();
}
}