Audio = type { ...added methods below... }
| Method signature | Return type |
|---|---|
isEnded |
Boolean |
| Whether the audio has finished playing. | |
isLooping |
Boolean |
| Whether the audio will loop back to the start when it ends. | |
looping:=(value:Boolean) |
Done |
| Set whether audio loops back to start when it end | |
pause |
Done |
| Pause the audio. | |
play |
Done |
| Play the audio. | |
source |
String |
| The source URL of the audio. | |
source:=(value:String) |
Done |