

Lets take a walk through the import wizard for ActiveX components.įrom the “Component” menu in your IDE, select “Import Component”Īs we’re importing this component for Delphi, select the “VCL for Delphi Win32” option from the next page on the wizard and click “Next” *Note: I’ll be using screen shots to describe the component import wizard and to show you how to set the search path in the project options window, but from there on I assume you are familiar enough with the IDE to set properties, event handlers and so on. Many components of the windows system are available in ActiveX form, including the web browser which Delphi wraps as it’s TWebBrowser component for VCL, and the Windows Media Player component. Regardless of what it’s called, it’s a technology for turning some technologies into components, and provides a language agnostic interface to those components. Note that ActiveX has been known as COM, COM+, OLE and possibly other names over the years, Microsoft doesn’t seem to have been able to settle on a name for this technology. In this post, I’m going to show you how to import and make use of the Windows Media Player using Delphi.įor as long as I can remember, certainly as far back as Delphi 5 if not earlier versions, the RAD Studio IDE has had an import wizard built in which allows you to import ActiveX components. There is however an alternative component for Windows, the Microsoft Windows Media Player ActiveX component. This component remains in Delphi for the sake of compatibility with older versions, but is quite out-dated and, due to a decreasing number of compatible codecs, it is becoming difficult to maintain. Delphi ships with a component ‘TMediaPlayer’ for playing media files such as video and audio.
