TI.Media.createSound() and a loading indicator before the sounds starts
As the sound object loads the entire media resource in memory before playing, I need a loading indicator that hides as soon as the sound starts playing. The sound files are not huge but it takes a good second before they start and I want to avoid confusion.
Is that even possible? Thanks!
2 Answers
-
this seems to work
playButton.addEventListener('click', function() { activityIndicator.show(); sound.play(); activityIndicator.hide(); });
-
Did you find a solution?
Thanks