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 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.1. From the VideoLab tab of the component palette drop a TVLAVIPlayer component.
3.1. From the VideoLab tab of the component palette drop a TVLImageDisplay control.
3.1. Set the ImageDisplay Control’s Align property to “alClient”:
4.1. Double-click on the VLAVIPlayer1 component on the form:
4.2. Select a file to play, and click “Open”:
5.1. In the VLAVIPlayer1 Properties select OutputPin and click on the button:
5.2. In the connection editor check the InputPin of the VLImageDisplay1 and click OK:
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: