Delphi ships with a component ‘TMediaPlayer’ for playing media files such as video and audio. 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. There is however an alternative component for Windows, the Microsoft Windows Media Player ActiveX component.
[ Read how to use Windows Media Player in your Delphi applications here. ]
2 thoughts on “Add Windows Media Player to your Delphi Applications.”
I tried to integrate the Windows-Media-player, in a C++ Buildeer app. Using the approach You outlined in your post 2017-01-19. I works, but I can’t set a filename at rutime, If I do as suggested in your FormCreate event, i get: OLE error C00D1327. And I can’t find any information, on that error code,
But using the exact same file, typinge the name in at design time.as you show, No ploblem. It runs fine.
Any ideas where to find info on yhe OLE error, or how to by-pass it.
I did a search for the error code and found this: https://forums.embarcadero.com/message.jspa?messageID=904894
Are you doubling up the back-slashes in your path? (To avoid the escape character sequences in C++)