FMX.Media.TMediaPlayer
Delphi
TMediaPlayer = class(TFmxObject)
C++
class PASCALIMPLEMENTATION TMediaPlayer : public Fmx::Types::TFmxObject
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| class | public | FMX.Media.pas FMX.Media.hpp |
FMX.Media | FMX.Media |
Description
Nonvisual component for media file playback.
Use a TMediaPlayer component for easy access to media files.
The currently accessed media file is specified through the Media property. To specify the media file to be played by the current TMediaPlayer, set the FileName property. The file name must include the path of the file, so it can be localized on the memory, and the extension. Call the Play and Stop methods to start playing a media file, or to stop or pause a running media file. The current position is specified through the CurrentTime property. TMediaPlayer also exposes media file properties such as Duration, VideoSize, Volume or State.
TMediaPlayer playbacks audio files and the audio component of a video file. To display a video file, use a TMediaPlayerControl component.
- Note: In order to play an audio file on your iOS device using TMediaPlayer, use either of the following formats:
-
.wavon Windows -
.cafon iOS and Mac OS X
-