Buffer AudioPlayer
Can I start downloading Audio from a URL and buffer it to the iPhone before I start playing it?
2 Answers
-
You could try using
sound = Titanium.Media.createSound({url:the_audio_url,preload:true});
Then it should be ready when you sound.play() it.
-
Kosso - how about this:
It says in the docs:
The Sound object loads the entire media resource in memory before playing.
As the resource is from a URL, I'd like to stream it but wait until the user has pressed play before it starts playing.Can I use the preload:true for Titanium.Media.AudioPlayer ?