Titanium.Media.createSoundPlayer is eluded to here:
So we have createAudioPlayer used in the code, and createSoundPlayer mentioned in the API docs. Which is correct?
createSound is best used for short audio sounds, either locally or via a url.
createAudioPlayer is best used for streaming audio - live streams or mp3 urls.
I think you might be right that createSoundPlayer is an error in the docs.
Some demos are in the KitchenSink app :
look for Resources/examples/sound_remote.js
Nolan, does createAudioPlayer work on Android too?
Also, I want to stream an mp3 and show a progress bar, just like the Quicktime player does on the iPhone when an mp3 loads. Is this possible?
Kosso, you mention createSoundPlayer is good for live streams..
Am I true in saying that a shoutcast stream url (eg: http://22.214.171.124:7777/) is NOT going to work on Android prior 2.2?
I have done testing myself and can not get the live streams working
Also as a note in case anyone is searching createAudioPlayer doesn't send cookie information that it may have gathered from Titanium.Network.createHTTPClient, e.g. a login call previously.
not yet - still working on it. it basically has one property (url) then you can call start, stop and pause on it.