Plays an audio file from an external URL or the local filesystem.
By default, the audio file will be played once, but you can set it to loop indefinitely or a certain number of times. You can use the Stop audio playback to stop a looping audio playback.
When the playback starts, the first output is triggered.
If there is an error, the second output is triggered.
External URL or absolute local filesystem path to the audio file to play.
Audio playback ID
Unique ID for the preloaded audio playback instance.
Number of loops
Used together with Loop audio?, limit the number of times the audio is looped.
Number of outputs: 2
Object representing the playback instance
Unique ID for this audio playback
Duration of the audio file, in seconds.
Current time of the ongoing playback, in seconds.
Status of the current playback.
True/false value describing if the audio file is set to loop.
If looping, the number of remaining loops until the playback stops.
Absolute local filesystem path or external URL to the audio file being played
ISO 8601 timestamp for when the playback was started. Can be used to calculate e.g. elapsed time.
File not found
Thrown if the audio source file could not be found.
File not an audio file
Thrown if the audio source file could not be opened as an audio file.
Thrown if an unknown error occurred while playing the audio file.