
The compiler generates all the run-time magic for you, but the downside is that the compiler isn't able to help you in finding the names of methods or properties at design time. References to objects are stored as dispinterfaces in variants and the methods and properties of the objects are "discovered" at run-time. Late binding refers to the fact that the interfacing to the object is all done at run-time. Event handlers can be assigned from the IDE.Īlthough the theory is quite complex, late binding is the fastest way to get an ActiveX component running. This also uses early binding and has full event support. create a new component from the type library or the object and drop that new component on the form.Suitable for early binding and with event support. import the ActiveX type library, drop the TActiveXContainer on a form, instantiate the ActiveX object and assign it to the ComServer property.Suitable for late binding and without direct event support. drop the TActiveXContainer on a form and assign the ActiveX ClassName to the OleClassName property.There are 3 different ways of using ActiveX components: When the installation succeeds, a new 'ActiveX' tab is added to your component palette. Alternatively, open the LazActiveX.lpk package and click on 'Use >'/'Install'. ' window, select LazActiveX 0.1, click 'Install Selected' and then 'Save and Rebuild IDE'. Importing type libraries only works on Windows XP or newer.įrom the 'Package'/'Install/Uninstall Packages.

What’s more, video and audio information is provided about the played files, such as their duration, height and width, and support is offered for custom playback rates.Warning: LazActiveX needs FPC newer than 2.6.1. It does not require any third-party codecs, as all the necessary decoders are already included.Īmong the other features offered by the component, it is worth mentioning video color, contrast, brightness, saturation, hue and lightness adjustments, as well as the ability to change the audio pitch.Īdditionally, it is possible to perform snapshots from video files and export them to JPG, BMP, GIF, TIF or PNG from played video files. The component offers support for a wide range of common video formats, such as AVI, MP4, MOV, WMW and ASF, as well as various audio formats. It can be used with many programming languages that support ActiveX, including C#, Access, Visual C, VB.Net, Visual Basic, Visual Foxpro, Delphi and so on. Movie Player ActiveX Control is a specialized component that enables developers to build programs that offer video playback capabilities. Software development is costly and time-consuming, so it is often a good idea to take advantage of components that can be integrated into applications with relatively little effort in order to add new features to your products.
