First, the RealPlayer plus player must be installed on the machine, because we need to use its own ActiveX control.
First, we need to import the required ActiveX control in Delphi. Click "component → import ActiveX Control..." to open the "Import ActiveX" dialog box. In the "Import ActiveX" list box, we can see all registered axctivex controls in windows. Select the "RealPlayer ActiveX control library (version 1.0)" control. Click "Install.
Return to the main interface of Delphi and find that a component named RealAudio is added to the ActiveX tag of the VCL panel. Put it in the form. However, by default, the RealAudio component does not have a video playing window, that is, it can only play a sound. In this case, you can add the following to the CONTROLS attribute of the RealAudio component:Code: Imagewindow, controlpanel, statusbar
Imagewindow, controlpanel, and statusbar indicate the video playback window and control bar status respectively.