Audio API

FLX provides an Audio API for playing audio resources, such as audio files and sound effects.

Audio API Functions

Plays the audio specified by the given audioUri

  • audioUri – an URI specifying the audio resource to be played.

Returns: a Playback for controlling the audio playback.

Pauses the given playback if it is currently playing.

  • playback – a Playback

Resumes the given playback for playing if playing is paused.

  • playback – a Playback

Stops the given playback if playing is started or paused.

  • playback – a Playback