Software Archive
Read-only legacy content
17061 Discussions

AAC audio streaming do not keep playing

Esmailin_C_
Beginner
300 Views

I am using PlayCordovaAudio() function to stream audio (Shoucast).

The MP3 audio source is playing well with this code:

playCordovaAudio('http://the.url:PORT/;stream.mp3');

But, when trying to play an AAC audio source, the audio starts and stops right away. Even when using the same function:

playCordovaAudio('http://the.url:PORT/;stream.aac');

Here is the app that I am developing. If you want, you can download it and test it: View on Google Play (the first radio play is from the .mp3 audio source, the second one is an AAC audio source).

Any idea how could I fix this?

Thank you in advance

 

 

0 Kudos
4 Replies
PaulF_IntelCorp
Employee
300 Views

Esmailin -- we do not have the resources available to deal with pure programming and Cordova API issues. I recommend that you search the Cordova tag in StackOverflow for help. The Intel XDK creates standard Cordova (aka PhoneGap) apps and any solutions you find for Cordova apps will apply to your XDK app.

0 Kudos
PaulF_IntelCorp
Employee
300 Views

Esmailin -- some additional info provided by one of our Cordova experts:

Different devices support different codecs - I would guess that this could be a device specific issue. It's quite possible that the device you are testing with simply does not support AAC encoding.

0 Kudos
Esmailin_C_
Beginner
300 Views

Got it, so, looks like AAC is not the best option to stream audio in Android at the moment... At StackOverflow they told me that may be for the Server version, but tried different versions, and the problem still not solved. So looks like I gonna have to wait for the AAC technology to grow a little bit more...

0 Kudos
PaulF_IntelCorp
Employee
300 Views

Esmailin -- I'd be very surprised if AAC encoding grows to cover more devices, given the dominance of MP3 for compressed audio and FLAC for uncompressed.

0 Kudos
Reply