Show: Delphi C++
Display Preferences

FMX.Media.TMediaPlayer.Media

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Media: TMedia read GetMedia;

C++

__property TMedia* Media = {read=GetMedia};

Properties

Type Visibility Source Unit Parent
property public
FMX.Media.pas
FMX.Media.hpp
FMX.Media TMediaPlayer

Description

Specifies the current TMedia attached to this media player.

Call the Play and Stop methods to start playing, or to stop or pause the current Media file, respectively.

Media is assigned and created when the FileName property is set.

TMediaPlayer exposes the Media properties through the following properties: Duration, VideoSize, CurrentTime, Volume, and State.

To empty the current Media attached to the media player, call the Clear method.

If Media type is audio, then calling Play will start playing the audio file. If Media type is video, then calling Play will just play the audio component of the specified video file. To display a video file, use a TMediaPlayerControl, and link the current TMediaPlayer to it by setting the MediaPlayer property of the TMediaPlayerControl.

See Also

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