Skip navigation
Currently Being Moderated

air sdk 3.3: Android background audio no more?

Jun 26, 2012 1:41 AM

Tags: #air #android #3.3 #air33

I got some Android apps that plays rtmp streams, and they were working fine on background using Air 2.6-2.7 for about a year until now.

 

So today, I made upgrades using Air 3.3, and the backrgound playback is not working anymore, as soon as the screen shuts off, the audio shuts down in about 1 second.

 

I am using Windows Flash CS6. Anything changed in that department? I tried googling it, but nothing useful came up.

 
Replies 1 2 Previous Next
  • Currently Being Moderated
    Jun 27, 2012 4:34 PM   in reply to khundaga khurelbaatar

    Same issue here, glad I found this thread. Also using CS6 on windows, also using rtmp (rtmpe actually). If I leave the app and go do other things, audio continues to play, but after about 10 seconds or so, it stops until the app has focus again. Is there a new permission or setting we must set/change?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 28, 2012 6:39 AM   in reply to khundaga khurelbaatar

    I don't have AIR 2.7 anymore to drop back down to, but even if I did, I'd lose some of the nice things about 3.2+ -- come on Adobe!

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 3, 2012 7:30 AM   in reply to khundaga khurelbaatar

    This is madening. It works fine on 2.7 as discussed, but as far as I can tell, ANEs are NOT supported in 2.7, rendering that option useless to me. Adobe?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 6, 2012 12:26 PM   in reply to khundaga khurelbaatar

    Just pushing this up hoping for an answer. Even just a "we're aware of the problem and are working on it" is better than silence.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 16, 2012 9:22 AM   in reply to khundaga khurelbaatar

    no - not only 2 people...

     

    It seems to be a bug!

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 16, 2012 9:23 AM   in reply to niggeulimann

    2 people or 20, they should at least acknowledge it. Developers are your bread and butter -- act like it.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 17, 2012 12:45 AM   in reply to Idlemedia

    Unfortunalty Air 3.4beta still has the same Issue...

     

    Please fix it, adobe!

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 20, 2012 10:25 AM   in reply to khundaga khurelbaatar

    hi everyone.  bugs should be entered in our external bugbase here: https://bugbase.adobe.com/index.cfm

     

    would you mind to enter a bug there?  please vote on the issue if you are experiencing the issue.  the more votes, the more traction it receives.  anyways, we entered an internal bug(#3226876) that is under investigation.  if you let us know the external bug number, we can  bug group them so you'll have some insight to the progess.

     

    about he issue:  can you point us to a sample app that reproduces the audio problem?  i'm sure we have media internally that test the functionaly, but it's always best to test with real world examples.  thanks...

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 20, 2012 10:28 AM   in reply to libflashplayer.so

    mistakenly pasted the incorrect internal bug.  the correct number is #3292642.  thanks...

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 20, 2012 11:14 AM   in reply to khundaga khurelbaatar

    Voted on it

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 20, 2012 11:15 AM   in reply to wMan

    Dear sender,

     

    I am out of the office from Friday, 20th of August, until Friday, 3rd of July.

     

    Your email will automatically be forwarded to Matthias Wiggermann (matthias@jumero.de) and Jan Würdemann (jan@jumero.de) - they will be pleased to assist you.

     

    Thank you very much.

     

    Kind regards,

    Uli Niggemann

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 20, 2012 6:03 PM   in reply to niggeulimann

    Voted as well, thanks

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 23, 2012 10:04 PM   in reply to khundaga khurelbaatar

    Thank you for opening the bug.

    I have voted for it  as well.

    Unfortunately adobe has closed the bug, saying this is expected behavior on ANDROID devices. I am not sure what this means, since background process functionality had been added to air 3.3 for IOS.

    Any suggestions on what to do next will be really appreciated, since the music app I'm developing at the moment had lost a major functionality.

     

    Thanks

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 2:49 PM   in reply to khundaga khurelbaatar

    was able to speak to someone on the issue...  the bigger picture was  some devices would lock the audio hardware preventing phone use or the like.  to prevent this from happening, a decision was made to release the hardware when going into the background.

     

    there does seem to be a feasible work around that he pointed out here:

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/media/Sound.html

     

    This code plays audio even when the app is in background

    channel = new SoundChannel();

                    soundPlay = new Sound();

                    urlReq=new URLRequest;

                    urlReq.url="urlOfStream";

                    soundPlay.load(urlReq);

                    channel = soundPlay.play();

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 2:51 PM   in reply to libflashplayer.so

    Thanks for that. I assume for those of us using FMS/RTMP there's no solution?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 3:26 PM   in reply to Idlemedia

    unfortunately, you are correct.  from what i am told, there is no solution when using FMS/RTMP.  only http with soundPlay would be the option to use.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 4:19 PM   in reply to libflashplayer.so

    And sadly Flash CS6 does NOT allow you to add earlier SDKs via the "manage" menu

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 26, 2012 9:41 AM   in reply to libflashplayer.so

    Thank you very much for your answer. However, your solution only points the inconsistency of AIR behavior. If a decision was made to disable background audio in ANDROID, how come one method of playing sound in the background works fine, yet another one doesn't?  In my app for example  I'm using video streamed from YouTube, and the background behavior of the app changes from ANDROID version to a another, and it's also strangely affected by the quality I set to the played video.

     

    It's also weird since the latest AIR version added background music functionality on IOS, yet Adobe didn't inform it's developers of the new decision made regarding ANDROID background behavior.

     

    As a flash developer I am confused, since there is no documentation pointing what to expect from background behavior.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 30, 2012 12:41 AM   in reply to tomato67h654g

    Background Audio for android was enabled in AIR prior 3.3 and now they removed it silently?

    especially for rtmp. how can this be true?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 31, 2012 9:08 AM   in reply to tomato67h654g

    let's see if we can get a product manager to key in on the issue.  they would have the most insight into why the decision was made.  stay tuned...

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 31, 2012 9:11 AM   in reply to libflashplayer.so

    Thank you for that

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 1, 2012 11:23 AM   in reply to khundaga khurelbaatar

    check this out: https://play.google.com/store/apps/details?id=air.com.radioloyalty.rad ioloyalty&feature=search_result#?t=W251bGwsMSwxLDEsImFpci5jb20ucmFkaW9 sb3lhbHR5LnJhZGlvbG95YWx0eSJd

     

    seams like it's stremaed audio. i don't know how they have managed to keep the audio playing in the background.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 1, 2012 1:16 PM   in reply to tomato67h654g

    Older version of AIR?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 1, 2012 2:34 PM   in reply to libflashplayer.so

    fyi, our product manager is looking into the details...  we hope to have a response soon.  thanks.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 2, 2012 10:18 AM   in reply to libflashplayer.so

    Thank you very much.

    Could you please ask him about playing audio in the background using an embedded youtube player or using stageWebView? These two options don't play in the background either. Is it possible to make them play in the background?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 2, 2012 10:20 AM   in reply to tomato67h654g

    I personally wouldn't complicate the matter with yet another situation (which seems more of a fringe case than anything else). Let's get core, expected functionality working, then worry about other feature requests (I don't even think the browser keeps playing content after you close it BTW)

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 2, 2012 10:33 AM   in reply to Idlemedia

    The problem again is, that I don't have any documentation regarding the background behaviour of different classes. I don't know if stageWebView is supposed to keep running in the background or not, the same about embedding the YouTube player using the actionscript API (like I've said - it has different behaviour on my phone using ANDOID 2.3 and on my tablet using ANDROID 4, and on my phone it's also strangely affected by the video quality).

    So, If I don't know what behaviour to expect I can't tell if it's a bug or a request for a new feature...

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 2, 2012 3:54 PM   in reply to khundaga khurelbaatar

    Hi,

    I am the product manager for AIR at Adobe. We are currently investigating the audio playback bug and will provide a update on fix schedule shortly.

    Thanks!

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2012 2:09 AM   in reply to NoopurB

    any news on that issue?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2012 12:51 PM   in reply to wMan

    Hello,

    We have been working on the fix but were unable to include it in the 3.4 release that happened earlier today. This fix is slated to be included in our next scheduled release for Q4.

    Thanks!

     
    |
    Mark as:
1 2 Previous Next

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points