Results 1 to 3 of 3
  1.    #1  
    Hey i'm stuck on my program trying to add audio to a scene. I want a sound effect to play at an interval set by the user. I have <script src="/usr/palm/frameworks/media/Audio.jsjsjs&$quot$; $type$=&$quot$;$text$/$javascript$&$quot$; $x$-$mojo$-$version$=&$quot$;$1$&$quot$;&$gt$;&$lt$;/$script$&$gt$; $in$ $my$ $index$ $file$.

    In my javascript file (which controls the scene) i create the audio object with the following code:

    var beep = new Audio("beep.mp3");;

    this is in the "ViewAssistant.prototype.activate" function. Unfortunately when i run the app it does not play the sound... How can I get this sound to play in the scene when a user clicks a button or some text?
  2. #2  
    var beep = new Audio();
    beep.src = Mojo.appPath + 'beep.mp3';;
  3. #3  
    Is this a documented API?

    ie. Would palm accept an app into the app catalog that used this method for playing audio files?

Posting Permissions