Live Radio Streaming
Hi,
i am trying to run live radio streaming using stream radio player using the code,
var url1 = "http://den1.atl.com/na-live-64";
// load from remote url
//var sound1 = Titanium.Media.createSound({url:url,preload:true});
var streamer = Ti.Media.createAudioPlayer();
//var url = "http://in1.atl.icy.abacast.com/neosa-live-64";
playBtn.addEventListener('click',function()
{
streamer.url = url1;
streamer.start();
});
but error msg come "Audio queue creation failed." . I don't know what to do further. Can any one tell me what should i do?
3 Answers
-
I filed a ticket about this last week. https://appcelerator.lighthouseapp.com/projects/32238/tickets/1967-createaudioplayer-not-playing-mp3-from-url#ticket-1967-3
My suspicion is it cannot read the output from a URL that doesn't have a file extension.
My workaround was I used a function called get_remote_file that I found in the Q/A area and moved the file to the device and used createSound to play it. It works for me because my file is not streaming.
I know this probably didn't help but it does confirm that it seems to be a problem and it may be a good idea to add your comments to the ticket on lighthouse.
-
Try to remove
url:url,
-
I change the url: url but alert will come "No Audio Data found". I could not understand what is wrong now.