Register new media codec in FMX media player in C++ Builder


When I try to play an .mp4 video file using the TMediaPlayer FMX control in C++Builder, it reports an error:

unsupported media file

So, I tried to register an MP4 codec in FMX’s Media Codec Manager using the below code:
TMediaCodecManager::RegisterMediaCodecClass(".mp4", "mp4", TMediaType::Video, TWindowsMediaCodec);

But it also reporte an error:

TWindowsMediaCodec is undefined symbol

How do I register a new codec in FMX’s Media Player in C++Builder?

Comments are closed.