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 use VS 2019 C# to playback Karaoke video and remove the vocals

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

Step 2: Launch VS 2019, click Create a new project button, then select Windows Forms App(.NET Framework) for C# option , click Next button.

Step 3: In ToolBar, right click the mouse, select Choose Items... 

Step 4: select COM Components - select MoviePlayer Pro ActiveX.  

 

Step 5: drag the Movie Player Pro ActiveX from toolbar to form and create the UI like the following

Step 6: set the text of txtURL is www.viscomsoft.com/3200/mympeg2.mpg

Step 7: In button1's click event, add the following code, set UsePitchTempo to true, let you can change the pich or tempo features, set UseVolumeBoost, let you can change the left channel (remove the vocals) or right channel.
           
            axMoviePlayer1.UsePitchTempo = true;
            axMoviePlayer1.UseVolumeBoost = true;
            axMoviePlayer1.StreamingAutoPlayAfterBuffered(300);
            axMoviePlayer1.StreamingLoadFromURL(txtURL.Text);
            double iDur = axMoviePlayer1.Duration;
            lbltotaldur.Text = "Duration:" iDur.ToString();

Step 8: In button2's click event, add the following code to play the video

            axMoviePlayer1.StreamingPlay();

Step 9: In button3's click event, add the following code to stop the video

             axMoviePlayer1.StreamingStop();

Step 10: In button4's click event, add the following code to change to left channel  (remove the vocals)

             axMoviePlayer1.VolumeAudioChannel = 0;

Step 11: In button5's click event, add the following code to change to right channel  (enable the vocals)

             axMoviePlayer1.VolumeAudioChannel = 1;

Step 12: In button6's click event, add the following code to change to both channel 

             axMoviePlayer1.VolumeAudioChannel = 2;

Step 13: In Movie Player Pro ActiveX properties windows, add OnStreamingBuffered event. Add the following code



private void AxMoviePlayer1_OnStreamingBuffered(object sender, AxMOVIEPLAYERLib._DMoviePlayerEvents_OnStreamingBufferedEvent e)
{
            txtstreamingbuffer.Text = e.iDownloadPercent.ToString();
}


Step 14: In Movie Player Pro ActiveX properties windows, add OnStreamingStatus event. Add the following code

private void AxMoviePlayer1_OnStreamingStatus(object sender, AxMOVIEPLAYERLib._DMoviePlayerEvents_OnStreamingStatusEvent e)
 {
            txtfilesize.Text = axMoviePlayer1.StreamingGetFileSize().ToString();
}



Step 15: Finally click the Load URL button, after buffered, then click play button


Download the C# to playback Karaoke video and remove the vocals sample source code