VideoCap SDK ActiveX

VideoCap SDK ActiveX

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

For Windows Developers who need to video capture SDK for Adobe Director, C++ , C#, , VB, Delphi, VFP, MS Access.

Popular Solution Go   Back

VB.NET - How to preview WebCam and create Audio Spectrum Analyzer

Step 1: To install the VideoCap ActiveX Control, begin by launching the setup file ( Select the desired installation folder for the VideoCap ActiveX and continue with the installation on your development computer.

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

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

Step 4: Select COM Components tab, select VideoCap Control , click OK.

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

Step 6: Add PictureBox, four buttons on form. Like the following picture.

Step 7: add the following code in Start button click event, it will use first video device and audio device, first audio device normally is microphone. if you need set to another video/audio device, you need set device and audio device properties. 

         AxVideoCap1.UseSpectrum = True

        AxVideoCap1.PreviewCaptureAudio = True

        AxVideoCap1.SpectrumOwner = PictureBox1.Handle

        AxVideoCap1.SpectrumWidth = PictureBox1.Width

        AxVideoCap1.SpectrumHeight = PictureBox1.Height


Step 8: add the following code in Change Color button click event.

   AxVideoCap1.SpectrumBarColor1 = Color.Orange

   AxVideoCap1.SpectrumBarColor2 = Color.Red 

Step 9: add the following code in Stereo button click event.

     AxVideoCap1.SpectrumStereo = True

Step 10: add the following code in Mono button click event.

   AxVideoCap1.SpectrumStereo = False

Step 11: Now run the project, click Start button, then click Change Color, Stereo, Mono buttons.

Download the source code of the preview WebCam and create Audio Spectrum Analyzer Sample