FMX.Media.TMediaCodecManager.IsCodedExists
Delphi
class function IsCodedExists(const AFileName: string): Boolean; overload;
C++
__classmethod bool __fastcall IsCodedExists(const System::UnicodeString AFileName)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Media.pas FMX.Media.hpp |
FMX.Media | TMediaCodecManager |
Description
Verifies whether a codec for a specified media file exists.
Call IsCodedExists to check whether a specified media file format is supported.
The AFileName
parameter specifies the name of the media file to be verified. AFileName
must include the media file extension.
IsCodedExists returns True if a codec for the AFileName
's extension exists, and False otherwise. If IsCodedExists cannot extract an extension from AFileName
, it returns False.
Call example:
ok:=TMediaCodecManager.IsCodedExists('*.avi');