Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
9 Views

AAC audio streaming do not keep playing

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

 

 

Tags (2)
0 Kudos
4 Replies
Highlighted
9 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
Highlighted
9 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
Highlighted
Beginner
9 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
Highlighted
9 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