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# - I want to make an audio player, How to create audio spectrum in c#

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: and add 3 button to form.  The UI like the following screen

Step 7: In open button click event , add the following code,  You should set FileName property to the filename of your audio file.

private void button1_Click(object sender, EventArgs e)

 {

            axMoviePlayer1.SpectrumVisibleWhenPlayAudio = true;

            axMoviePlayer1.FileName = "c:\\yourfolder\\yourfile.m4a";

 } 

Step 8: In play button click event, add the following code

private void button2_Click(object sender, EventArgs e)

{

            axMoviePlayer1.Play();

}

Step 9: In pause button click event, add the following code

private void button3_Click(object sender, EventArgs e)

{

            axMoviePlayer1.Pause();

 }

 

Step 10: Run the project, you will see the following screen, then click open button,  and then click play button to play the audio file.

Download this audio player with spectrum c# sample source code