play

abstract fun play()

When overridden, used after Audio is initialized with AudioState.READY to play the sound immediately.

Sets the audioState to AudioState.PLAYING

Example:

val audio = Audio(audioUrl) // AutoPlay defaults to "false"
audio.play() // plays the sound immediately