Android Background Audio and Live HE-AACv1 Streams

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
LG73
Posts: 36
Joined: Fri Jun 05, 2009 8:25 am
Location: Vancouver, BC, Canada
Contact:

Android Background Audio and Live HE-AACv1 Streams

Post by LG73 » Mon Sep 11, 2023 5:35 am

I've discovered that the Android Background Audio is fine playing stored HE-AACv1 format audio files (.m4a extension), but chokes and crashes my app when attempting to play a live HE-AACv1 format audio stream (.aac extension, which is an ADTS transport stream format) from either Shoutcast v2 or Icecast. This is an odd oversight on LiveCode's side since a very large number of radio stations on the Internet use HE-AACv1 or HE-AACv2 in ADTS format on the admittedly vintage Shoutcastv2 and Icecast (ICY) servers.

For my Cinque Ports Radio app that relies on Android Background Audio to make it usable, this is limiting the data efficiency of the app as I'm forced to use the archaic MP3 live audio streams which it does work with. I'm going to file a bug report on this but wanted to share this discovery here in case any other LiveCode developers bump into this bug.

I thought I had it working with LiveCode 10.0.0 DP 6 only to later discover I had made a typo in my code and the app was still connecting to an old 192k MP3 stereo stream instead of the intended 80k HE-AACv1 stereo stream. Any app for playing live audio over the Internet relies on Android Background Audio or it becomes a useless app.
Cheers,

Phil
LG73 - Vancouver's Hit Music Mix!
http://www.LG73.ca/

LG73
Posts: 36
Joined: Fri Jun 05, 2009 8:25 am
Location: Vancouver, BC, Canada
Contact:

Re: Android Background Audio and Live HE-AACv1 Streams

Post by LG73 » Mon Sep 11, 2023 6:20 am

This issue has been submitted with a sample stack as Bug 24337.
Cheers,

Phil
LG73 - Vancouver's Hit Music Mix!
http://www.LG73.ca/

kaputlard
Posts: 1
Joined: Wed Mar 06, 2024 3:15 am
Contact:

Re: Android Background Audio and Live HE-AACv1 Streams

Post by kaputlard » Wed Mar 06, 2024 3:54 am

LG73 wrote:
Mon Sep 11, 2023 6:20 am
This issue has been submitted with a sample stack as Bug 24337.
Have you fixed this problem yet?

LG73
Posts: 36
Joined: Fri Jun 05, 2009 8:25 am
Location: Vancouver, BC, Canada
Contact:

Re: Android Background Audio and Live HE-AACv1 Streams

Post by LG73 » Wed Mar 06, 2024 5:37 am

kaputlard wrote:
Wed Mar 06, 2024 3:54 am
LG73 wrote:
Mon Sep 11, 2023 6:20 am
This issue has been submitted with a sample stack as Bug 24337.
Have you fixed this problem yet?
Hi Kaputlard,

LiveCode 10.0.0 DP7 has this fixed! I used that version for version 2.1 of the Cinque Ports Radio app and all is well with playing the live HE-AACv1 streams.
Cheers,

Phil
LG73 - Vancouver's Hit Music Mix!
http://www.LG73.ca/

Post Reply

Return to “Android Deployment”