AIR + Android audio playback in background

Hello everbody,
at the moment I am evaluating the realisation auf a radioplayer using a rtmp stream for android devices.
There are two question for which I could not find any advices or resoltions.
My questions are:
1.) Is it possible to play/continue an audiostream, even if the app itself is pushed into background?
2.) How are updates handled for apps in Android-Store? Is it the same as with the updateroutine for AIR on Desktops?
Thanks in advance for your answers.
Regards,
wman

Hi Varun,
thanks for your answers.
Are there any ressources/links, maybe on adobe devnet, available for audio playback while app is in background?
I already searched the web so far, but could not find any hints.
but anyway thanks for your response!
Regards,
wman

Similar Messages

  • Adobe AIR Android + MediaPlayer: Video Plays with no Audio

    I am trying to play a video in my Adobe AIR Android App. I can't seem to get the video to play with audio in the application. I can get the audio to play in the native players on both my Samsung Galay and my Asus Transformer outside of my app, but when I load the video using StageVideo, the audio doesn't play at all.
    I tried just launching the video into the navtive browser or using StageWebView but that doesn't work either.
    I am a bit at a loss and need some advice.
    Here's the code below.
    MediaPlayerExample:
    var resource:URLResource = new URLResource(videoPath);
    container = new MediaContainer();
    addChild(container);
    container.y = this.headerHeight;
    videoElement =  new VideoElement(resource);
    videoElement.smoothing = true;
    container.addMediaElement(videoElement);
    container.width = this.stage.stageWidth;
    container.height = this.stage.stageHeight;
    mediaPlayer = new MediaPlayer();
    mediaPlayer.media = videoElement;
    mediaPlayer.addEventListener(TimeEvent.CURRENT_TIME_CHANGE, this._onProgress);
    this.videoHeader = new VideoHeader(this.stage.stageWidth);
    this.addChild(this.videoHeader);
    Any help would be great!

    Quicktime or Quicktime Pro (both of which iTunes uses) does not convert "muxed" ( muxed means multiplexed where the audio and video are stored on the same track) video files properly. It only plays the video and not the audio.
    See:iPod plays video but not audio.
    You need a 3rd party converter to convert the file with both audio and video.
    See this for help: Guide to converting video for iPod (Mac/Windows).

  • Premiere Elements 12 - Gaps in audio playback

    Hello everyone!
    I have a problem with Adobe Premiere Elements 12: when I play video in timeline or preview window, there are lots of gaps and pauses in audio playback, even though video is playing smoothly. Usually the pattern goes like this: 2 seconds of clean audio - 0,5 seconds silence - 2 seconds of clean audio... etc.
    I have tried the following:
    - change audio buffer settings
    - change audio device (I have tested with integrated audio chip ("High Definition Audio"), M-Audio Fast Track Pro and cheap USB audio interface - same results with all of them)
    - start a new project with correct settings and import only one file
    - disable background antivirus monitoring
    Usually source material is AVCHD 1440x1080 25fps (PAL, MTS-file) from small Sony camera, but this problem seems to continue even if I insert only still photo and mp3 audio to timeline. CPU load is about 6% during playback. It seems like Premiere Elements makes these gaps to playback signal before sending it to audio hardware?
    Computer specs: Intel Core i7-4770 @ 3,4GHz, 16 GB RAM, 128GB SSD drive for OS & software and 2.0TB 7200 rpm drive for video, Intel HD Graphics 4600, Windows 8 (64bit).
    I would be really grateful if someone could give me some tips to solve this annoying audio playback problem.
    EDIT: I forgot to mention that this problem occurs all the time - even when video is rendered in timeline.

    Thanks for the quick response, TonyPh12345.  Clearly not what I was hoping for but not unexpected. BB

  • Audio playback stuttering using AirPlay under iOS 8

    I encountered a lot stuttering in audio playback with apples music app and Spotify using AirPlay mode with my AirPort express. It occurs not only in background use, but also when the apps are on top. Reseted all devices, nothing helped the issue. Very annoying, it never happend in the previous builds. I think it's a iOS 8 problem and hope Apple solves it soon. My internet works fine at 50 mbit though.

    I've contacted Apple Care lately, and though they where very nice and kind, they pretended to never have heard about the issue and claimed, it should work. they gave it to their developing engineers though. Let's wait and see...

  • Ics broke bluetooth to auto for calls and audio playback

    After upgrading to ICS (4.0.4) on my RAZR MAXX, I can no longer maintain a bluetooth session with my car and the audio playback is not working at all.  The connection begins and drops after less than 1 minute.   This cycle repeats.  Calls and audio worked with the same car configuration in Android 2.3.4.  After a long search on the net I learn that this is a common problem.  Has anyone heard about a patch or work around?  I tried disabling wifi - no joy.

    I have the same problem with my DROID RAZR.  I use a Plantronics Pro+ headset and regularly have hour long conference calls.   I had no connection problems prior to ICS.  When I upgraded to ICS, the Bluetooth connection started dropping.  It will drop then reconnect, then drop, then reconnect, every couple minutes.  I end up holding my phone to one ear with the Bluetooth on the other, the call rotates between them.  VERY ANNOYING.  UNACCEPTABLE.  I tried a second Bluetooth headset (also Plantronics Pro+).  it worked for about  2 days, then had the same problem. 
    From reading various postings, I believe this is a problem with ICS and the Bluetooth connection.  Nothing to do with what type of headset, automobile, etc.  It may be only those of us that had Android 2.3.4 and upgraded to ICS.
    BobR

  • Limit on Wi-Fi, and video and audio playback?

    Internet use: Up to 6 hours on 3G, up to 10 hours on Wi-Fi
    Video playback: Up to 10 hours
    Audio playback: Up to 40 hours
    Simple question: Why do I have a limit on using Wi-Fi, playing videos, and listening to music?
    Standby time: Up to 300 hours
    Also, what's standby time?

    The limit is in regards to how long the battery will last.
    Also, what's standby time?
    http://www.apple.com/batteries/iphone.html
    +Usage: Amount of time iPhone has been awake and in use since the last full charge. The phone is awake when you’re on a call, using email, listening to music, browsing the web, or sending and receiving text messages, or during certain background tasks such as auto-checking email.+
    +Standby: Amount of time iPhone has been powered on since its last full charge, including the time the phone has been asleep.+

  • Ios audio play in background ??

    Hi
    I creat ios app using adobe flash pro cs5.5
    is There any way to make it play audio in background
    like this:
    thanks

    I am trying to play your app's audio when your app is paused
    I try to edit descriptor like this: http://stackoverflow.com/questions/6457894/air-2-7-for-ios-playing-audio-in-the-background
    But when I publishing app display error message :Error creating files Namespace is invalid in the application descriptor file
    i hope you help me
    thanks

  • AIR - Android -- A piece of ****

    Hi,
    I spent my precious 2 days time to write an application (AIR-Android) which can play internet radio stations (streamed audio). Every thing worked great when I used 'Test Movie' or Ctrl+ENTER. But same is not working when I generated the .apk and installed on HTC Desire HD (running Android 2.2 and have AIR with latest updates).
    I have predefined few internet radio stations and clicking on the station name should start playing the radio. I have used the SoundChannel with 3 second buffering option. On the device application triggers the buffering event but never comes out of that or plays the audio.
    I have tried few things:
    1. Prepared a test file with only one station
    2. In publish settings --> Audio Stream set the bit rate to 24kbps which is same as that station is streamed
    3. Increased the script limit to 30 seconds
    4. Tried to use Security.allowDomain() which caused runtime error (3207 Application-sandbox content cannot access this feature)
    I used the station "http://stream.radiosai.net:8004" for testing. The station is active, streaming in MP3 format and able to listen through the Windows Media Player / VLC.
    I prepared a self signed AIR for desktop as well and installed on my laptop (Windows 7 64-bit) but same problem.
    I have prepared this using Air for Android extn for Flash CS5.
    Please let me know if anybody has faced the same problem, suggest me if I am really missing anything.
    Here the AS3 code used for testing.
    ===========================
    import flash.media.Sound;
    import flash.media.SoundChannel;
    import flash.media.SoundLoaderContext;
    import flash.net.URLRequest;
    import flash.events.IOErrorEvent;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    const AFRICA_STREAM:String = "http://stream.radiosai.net:8004";
    var isPlaying:Boolean = false;
    var recentlyPlayed:String = "";
    var streamSound:Sound;
    var streamChannel:SoundChannel;
    var streamContext:SoundLoaderContext = new SoundLoaderContext(3000,false);
    var streamTimer:Timer;
    africa_mc.addEventListener(MouseEvent.CLICK, handleStationSelect);
    function handleStationSelect(evt:MouseEvent):void {
         if (isPlaying == true) {
              streamChannel.stop();
              streamSound = null;
              streamChannel = null;
              isPlaying = false;
              streamTimer.stop();
              removeListeners();
         switch (evt.target.name) {
              case "africa_mc" :
                   if (recentlyPlayed != "africa_mc") {
                        playStation(AFRICA_STREAM);
                        recentlyPlayed = "africa_mc";
                   break;
    function playStation(streamUrl:String):void {
         streamSound = new Sound();
         addListeners();
         streamSound.load(new URLRequest(streamUrl), streamContext);
         streamChannel = streamSound.play();
         isPlaying = true;
         streamTimer = new Timer(2000);
         streamTimer.addEventListener(TimerEvent.TIMER, checkPlayState);
         streamTimer.start();
    function soundIoError(evt:IOErrorEvent):void {
         streamChannel.stop();
         streamSound.close();
         streamSound = null;
         streamChannel = null;
         removeListeners();
         play_state.text = "IO Error";
    function checkPlayState(evt:TimerEvent):void {
         if (streamSound.isBuffering == true) {
              play_state.text = "Buffering...";
         else {
              play_state.text = "Playing...";
    function addListeners() {
         streamSound.addEventListener(IOErrorEvent.IO_ERROR, soundIoError);
    function removeListeners() {
         streamSound.removeEventListener(IOErrorEvent.IO_ERROR, soundIoError);
         streamTimer.removeEventListener(TimerEvent.TIMER, checkPlayState);
    =========================================================
    Its very sad that adobe has created something fully buggy and works only on IDE but not on actual device. More sad part is adobe is not even cared to have a look into the issue.

    Hi Chris / tzeng,
    Let me put it in much cleaner way :
    What I am trying to achieve?
    - Listen / play internet radio (IR) stations.
    - Links are taken from : http://wiki.secondlife.com/wiki/Music_streams & few from Shoutcast
    What are all the available formats for IR station URL?
    1. http://server_name:NNNN/ where NNNN is port number
         - http://stream.radiosai.net:8004
         - http://wjab.streamguys.net:80/
         - http://radio2.trancemission.fm:80/
    2. http://server_ip_address:NNNN
         - http://65.60.19.44:80/
         - http://213.246.51.97:8024/
    3. http://server_name_OR_ip/stream/xyz
         - http://scfire-ntc-aa03.stream.aol.com:80/stream/1025
         - http://208.80.52.246/ESPNRADIOCMP3
    4. http://server_name_OR_ip:NNNN/xyz.mp3
         - http://stream.transmissionfm.com:8000/techno-high.mp3
         - http://av.adobe.com/podcast/csbu_dev_podcast_epi_2.mp3
    Please share if anybody came across different format than these.....
    What is working on device and what is not working?
    Any URL of format 3 & 4 is working on the device.
    Any URL of format 1 & 2 is not working on the device.
    What happens if the swf is opened in flash player like debugger version (flashplayer_10_sa_debug)?
    Tried with 4 URL each of different format. Debugger player is able to play all the stations.
    What happens if the swf is opened in IE browser with Flash plugin?
    Only URL of format 3 & 4 works.
    What happens if 'Test Movie' is used in IDE?
    Only URL of format 3 & 4 works.
    Now question is why URL with format 1 & 2 fails? Why same links work on debugger version or VLC or windows media player?
    I have captured the packets sent(received) from(at) device (HTC Desire HD) using WireShark (on Windows 7). I dont see any option to attach the files. Will try to send as private message.
    After a deep search I found that this issue is already faced : http://forums.adobe.com/message/3027799
    Thanks and Regards,
    MSH

  • No Audio Playback due to Error Message "Disk is too slow. (Prepare) (-10001)"

    Out of the blue, no audio playback.  Was working just fine earlier today.
    I repeatedly get the error message:
    Disk is too slow. (Prepare)
    (-10001)
    NOTE: I have more than enough disc space.  That is NOT the issue.
    I also just got a second error message:
    Part of the Project was not played
    This project has too many real instrument tracks to be played in real-time. To optimize performance, see the 'Optimizing GarageBand performance' page in GarageBand Help.
    NOTE: Odd as I have only 2 tracks in the GarageBand file.
    Any others experience this?  Suggestions?

    Have a look into the Preferences folder (YourUserFolder/Libraries/Preferences/) and trash all Logic preferences.
    You'll have to setup the program again.
    cheers
    rob

  • Performance hit in audio playback in Solaris 10

    Hi,
    I've noticed while trying out the Solaris 10 beta 72 that the audio playback quality took a major hit since Solaris 9. I was hoping that this would go away in the Solaris 10 release, but it's not the case.
    If I try to play an .mp3 file with mpg123 or even audioplay an .au file, there are regular clicks in the playback, audible about twice per second. Booting into Solaris 9, the audio playback is perfect.
    My intuition tells me that the integration of DTrace into the kernel is the culprit, but of course, I have no proof. Can anyone think of a way to test this theory? Can DTrace be disabled? Maybe DTrace can be used to figure out what's going on?
    martin-dot-przyjazny-at-eds-dot-com

    Hi,
    I've noticed while trying out the Solaris 10 beta 72
    that the audio playback quality took a major hit
    since Solaris 9. I was hoping that this would go
    away in the Solaris 10 release, but it's not the
    case.
    If I try to play an .mp3 file with mpg123 or even
    audioplay an .au file, there are regular clicks in
    the playback, audible about twice per second.
    Booting into Solaris 9, the audio playback is
    s perfect.
    My intuition tells me that the integration of DTrace
    into the kernel is the culprit, but of course, I have
    no proof. Can anyone think of a way to test this
    theory?You can be assured that DTrace is not the culprit. When DTrace is not running ("pgrep dtrace" to be sure), there is no effect on system performance.
    Maybe DTrace can be
    used to figure out what's going on?DTrace could certainly be used, but some basic facts would be helpful. As Juergen asked, which audio driver is this and on what machine? And how idle is the machine when audio playback is running? Is the machine power managed?
    - Bryan
    Bryan Cantrill, Solaris Kernel Development. http://blogs.sun.com/bmc

  • After recent upgrade to Yosemite on Macbook air bluetooth audio cuts out and associated video stops with audio. Likewise with airplay and Apple TV. I have deleted all my saved wifi connections and restarted numerous times. I do not expect a resolutio

    After recent upgrade to Yosemite on Macbook air bluetooth audio cuts out and associated video stops with audio. Likewise with airplay and Apple TV. I have deleted all my saved wifi connections and restarted numerous times. I do not expect a resolution from the community, but hope to get the attention of Apple engineers. If you are having same problems or have a miracle cure I am all ears.

    May start my own thread, but I'm having similar issues.
    I've been using an old iMac (running 10.7.5) and Apple TV for years with no issues. Last week I bought a new Macbook Pro running Yosemite and have had audio issues multiple times. The weird thing is that sometimes it works flawlessly, other times (like now) I spend half an hour just trying to get a song to play.
    My issues are: When I got to "computers" in Apple TV to stream my music, my music is sometimes chopper or intermittent, and I seen to know when it's going to happen based on the status wheel just before it plays. When I choose a song, the status wheel will spin for an unusually long time, usually an indicator that the audio is either not going to work, or stutter.
    When it does finally pull up a song, the playhead sits at the beginning of the song for a good 3-5 seconds before actually playing. Then, when it starts playing, it's all downhill. It will play a few seconds, drop out, play a few more seconds, drop out, and then ultimately the playhead will keep moving across the song as if it's playing, but there's no audio.
    Again, this is a new phenomenon never experienced by me. I've tried everything I could think of, some of them all at once:
    • restart Apple TV
    • restart Macbook Pro
    • quite iTunes/open
    • turn off Home Sharing on iTunes then reconnect it
    • unplugging and cycling both my modem and router
    None of these have alleviated the problem.
    The odd thing is, like this morning, the audio started up perfectly and never gave me any issues. It wasn't until later in the day that it started. Perhaps after the macbook pro had been put to sleep? Not sure.
    Regardless, this is an annoying trait, one that's new to me and my system (as stated, worked flawlessly until my new purchase), and is 100% limited to either a) the macbook pro b) Yosemite or c) both of them.

  • IPhone 4 audio playback cuts out after latest update (5.1)

    My phones audio playback ( podcast, audiobook or music) cuts out at random intervals during playback.
    This happens when listening through apple headPhones or my audio lead aux input to my stereo.
    This has only started since the last software update (5.1). It's really frustrating as you often hit the jump back or forward arrows when restarting, instead of the intended Play symbol ( they are close together). This is really frustrating when your listing to an hour+ podcast.
    Is anyone else having this problem since the update?

    Same problem here! My phone was functioning correctly after the update until today, when it randomly attempted it's own emergency call, then requested that I turn on location services. When I hit cancel, it repeatedly requested that I turn on the service. When I agreed to turn on location services, it defaulted to the screen with the iTunes logo and the USB cable. Since then, I have been unable to get it to function. The phone has been switching between a black screen and the apple screen and buzzing periodically. When I touched the apple, it pixellated and melted away. I did see a message that the iPhone needed to be activated once and very briefly. I managed to connect it to iTunes using an old troubleshooting guide, but when I asked iTunes to restore it to factory settings (politely, thank you), it gave me error 21 (unknown error) and said it was unable to restore.
    Hopefully someone has an answer...?

  • I have created a PDF with mp3 audio clips, the file works on PC's with audio playback (WIndows 7, 8 ) however the audio does not play when hosted on a website or an ipad/tablet computer or smart phone when used with PDF reader

    I have created a PDF with mp3 audio clips, the file works on PC's with audio playback (WIndows 7, 8 ) however the audio does not play when hosted on a website or an ipad/tablet computer or smart phone when used with PDF reader

    adobe42135678 wrote:
    the audio does not play when hosted on a website...
    When viewing in what browser?

  • Audio playback stops short

    Has anyone had problems with audio playback in a previewed or published presentation where the playback stop short and advanced to the next slide?

    Brian,
    The fact that this mp3 is about the same size as a standard 16 bit/44.1k stereo file of a 3 or 4 minute song, indicates to me that it's an extremely long file.
    I'm willing to bet you have run into the measure limit within a Logic song. It's 2000 something (can't remember it exactly).
    The standard work around is to drop Logic's tempo to something really slow, thus allowing the larger file to be able to play within the Logic song limit.
    See if that's it...

  • X201 hangs and makes noises during audio playback

    Hello, I've a 3249CTO X201 with 8g of ram and an updated Hdd (seagate momentus xt 500gb with 4gb ssd).
    I had issues with the Hdd that where partially resolved with a seagate firmware update (the hdd kept going from standby to active mode without apparent reason and it was assumed to be a too agressive power saving mode...)
    Anyway, my issue here is the annoying chirping sound coming out the speakers during any audio playback (online audio streams, films, mp3, youtube... you name it!) anytime the Hdd is accessed.
    It even seems like everything just hangs for anywhere between 0 and 2 seconds at the exact same time.
    It only happens when on battery and using w7 pro 64bit. If I use ubuntu from my 8g sdhc card, it never occurs (even if I use chrome on both and watching the exact same youtube video). (NOTE that I did access the hdd from ubuntu to prove my point...)
    I think it is related to the power gestion of the system and I've tried a countless serie of different power management settings. It affect the frequency of the episodes (would occur more or less often) but it still happens.
    When plugged in, it never occurs....
    If it doesn't occur under ubuntu (I mean never!), it should not be hardware related, however the w7 way of managing power is different so I tend to think there IS a hardware issue (weakness) wich might be highligted by the OS.
    Anybody has a good lead on this?

    Hello Fafaneboat,
    It might be an issue with firmware of your system, I would like to suggest you please visit the below mentioned web link to download and install few drivers according to your Operating System. 
    support.lenovo.com/en_SG/downloads/default.page? 
    Kindly put your 7 digit TYPE-Model(3249CTO) number of the system in the Quick path
    1. Please download and update the Power Management driver and Power Manager(Please uninstall the previously installed driver and software first).
    2. Please download and update the BIOS of your system.
    To check the previous BIOS version and date, please click on START> type msinfo32> press Enter. It will open System Information Window. You can check the BIOS version and date from there. Kindly match the driver version and date and if the driver and download link have updated driver then please update the BIOS of your system.
    Please perform and check how it goes, It might resolve the issue.
    Regards,
    Harish
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution".! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

Maybe you are looking for

  • How to set up two POP e-mail accounts using the same POP and SMTP servers

    I have an e-mail address based on a domain I purchased which is based on my company name. Now retired, I have purchased a new domain with a simpler, personalised name. My original e-mail account uses the incoming (POP3) and outgoing (SMTP) mail serve

  • Java.nio.FileChannel  tryLock() method does not lock!!!

    Hello, I have the following:            RandomAccessFile raf = new RandomAccessFile(file, "rw");            try {                  lock = raf.getChannel().tryLock();           } catch (OverlappingFileLockException e) {                   System.out.pr

  • Vendor Posting from Treasury Module

    Hi, Can some one please help me with posting directly to vendor / customer account instead of normal bank account from treasury module. Thanks, Devshree

  • Any API to get handle to Outbound BPEL process endpoint activation?

    Hi, we are developing both inbound and outbound BPEL processes using a custom JCA 1.5 based adapter. For the inbound BPEL process deployment/undeployment, we have the ResourceAdapter's endpointActivate() endpointDeactivate() methods called in and so

  • Does key comparison work for character arrays?

    I am using the berkeley db(C) to store a 2-column table with key as a character array(not strings). Even though I can see that a record is present when i display all records, I cant get that record using the get function with the correct key. Is ther