The TTMSFNCWXAudioPlayer is a component that lets you play an audio from a URL. You can toggle
the controls inside the audio player. You can also use all features from outside of the player. Make
sure to familiarize yourself with the supported codes.
Properties
Property name
Description
Autoplay
Automatically plays an audio when loaded.
Controls
Toggles controls inside the component.
CurrentTime
Get or set the current time of the audio.
Duration (ReadOnly)
Get the duration of the audio.
IsPlaying
Checks if the audio is playing
Loop
Restart the audio when it ended.
Muted
Mute the audio.
PlayBackRate
Change how fast the audio plays.
URL
Sets the audio source to load. Can be a local file using the file:// protocol.
Volume
Set the volume of the audio.
Methods
Property name
Description
ForwardAudio
Skips the audio ahead with x seconds.
RewindAudio
Return x seconds in the audio.
Play
Start playing the audio.
Pause
Stop Playing the audio.
Events
Property name
Description
OnPlay
Triggers when the audio starts playing
OnPause
Triggers when the audio is paused
OnEnded
Triggers when the audio is ended
OnRateChange
Triggers when the PlayBackRate has changed
OnVolumeChange
Triggers when the CurrentTime has been changed
OnTimeUpdate
Triggers when the CurrentTime has been changed
OnError
Triggers when an error has occurred playing the audio
OnMetaDataLoaded
Triggers when the audio metadata has been loaded
OnAudioInitialized
Triggers when the audio component has been initialized