aacp radio stream
Does titanium appcelerator support aacp radio stream? If yes then any one tell me what should i write for it? I tried using this but not success,
var s = "http://in.ast.com/nt-live-64";
var sound =Ti.Media.createAudioPlayer({url:s,preload:true,audioFormat:AUDIO_FORMAT_AAC,allowBackground:true});
sound.start();
3 Answers
-
I have put an app together with Titanium that streams an AAC shoutcast using the following:
for iOS
Use a videoPlayer and not audioPlayer:
var streamer = Ti.Media.createVideoPlayer({ url : 'http://198.144.148.12:8000/' }); streamer.play();
for Android
audioPlayer or videoPlayer do not support AAC at all so I developed the following module:
https://marketplace.appcelerator.com/apps/5728
-
I'd like to know more about AAC+ as well. It looks like android supports it here: http://developer.android.com/guide/appendix/media-formats.html
-
any update?