Movie Player Pro SDK ActiveX

Movie Player Pro SDK ActiveX

Platform : Windows 10, Windows 8, Vista, Windows 7, XP

It is a Windows Media Player SDK that support change playback rate, draw overlay image, swf file and text with C# , VB.NET , C++ , VB, Delphi, Vfp, Ms Access.

Popular Solution Go   Back

C# - How to play video step frame by frame from MP4 file

Step 1: To install the Movie Player Pro SDK ActiveX Control, begin by launching the setup file (http://www.viscomsoft.com/demo/movieplayerprosetup.exe). Select the desired installation folder for the Movie Player Pro ActiveX and continue with the installation on your development computer.

Step 2: Create New Visual C# Project, select Windows Application. 

Step 3: The next step is to install Movie Player Pro ActiveX in ToolBox. Select Toolbox, select Components item, right click mouse button, select Choose Items...


Step 4: Select COM Components tab, select Movie Player Pro ActiveX Control , click OK.

Step 5: Now you will see the Movie Player Pro ActiveX's icon on toolbox, drag it to form. 

Step 6: Add 3 buttons on form.  



In button1, change Text property to "Select Video File"

In button2, change Text property to "Step Forward"

In button3, change Text property to "Step backward"

In button4, change Text property to "Play"

Step 7: Add the following code in button1 click event. It allow select the MP4 video and play it.

 using (OpenFileDialog ofd = new OpenFileDialog())

            {

                ofd.Filter = "All Files (*.*)|*.*|mp4 (*.mp4)|*.mp4";

                if (ofd.ShowDialog(this) == DialogResult.OK)

                {

                    this.axMoviePlayer1.FileName = ofd.FileName;

                    this.axMoviePlayer1.Play();

                }

            }

Step 8: Add the following code in button2 click event. It allow step frame forward.

 axMoviePlayer1.StepFramePro(false);


Step 9: Add the following code in button3 click event. It allow step frame backward.

 axMoviePlayer1.StepFramePro(true);


Step 10: Add the following code in button4 click event. It allow play the video again.

 axMoviePlayer1.Play();

Download this sample source code.