[TIMOB-4238] aacp radio stream
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-08-13T09:59:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | api |
Reporter | Josh Roesslein |
Assignee | Neeraj Gupta |
Created | 2011-04-15T01:54:25.000+0000 |
Updated | 2017-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();
need to reproduce on 1.1.0
Unable to reproduce as the link in the code doesn't work, marked ticket as invalid.
hi i have same issue can be fixed?
Closing ticket as invalid.