Is Titanium.Media.createAudioPlayer documented anywhere?
Titanium.Media.createSoundPlayer is eluded to here:
https://developer.appcelerator.com/apidoc/mobile/1.1/Titanium.Media.Sound
So we have createAudioPlayer used in the code, and createSoundPlayer mentioned in the API docs. Which is correct?
Thanks!
5 Answers
-
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://11.22.33.44: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.