Show: Delphi C++
Display Preferences

FMX.Media.TMedia

From RAD Studio API Documentation
Jump to: navigation, search

System.TObjectTMedia

Delphi

TMedia = class abstract

C++

class PASCALIMPLEMENTATION TMedia : public System::TObject

Properties

Type Visibility Source Unit Parent
class public
FMX.Media.pas
FMX.Media.hpp
FMX.Media FMX.Media

Description

Base class to access media files.

TMedia is an abstract class that defines an interface for media files. Platform-specific subclasses provide concrete implementations for Windows and OS X platforms.

TMedia exposes media file properties such as file name, size, dimension, state, or duration.

The supported media files formats are the native formats for each platform:

  • For Windows:
    • Audio formats: .wma, .mp3, .wav
    • Video formats: .avi, .wmv
  • For OS X:
    • Audio formats: .mp3
    • Video formats: .mov, .m4v, .mp4

Using TMediaCodecManager, it is possible to register custom media codecs to extend the audio/video feature support.

For easy access to media files, use the TMediaPlayer and TMediaPlayerControl components.

See Also

Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance