I’m playing an audio file and have an onComplete function, and within that function I check event.completed to make sure the audio finished playing. However in HTML5 builds the event.completed is always false, it never returns true even on a successfull audio file play.
The code works just fine in simulator, iOs, Android, etc. Only have this problem on HTML5 builds.
Here’s an example:
local playNext = function(event) if event.completed == true then print("DO STUFF") end end local handle = audio.loadSound("voices/test.mp3") audio.play( handle, {onComplete = playNext} )