play sound automatic
hi. How can we go to a html file and play a sound as soon as it is loaded (iPhone)? thanks
1 Answer
-
var sound = Titanium.Media.createSound();
sound.preload = true; sound.looping = false;
sound.url = "audio.mp3";
sound.play();