Audio Player
Overview
A semi-visible component to play sound files
Component Properties
Property | Description |
---|---|
Source | It specifies the source of the audio present in your assests. |
Auto play | If enabled, the audio will start playing as soon as the webpage is loaded. |
loop | If enabled, the audio will continuously replay from the beginning after reaching the end. |
Blocks
Events
On audio ended
Event fires when the audio playing ended
loading block...
On pause
Event fires when the audio pauses
loading block...
On error
Event fires when their is an error in audio component
loading block...
variable | type | description |
---|---|---|
message | String | Dictionary |
Methods
mute
mutes the playing audio
loading block...
unmute
unmutes the playing audio
loading block...
play
plays the audio
loading block...
pause
pauses the audio
loading block...
Properties
source
Accepts: Asset
sets the source of audio component
loading block...
source
Returns: Asset
gets the source of audio component
loading block...
hide
Accepts: Boolean
Hides the component if the input is true and shows it if the input is false
loading block...
hidden
Returns: Boolean
Returns true if the component is hidden and false if it is not
loading block...