Skip navigation

AirPlay stops working when iPad screen blanks

25640 Views 33 Replies Latest reply: Sep 23, 2012 5:45 AM by AFS001 RSS
  • karimfrommoscow Calculating status...
    Currently Being Moderated
    Nov 23, 2011 6:26 AM (in response to fghibli)

    can't see this update

  • Sundog66 Level 1 Level 1 (95 points)
    Currently Being Moderated
    Nov 23, 2011 6:28 AM (in response to fghibli)

    No luck on my end either. iPad is 5.0.1. Nothing for AppleTV.

  • fghibli Calculating status...
    Currently Being Moderated
    Nov 23, 2011 6:43 AM (in response to RichieBBB)

    Just re-checked my Apple TV firmware, and found it's back to 4.4.3 and the issue is happening again!

    I'm quite sure just a few hours ago the Apple TV firmware saids 5.0.1(9443), and it fixes the issues in this thread!

    This is weired.


    Good thing is that it's quite promising next Apple TV firmware update will fix this bug, however, the bad thing -  is Apple able to upgrade/downgrade or send patches to our system without any notification?

  • Samertab Calculating status...
    Currently Being Moderated
    Dec 13, 2011 7:10 PM (in response to RichieBBB)

    I just bought an Apple TV 2. When using Airplay with my iPad 2, the iPad locks after 2 minutes (as I set it) even if I m playing a movie on my TV using Airplay. Two way to fix this:

    1) set your iPad Auto Lock to "never". This will likley deplete your iPad battery.

    2) hook your iPad to a power supply !


    No problem since I used the second option.

  • davidfromcarrabelle Level 1 Level 1 (0 points)
    Currently Being Moderated
    Jan 14, 2012 5:57 AM (in response to RichieBBB)

    yes, but that is such a silly workaround for a cool feature that already worked! anyone fixed this yet??

  • davidfromcarrabelle Level 1 Level 1 (0 points)
    Currently Being Moderated
    Jan 15, 2012 7:05 AM (in response to fghibli)

    sure is disappointing that it used to work . just retread this thread. my apple tv just updated a few weeks ago to 4.4.4 it says that is the latest and the problem still exixts. do y'all think it's the tv or the iOS 5 ? I lean towards ios . and as I said above 5.01 didn't fix it

  • Sheriff Woody Calculating status...
    Currently Being Moderated
    Jan 26, 2012 10:04 AM (in response to virtualshock)

    I'd agree with this being app specific.  Running BBC iPlayer app on my iPhone and air-playing to Apple TV2 works fine, but whilst using the 4oD app once the iPhone locks airplay stops with it.


    Based on this, I'd say it's definitely app specific.  Possibly e-mail the app creator or post reviews via iTunes?

  • ChrisCameo Calculating status...
    Currently Being Moderated
    Jan 27, 2012 10:03 PM (in response to RichieBBB)

    Looks like the ios5 update caused an app specific problem. I can confirm that TED Safari BBC iplayer and AirVideo do not drop airplay when multitasking or when ipad/iphone/ipod go to sleep.


    Hopefully Apple can restore whatever caused most apps to break their airplay functionality. Or maybe it will be up to app developers to fix it themselves.

  • ChrisCameo Level 1 Level 1 (0 points)
    Currently Being Moderated
    Jan 27, 2012 10:15 PM (in response to ChrisCameo)

    I started a new thread to list the apps that do work properly as we find them. Hopefully it gets updated as this problem gets more attention from frustrated AppleTv users.


  • davidfromcarrabelle Level 1 Level 1 (0 points)
    Currently Being Moderated
    Jan 28, 2012 6:13 AM (in response to ChrisCameo)

    thanks Chris i'll post there as well.   my experience is as chris said. It IS app specific. but the problem only  manifested itself after ios 5.

  • davidfromcarrabelle Level 1 Level 1 (0 points)

    can anyone point me to a thread that discusses why the Apple TV requires that you turn on the video monitor at least initially before audio will stream? you can turn it off as soon as the audio starts but it is a pain if your receiver is already on.? thx

  • cBroadbo Level 1 Level 1 (0 points)
    Currently Being Moderated
    Feb 3, 2012 10:45 AM (in response to RichieBBB)

    This issue is that starting with iOS 5, apps are put to the background when the device goes to sleep (even if your app was the forground app!!!).


    So the solution is to configure your app as one that can play audio in the background (works for video too).


    First you must add this to your info.plist:



    Here is a very simple view controller that works with AirPlay when your app is put to sleep:



    #import <UIKit/UIKit.h>

    #import <AVFoundation/AVFoundation.h>

    #import <MediaPlayer/MediaPlayer.h>


    @interface BMTViewController : MPMoviePlayerViewController








    #import "BMTViewController.h"


    @implementation BMTViewController


    #pragma mark - View lifecycle


    - (void)viewDidLoad


        [super viewDidLoad];


      self.moviePlayer.allowsAirPlay = YES;

              [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];

              [[AVAudioSession sharedInstance] setActive: YES error: nil];

              [self.moviePlayer prepareToPlay];



    - (void)viewDidAppear:(BOOL)animated {

        [super viewDidAppear:animated];


        [[UIApplication sharedApplication] beginReceivingRemoteControlEvents];

        [self becomeFirstResponder];



    - (void)viewWillDisappear:(BOOL)animated {

        [super viewWillDisappear:animated];


        //End recieving events

        [[UIApplication sharedApplication] endReceivingRemoteControlEvents];

        [self resignFirstResponder];



    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation


      return YES;



    //Make sure we can recieve remote control events

    - (BOOL)canBecomeFirstResponder {

        return YES;



    - (void)remoteControlReceivedWithEvent:(UIEvent *)event {

        //if it is a remote control event handle it correctly

        if (event.type == UIEventTypeRemoteControl) {

            if (event.subtype == UIEventSubtypeRemoteControlPlay) {

                [self.moviePlayer play];

            } else if (event.subtype == UIEventSubtypeRemoteControlPause) {

                [self.moviePlayer pause];

            } else if (event.subtype == UIEventSubtypeRemoteControlTogglePlayPause) {

      if(self.moviePlayer.playbackState  == MPMoviePlaybackStatePlaying)

                                            [self.moviePlayer play];


                                            [self.moviePlayer pause];








    Then just instantiate your view controller from your app delegate or however you like.  Here's how I'm doing it in this demo app:

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions


        self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

        // Override point for customization after application launch.


      NSURL* movieURL = [NSURL URLWithString:@"http://www.yourmovieurl"];


      self.viewController = [[BMTViewController alloc] initWithContentURL:movieURL];



      self.window.rootViewController = self.viewController;

        [self.window makeKeyAndVisible];

        return YES;






    Hope this helps everyone struggling with this issue.  There is still one issue that many of you may encounter.  NSTimers are suspended when the device goes to sleep, even though the movie is still playing in AirPlay.  It isn't the end of the world, but I track progress of movie playback and report it back to a server periodically and I'm unable to accomplish this task with the NSTimers suspended.....sigh. 



  • notyou Level 1 Level 1 (20 points)
    Currently Being Moderated
    Apr 2, 2012 6:20 PM (in response to cBroadbo)

    Huh? For whom is this post intended? That's all jibberish to me.

  • teknoman_ Calculating status...
    Currently Being Moderated
    May 7, 2012 10:52 AM (in response to RichieBBB)

    Hmm new iOS update 5.1.1 just came out today, which addresses bugs with AirPlay. So maybe Apple fixed it??


    "Fixes bugs that affected AirPlay video playback in some circumstances" d-safari-syncing-bug-fixes/


    I'll be able to check later tonight and test it out with my AppleTV. Unless someone can give it a try sooner.


More Like This

  • Retrieving data ...

Bookmarked By (1)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.