Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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?

— asked October 4th 2010 by utpal kishen
  • live_radio_streaming
0 Comments

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.

    — answered October 4th 2010 by John McKnight
    permalink
    0 Comments
  • Try to remove

    url:url,

    — answered October 4th 2010 by Ivan Mathy
    permalink
    0 Comments
  • I change the url: url but alert will come "No Audio Data found". I could not understand what is wrong now.

    — answered October 4th 2010 by utpal kishen
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.