Android and Shoutcast Streaming
I'm trying to recive a mp3 streaming into Android (there's no problem with iPhone).
Is there any problem?
My code:
var url = 'http://78.159.104.207:80';
var streamer = Ti.Media.createAudioPlayer();
streamer.url = url;
streamer.start();
Thank you!
Info: SDK 1.3
8 Answers
-
I have the same problem, so if anyone knows how to play an MP3 stream, please let us know
-
The below code works for me on Android and iPhone.
var url = "http://radiosonar.solent.ac.uk:8000/streamhi.mp3";
var streamer = Titanium.Media.createAudioPlayer({url:url,preload:true,allowBackground:true});(No support for PLS/M3U by the looks of it.)
-
Same problem here.
In fact not even Kitchen Sink sample works properly on my Nexus One (Running Android 2.1)
-
Any solution for this?
-
Has this been fixed yet?
-
Any solution? :-(
-
How to get the Song History of Shoutcast into Titanium Studio Mobile App?
-
You need a patched version of AudioPlayer, which can read the metadata. Here are links: http://www.smackfu.com/stuff/programming/shoutcast.html and http://stackoverflow.com/questions/4911062/pulling-track-info-from-an-audio-stream-using-php/4914538#4914538