Write a video player application with VideoLab using Delphi or C++ Builder


This is a step by step tutorial for writing a simple video player in Delphi or C++ Builder VCL by using VideoLab. The steps are exactly identical in Delphi or C++ Builder versions 5 to 2007.

There is no code writing necessary to complete this application.

There is no need to know Delphi or C++ in order to create this application.

The steps bellow are captured using Delphi 2007, however they are identical in C++ Builder and older versions of the products.



The tutorial covers the following steps, which should take less than two minutes:

1. Add an TVLAVIPlayer Component to Your Application's Form:

1.1. From the VideoLab tab of the component palette drop a VLAVIPlayer TVLAVIPlayer component.

2. Add an TVLImageDisplay Control to Your Application's Form:

3.1. From the VideoLab tab of the component palette drop a VLImageDisplay TVLImageDisplay control.

3. Set the TVLImageDisplay Control's Properties:

3.1. Set the ImageDisplay Control’s Align property to “alClient”:


4. Select file to play in the VLAVIPlayer1 Component:

4.1. Double-click on the VLAVIPlayer1 component on the form:


4.2. Select a file to play, and click “Open”:


5. Connect the VLAVIPlayer.OutputPin to VLImageDisplay.InputPin:

5.1. In the VLAVIPlayer1 Properties select OutputPin and click on the DottedButton button:


5.2. In the connection editor check the InputPin of the VLImageDisplay1 and click OK:


6. Run the Application:

9.1 Press (F9) to run the application. You should see the video playing:


Here is a diagram of the OpenWire connections in this application: