So I’m trying to make a camera app on Axure 9 and I need to make a button that would make a sound when pressed first. Can anyone help?
Axure-Audio-RP9.rp (149.3 KB)
While my example uses online streaming audio, it can be used with local audio files. Just use “local URL” syntax to point to audio files on your system. You can Google that term for help, but the basics are easy.
Local files only work with generated HTML, not Preview mode.
If the file is in the same folder as the .html files then its “short URL” is simply its filename. So, the easiest thing tends to be copying your sound files into the same folder as the HTML you generate.
If the file is in a subfolder, just preface the filename with that folder name. For instance, you could copy a whole folder of audio files into your prototype’s HTML folder. If that folder’s name is “Sounds” and your target audio file is “beep.mp3” then its URL would be “Sounds/beep.mp3”
If the file is in a folder other than your prototype’s HTML folder, you can use the shortcuts,
**./**to refer to the root folder, and
**../**to refer to one folder level above. So, if your audio file is in a folder named, “ProtoSounds” at the same level as your prototype’s HTML folder, then the URL would be, “…/ProtoSounds/beep.mp3” and if one level higher, it would be, “…/…/ProtoSounds/beep.mp3”
You can use
%20to replace any spaces in the folder name or filename. So, “beep boop.mp3” would become "beep%20boop.mp3. In some cases you can wrap it all in single-quotes or double-quotes to handle spaces, but using
%20is more reliable.
Autoplay sound on iPad
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.