Adobe AIR 2.x
- Bug
2869263

Title

[Platform_Android] AIR for Android - Streamed audio playback issue on android devices or in general in AS3

Description

Problem Description: AIR for android (or in general AS3) fails to play Internet Radio Stations having URL in formats: 1. http://server_name:portNumber and 2. http://server_ip:portNumber

Ex :http://stream.radiosai.net:8008http://213.246.51.97:8024/

Steps to Reproduce: Write AS3 code to play streamed audio using URL of type 1 & 2 as mentioned in problem description.

For example use "http://stream.radiosai.net:8008" (type 1) and compile .apk (for android) and run it on any android device having AIR runtime installed. Otherwise directly use the 'Test Movie' in Flash Professional CS5 IDE.

Actual Result: Audio is not playing at all. On checking for 'soundObj.isBuffering' always returns true and never comes out of that.

Expected Result: Streamed audio must be played from the URL specified (All the links used by me were for .mp3 streams only)

Any Workarounds: No. FYI : same URL (or URL of type 1 & 2) works in AS2 even one published for Flashlite 2.1 on Flash CS5 IDE......

Please, Adobe, give me remote access. I'll fix this bug for you!!!!! what the hell, is there no workaround?

DanDinu

1:47:27 PM GMT+00:00 Jun 6, 2013

Please, Adobe, give me remote access. I'll fix this bug for you!!!!! what the hell, is there no workaround?

2200ml

3:38:36 AM GMT+00:00 May 20, 2013

