After 2 hours of browsing, I still can't find the right answer to this simple question :
what's the best approach to creating a music intensive mobile web application (using Titanium), if possible with such basic player functionalities as playing in the background (as an option) and a play progress bar?
Thank you all for your time and answers.
Titanium Mobile Web does not yet support Ti.Media.AudioPlayer or Ti.Media.Sound. We'll never support Ti.Media.MusicPlayer on Mobile Web because it's an iTunes thing.
The main reason we haven't made audio a higher priority is because audio on mobile browsers is poor. The most widely adopted solution is using the HTML5 Audio element, but this has serious limitations where you can only have one sound playing at a time and I believe you can't trigger a sound to autoplay (you cannot autoplay a video on mobile browsers). Apparently it also plays the audio fullscreen on Mobile Safari, but I haven't tested anything audio related.
What you want is the Web Audio API, but unfortunately it is only supported by Chrome and Firefox (both for desktop browsers and Android devices).
So, sadly, your only option is to manually code using the Web Audio API (in a big if(MobileWeb) block) and know that it will only work in 4 browsers... or wait a year or two and maybe Mobile Safari will support it.
Think you can help? Login to answer this question!