Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

play sound automatic

hi. How can we go to a html file and play a sound as soon as it is loaded (iPhone)? thanks

— asked September 28th 2010 by Shahin
  • autotag
  • sound
0 Comments

1 Answer

  • var sound = Titanium.Media.createSound();

        sound.preload = true;
        sound.looping = false;
    

    sound.url = "audio.mp3";

    sound.play();

    — answered January 2nd 2012 by guellai farid
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.