TTMSFNCWXCustomAudioPlayer Class
Base class that hosts an embedded audio element and exposes playback control, seeking, and state for an audio source.
API unit family: TMSFNCWXAudioPlayer
Inherits from: TTMSFNCWXCustomMediaPlayer
Syntax
TTMSFNCWXCustomAudioPlayer = class(TTMSFNCWXCustomMediaPlayer)
Remarks
Provides the audio-specific behavior on top of the generic media player. Use the descendant component for design-time and published access to the playback properties and events.
Properties
| Name | Description |
|---|---|
| Duration | Gets the total length of the loaded audio source, in seconds. (inherited from TTMSFNCWXCustomMediaPlayer) |
| IsPlaying | Indicates whether the audio source is currently playing. (inherited from TTMSFNCWXCustomMediaPlayer) |
Methods
| Name | Description |
|---|---|
| ForwardAudio | Advances the current playback position forward by the specified number of seconds. |
| Pause | Pauses playback at the current position. (inherited from TTMSFNCWXCustomMediaPlayer) |
| Play | Starts or resumes playback of the current source. (inherited from TTMSFNCWXCustomMediaPlayer) |
| RewindAudio | Moves the current playback position backward by the specified number of seconds. |