AIR 3.8 Beta - the bug still exists! :(

2200ml

1:08:15 AM GMT+00:00 Apr 22, 2013

AIR 3.7 Final - Not yet solved! :(

bernard.h

6:01:00 AM GMT+00:00 Mar 22, 2013

There is no workaround for Android... and it seems that this is not a priority for Adobe.

Memory consumption (freeze after 1 hour), this bug, unable to read streams in AAC (except from FMS). This is definitely not the tool (AS3) to develop professional solutions.

2200ml

1:36:52 AM GMT+00:00 Mar 6, 2013

And what is this easy solution? Thank's! :)

Zhe Wang

7:11:00 PM GMT+00:00 Mar 5, 2013

unfortunately the bug has been deferred and it has easy workaround.

2200ml

1:15:54 AM GMT+00:00 Mar 5, 2013

It is not yet solved in AIR 3.6 Final SDK... Adobe, Please Fix this Bug! Can't build a radio streaming app on Android, too.

bernard.h

5:58:51 AM GMT+00:00 Jan 4, 2013

It is not yet solved in AIR 3.6 Beta SDK... Adobe, Please Fix this Bug!

2200ml

1:56:27 PM GMT+00:00 Nov 24, 2012

Galaxy SIII and AIR SDK v. 3.5.600 Not Work!! :(

bernard.h

1:20:12 PM GMT+00:00 Nov 23, 2012

There is someone who can test this demo (MangoDemo.zip) on his Android and tell me if it works?

Thanks!

bernard.h

7:49:40 AM GMT+00:00 Nov 23, 2012

??? What version of Android are you using? On what kind of devices did you do your tests?

Zhe Wang

7:00:42 PM GMT+00:00 Nov 22, 2012

the demo is working fine on my side. every channel plays fine.also please adopt newest AIR SDK 3.5 .

bernard.h

6:02:36 AM GMT+00:00 Oct 26, 2012

See my attachment : MangoDemo

Thanks for your help Zhe!

Zhe Wang

4:08:51 PM GMT+00:00 Oct 25, 2012

Seems the url is not working? if you can fix the url and build demo app that with 2 buttons one is with '/' one is without '/' to prove the workaround is not working for Android, that will be very helpful.Thanks.

bernard.h

5:56:53 AM GMT+00:00 Oct 23, 2012

"Also, another main problem doing a Stream-Player in Flash is the memory consumption.

The Flash Player keeps on recording the stream in the memory, wasting all the computer resources until it freezes."

bernard.h

5:38:48 AM GMT+00:00 Oct 23, 2012

Hi Zhe Wang,

It's working for iOS and Air for desktop. It doesn't work for Android.

Bernard

Zhe Wang

8:26:38 PM GMT+00:00 Oct 21, 2012

This was deferred and seems has workaround Just add "/;" at the end of your url.exemple : http://149.255.33.76:8070/;can you please try the workaround is working for you？

2200ml

3:13:29 AM GMT+00:00 Sep 29, 2012

It is not yet solved the Bug in AIR 3.5 Beta SDK :(

Please Adobe Fix This Soon!

bernard.h

9:02:38 AM GMT+00:00 Sep 20, 2012

Hi, my solution is working for iOS and air for desktop.

Just add "/;" at the end of your url.

exemple : http://149.255.33.76:8070/;

I'm still looking for android ...

M.S.H

8:52:02 PM GMT+00:00 Sep 15, 2012

This issue seems to be fixed 'partially'. What I mean is that still the URLs of type 'http://server_ip:portNumber' doesn't play. I tried both in doesktop emulator and my phone (Desire HD). AIR 3.4 for android is installed in phone.

However the URLs of type 'http://server_name:portNumber' (ex: http://stream.radiosai.net:8008/ ) is playing in the desktop and in the phone as well.

For the former type there is a runtime error thrown while closing the "Sound" :

Error: Error #2029: This URLStream object does not have a stream opened. at flash.media::Sound/close() at Radio_fla::MainTimeline/stopPlayback()[Radio_fla.MainTimeline::frame1:23]

So it looks like for the URL like "http://149.255.33.76:8070/" Sound class of AS3 fails to load/open the URL.

Hi Bernard,Kindly share the solution you found here with the larger audience.

Thanks

2200ml

1:16:32 AM GMT+00:00 Sep 14, 2012

Hi Bernard, your solution not work for me! :(

Hi Zhe Wang, any news for this bug? Is fixed internally in the next public release of AIR SDK?

Thank's

bernard.h

3:26:49 AM GMT+00:00 Jul 17, 2012

info@radiocity.me

2200ml

12:05:57 AM GMT+00:00 Jul 17, 2012

Hi bernard.h, share your solution for all in this forum... what's your email?

bernard.h

8:03:25 AM GMT+00:00 Jul 16, 2012

I found a solution about this bug. (Not for all but for many radio stations using port number)

Contact me if you're interested.

2200ml

6:30:58 PM GMT+00:00 Jun 10, 2012

It is not yet solved the problem in Final version 3.3 of AIR SDK :(

Please Adobe Fix This Soon!

Zhe Wang

12:26:07 AM GMT+00:00 May 9, 2012

I agree that this should be fixed and thanks for the votes and comments. we are trying to make it for next release.Thanks.

rijotech01

10:18:04 PM GMT+00:00 Mar 21, 2012

Just in case the developer team haven't noticed, it does work on the adobe air for android player on a desktop or laptop but not on and android phones!!!!! maybe that's why you haven't been able to fix this problem cause you see it running on the air for android player but failed to tested on a real device. I have to apology to anyone who feel offended by my writing I'm just feel piss off since this is a minor problem for the Dev team.

timesnewroman12

8:28:32 PM GMT+00:00 Mar 3, 2012

I just installed Air 3.2 RC and this bug is STILL HAPPENING ON ANDROID!!! Adobe PLEASE fix this bug! It's been multiple versions now without the ability to play shoutcast on android. This is a big deal!!!

2200ml

11:55:29 PM GMT+00:00 Jan 9, 2012

Adobe, Please Fix this Bug!

DigitalFrontier

1:43:21 PM GMT+00:00 Dec 18, 2011

I agree with some of the comments left here. It's absolutely necessary to access addresses with port numbers for a number of very, very common streaming radio stations. There's nothing insecure about this use-case. To close this bug without fixing it is very disappointing and only heightens my feelings that this product will soon be obsolete. One of the few reasons left to use this tool is that HTML5 cannot yet support some of the things we can do here with media. But if this platform doesn't allow you to do it either, then what's the point of developing in this platform when at most development momentum is with HTML5 and supporting technologies and there are plans for adoption of finer-grained media support technologies. Very disappointing.

bernard.h

5:29:34 PM GMT+00:00 Dec 13, 2011

I have also this problem with Android Air...

http://forums.adobe.com/thread/937162

jesusisinus

6:50:25 PM GMT+00:00 Nov 7, 2011

@Shuo_Zhang, I understand Adobe can't fix this bug for near future release.I would like to know when you can? Depend on your prospect, we also change our plan and/or direction. Thank you.

jesusisinus

6:36:22 PM GMT+00:00 Nov 7, 2011

I just faced on the same trouble in AIR on Android and found M.S.H's article. I'm really disappointed still this bug is alive!!I want adobe provide supportive information to avoid this trouble because we don't know background of the issue.In my case, still flash swf with local access is available, even I don't know how to build and install to the android device ...

Shuo_Zhang

4:25:06 PM GMT+00:00 Sep 20, 2011

@wMan, please refer to Ping's note bellow:"Thanks for your reporting. Unfortunately we couldn't fix this bug for near future release. We appreciate that anyone affected by this issue could leave vote notes about how it impacts you."

wMan

4:05:30 AM GMT+00:00 Sep 20, 2011

any news on that?

it looks like as its status is closed, why?

M.S.H

2:35:14 AM GMT+00:00 Sep 7, 2011

Now I remember a similar issue faced in flashlite when I was working with prev employer. The reason was due to 'weird' security check for URLs. A url with port number i.e: having a second ":" (colon) after the address was considered to be insecure except for direct path to a file and was blocked. Later we received a patch from Adobe to match our proj requirements and everything worked.

I think its same behavior even in latest player versions as well.

Hope Adobe will consider resolving this in upcoming release.

mario_cmd

5:12:23 AM GMT+00:00 Aug 11, 2011

the bug is still in air 3 beta 2.ios and blackberry are working!

Ping Huang

3:14:41 AM GMT+00:00 Jun 27, 2011

Thanks for your reporting. Unfortunately we couldn't fix this bug for near future release. We appreciate that anyone affected by this issue could leave vote notes about how it impacts you.

Ping Huang

7:56:52 AM GMT+00:00 Jun 21, 2011

Hello, Thanks for your bug reporting. I reproduced the issue and it is in AIR Desktop runtime as well. if any cross platform feature is not working in AIR desktop, most likely it won't work on Android as well. I Added desktop platform in this bug. I am going to file a internal bug for this issue.

Later changed the publish settings to AIR 1.5 where 'Test Movie' dint produce any audio. So it seems an issue with AIR runtime.

Truely at this point I am totally confused reason being same dint work in Flash CS5 IDE published for FP 10.x. So not able to pin point where exactly the issue is? Is it URLRequest API or AIR runtime? :(

Attachments (2)

Votes (13)

I developed an iOS app with streaming audio. Then were requested to make an Android port and stumbled into this bug, Really annoying.

zombee

2:05:23 PM GMT+00:00 Mar 26, 2013

You've really stabbed us in the back with this one. This is what we get for being loyal? Well, I think it's time to move on.

a11bi

6:19:15 AM GMT+00:00 Jan 30, 2013

Can't build a radio streaming app on Android, too.

Jeff Christensen

8:43:02 PM GMT+00:00 Nov 2, 2012

Seems like a generally easy fix. We have experienced this issue

omuppi1

2:21:49 AM GMT+00:00 Oct 21, 2012

Building a streaming app on Android is impossible because of this bug. Please fix this.

rijotech01

10:09:54 PM GMT+00:00 Mar 21, 2012

WOW i been driving my self crazy thinking i was doing something wrong in my air android SHOUTcast app the pass few days when it was really a bug on adobe Air for Android. Last year and still there is no fix!!! that is really sad!

timesnewroman12

8:29:32 PM GMT+00:00 Mar 3, 2012

Please fix this ASAP!! You have gone MULTIPLE releases without addressing this issue!

Dojdei

2:52:48 PM GMT+00:00 Nov 9, 2011

I wish to create an application for streaming radio on Android, but this bug is not really possible!

jesusisinus

6:19:05 PM GMT+00:00 Nov 7, 2011

I'm also developing android app using AIR, which app access to SHOUTcast sites. I think it's not voting issue or adobe wants to know my financial loss?Why it's available on iOS and blackberry? It means it's not from any security reasons. At least, I want to know any resolution or way to get SOUND on Android!! Flash doesn't have same trouble. Is it better to change from AIR to Flash? Is it better to build any http local server in it?I want to have adobe's advice or consultation to avoid this trouble. Thanks.

2200ml

12:50:13 AM GMT+00:00 Sep 21, 2011

I wish to create an application for streaming radio on Android, but this bug is not really possible! Please place it in soon! Thanks! :)

wMan

4:03:36 AM GMT+00:00 Sep 20, 2011

We are going to build a mobile radio player with flex 4.5 mobile.We need to access and play shoutcast stream.

mario_cmd

5:10:06 AM GMT+00:00 Aug 11, 2011

we have to build a radiostation app www.planetloungeradio.com and want to use flash builder for app development ios, android and blackberry. but with this bug it is impossible!

Your session has expired! Click to
loginCurrent form data will be preserved