|
Property
|
JavaScript
|
Type
|
Description
|
|---|---|---|---|
|
Audio Source
|
audiosrc
|
string
|
To include audio, you can do one of the following:
• Click
next to the field to add a new audio file.• Enter or copy and paste an audio URL directly into the field.
• Select an audio file from the drop-down menu.
For information about linking to remote media, see Link to Remote Media.
|
|
Show Controls
|
showcontrols
|
boolean
|
Select whether or not to show the controls.
|
|
Preload
|
preload
|
string
|
Select what is preloaded:
• Content
• Metadata Only
• None
|
|
Playing
|
isPlaying
|
boolean
|
Indicates whether the audio is playing.
|
|
Service
|
JavaScript
|
Description
|
|---|---|---|
|
Play
|
play
|
Bindable service that plays audio.
|
|
Pause
|
pause
|
Bindable service that pauses the audio.
|
|
Event
|
JavaScript
|
Description
|
|---|---|---|
|
Play Started
|
playStarted
|
Triggered when the audio begins.
|
|
Play Paused
|
playPaused
|
Triggered when the audio is paused.
|
|
Play Ended
|
playEnded
|
Triggered when the audio ends.
|
|
Minimum Steps Required for Use
|
What It Looks Like
|
||
|---|---|---|---|
|
1. Drag and drop an Audio widget onto the canvas.
2. Select or add an audio resource in the Audio Source field.
|
![]() |