I am currently creating a web application for the iPhone for piano chords, and I wanted to add a parameter that allows the user to press the play button and play the selected chord. However, I am not sure how to do this, or if it is possible.
Basically, is there a way to programmatically (through Javascript) play a sound file (wav, mp3, ...) in the background? (i.e. without leaving the page)
Thanks for any help!
(Keep in mind that I am developing a web application, so I use HTML, CSS and JS, not the native SDK)
source
share