Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4238] aacp radio stream

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-08-13T09:59:30.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterJosh Roesslein
AssigneeNeeraj Gupta
Created2011-04-15T01:54:25.000+0000
Updated2017-03-21T18:23:42.000+0000

Description

I have tried to do live radio streaming in titanium appcelerator. But all the time Audio queue creation failed message will come in simulator. I have used below code. The radio stream is in aacp format. I have spent two days in this problem. but still stuck, no one give me any clue what should i do? Please help me if it is possible for you. Thanks in advance.
var s = "http://i1.al.iy.ast.com/na-live-64";

//audioFormat:AUDIO_FORMAT_AAC,

var sound = Ti.Media.createAudioPlayer({url:s,preload:true,allowBackground:true});

if(!sound.isMediaTypeSupported())
{
  alert("No");
}

sound.format = Titanium.Media.AUDIO_FORMAT_AAC;
sound.addEventListener('error', function(e){
    if(e.message == "Unknown media error"){
      alert("No");
    }
});

sound.addEventListener('complete', function(){ 
   // your code here
});

sound.addEventListener('interrupted', function(){
   // your code here
});

sound.addEventListener('resume', function(){
   // your code here
});

sound.addEventListener('progress', function(e){
   // your code here
});

sound.start();

Comments

  1. Alan DuBoff 2011-04-15

    need to reproduce on 1.1.0

  2. Junaid Younus 2012-08-13

    Unable to reproduce as the link in the code doesn't work, marked ticket as invalid.
  3. Alexis Gaitan 2012-09-23

    hi i have same issue can be fixed?
  4. Lee Morris 2017-03-21

    Closing ticket as invalid.

JSON Source