Create a RealPlayer player with Delphi

xiaoxiao2021-03-06  20

First, a RealPlayer Plus player must be installed in the machine because we have to use the ActiveX controls they own. First, we have to import the required ActiveX control in Delphi. Click on the menu "Component → Import ActiveX Control ..." Open the Import ActiveX dialog box. In the Import ActiveX list box, we can see all registered AxctiveX controls in Windows. Select "RealPlayer ActiveX Control Library" control. Then click the "Install" button. Then, return to the main interface of the Delphi, found that a component called Reaudio is added to the ActiveX tab in the VCL panel. Put it in the form. However, in the default, the Reaudio component has no video playback window, which is only to play sound. At this time we can add the following code in the Reaudio component's Controls property: ImageWindow, ControlPanel, Statusbar where: imagewindow, controlpanel, statusbar represent the display video play window, the control strip.

转载请注明原文地址:https://www.9cbs.com/read-40150.html

New Post(0)