Show: Delphi C++
Display Preferences

FMX.Media.TMediaCodecManager.GetFilterStringByType

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function GetFilterStringByType(MediaType: TMediaType): string;

C++

__classmethod System::UnicodeString __fastcall GetFilterStringByType(TMediaType MediaType);

Properties

Type Visibility Source Unit Parent
function public
FMX.Media.pas
FMX.Media.hpp
FMX.Media TMediaCodecManager

Description

Gets the current supported media file type extensions, grouped by codec description, for a specified type media.

Call GetFilterStringByType to get a list of the current supported formats filtered by codec description, for a specified type of media file (audio or video).

The MediaType parameter specifies the media type for which to get the supported formats.

In the resulted string:

  • The groups are separated by pipes ('|').
  • For each group, the supported extensions are delimited by parentheses ('(' ')').
  • The file format extensions on each group are separated by semicolons (';').

Result example for audio media:

FileTypes='All Files (*.wma;*.mp3;*.wav)|*.wma;*.mp3;*.wav|Windows Media Audio Files (*.wma)|*.wma|Mpeg Layer 3 Files (*.mp3)|*.mp3|Mpeg Layer 3 Files (*.wav)|*.wav';

See Also

Personal tools
In Other Languages
Previous Versions
Assistance