Airplay dropping after ~2 minutes

Recently, airplay from my iOS devices to an apple tv ha s started dropping after about 2 minutes of play time. It happens with both youtube and vimeo and both my phone and my wife's phone. My setup is:


Apple TV 4th gen w/ tvOS 10.2.2

iPhones with 10.3.3

Ubiquiti EdgeRouter X 1.9.7 hotfix 2 (also tried 1.9.1.1 with same results)

2x Ubiquiti Unifi AC Pro

2x LinkSys LGS116P switch


It doesn't happen 100% of the time but once it starts happening, it happens quite consistently (which makes it easier to try different things). I've tried rebooting the router, the APs, the phones, the apple tv, and the switches without any improvement. I've also tried removing one of the APs but that didn't help either. I've captured packets on the ERX when it happens and it looks like a the apple tv sends up a bunch of resets (see attached, 10.0.1.77 is the apple tv)?


User uploaded file


It doesn't happen when playing videos directly from the apple tv, only when airplaying from a phone to the apple tv. It's definitely annoying and it didn't happen a month or two ago.


Has anyone else experienced airplay dropping after about 2 minutes before? Any suggestions on what I can try?


thanks!

Apple TV, tvOS 10.2.2, 4th gen

Posted on Sep 3, 2017 1:07 AM

Reply
64 replies

Oct 21, 2017 11:00 PM in response to Steve RK

Initiating AirPlay from the video application also works beautifully. The 2:50 timeout only applies when I initiate AirPlay via the Mirroring button int he control panel. I'm pretty happy. Initiating it in the Amazon application gives me X-Ray too. So I've got everything now. Diana, please check to see if you have the problem when initiating mirroring and then switching to basic AirPlay automatically within an application. Maybe the mirroring button is only for mirroring now, and is not intended to work for basic AirPlay. That is not intuitive, since it used to work fine that way.

Nov 14, 2017 10:19 AM in response to Diana.McCall

Dear All,


I think there is more than one problem in play in these discussions. If you are having the consistent drop after 2 minutes when using video, it may be the same problem I was having. This problem was COMPLETELY SOLVED by initiating AirPlay in a different way. I had been initiating it with mirroring, which used to work. That doesn’t work in iOS 11, it drops after 2 minutes of video play. But initiating it in either of the other two ways works fine. Best is from the audio widget in the control panel. For details, see the other posts about this earlier in this thread.

Nov 26, 2017 11:25 AM in response to JoelRodriguez

However, I had issues on an iPhone 8 with ios11, and none on an iPhone 5 with iOS10. I’ve noticed that the fix is to not press the airplay mirroring button - but to use alternative methods to turning airplay on, e.g from the little tv- symbol next to the play button on a movie or from the music widget (that has AirPlay options for audio out, and streams video as well from there).

Sep 25, 2017 4:56 PM in response to vazandrew

I have this exact same issue.. both connected via a home network AND a directly from my IOS 11 device and the AppleTV via WiFi/Bluetooth. Same disconnect after 2 and a half minutes. In the EXACT same environments, I had absolutely NO problems with IOS 10, and still don't with my other IOS 10 devices. My problem began immediately after upgrading to IOS 11.


I've moved the pair of devices to multiple locations and tested both network and direct (wireless) connections with the exact same results and it is NOT related to radio interference.. unless IOS 11 causes said interference... ;-) Side by side with an IOS 10 device without any dropped connections from the IOS 10 device and a dropped connection every time on the IOS 11 device.

Oct 20, 2017 8:57 PM in response to Diana.McCall

Wow, Diana, this message explains much that I did not previously know and provides a substantial solution to my problem.


I did not know that in basic AirPlay, Apple TV was connecting to and streaming from the server. I always imagined that the video was being transmitted via WiFi from the iPad to Apple TV. This explains a lot about how Apple TV achieves such excellent quality in what seemed such an indirect and potentially problematic signal path.


I also did not know that there were multiple ways to initiate AirPlay. I was only aware of one - the mirroring option. I begin by enabling mirroring, and my iPad screen is immediately visible on the TV. If I begin playing video in what I would call a "well-behaved" application, e.g. Amazon Video, it switches into basic AirPlay automatically. It is this path that worked for me in iOS 10 and that I used frequently. And it is this path that consistently times out in 2:50 for me in iOS 11.


I don't think it's intuitive that connecting AirPlay via the music player, the second of the three methods you explained, would have any impact on video. However, with your encouragement, I discovered and tried that method. Remarkably, it works for video. No more 2:50 timeout. It doesn't mirror, and the mirroring was kind of annoying anyway, but in most cases, including the ones I was most concerned about, Amazon being the prime example, it automatically changes to basic AirPlay and (as I now understand) streams video from the server perfectly with no 2:50 interruption.


This does not seem logical to me, but it does solve my problem and make it unnecessary for me to do what I was right on the verge of doing, which is downgrading back to iOS 10.


There are certain differences in behavior between the two methods that I would like to describe FYI. I will call the mirroring approach Method 1 (M1) and the music approach Method 2 (M2).


In M1, Amazon on the iPad is more than a fixed control screen. It provides the sometimes interesting X-Ray information that Amazon makes available, which tells, for example, what actors are currently on screen. With M2, this is not available; it's a fixed screen. There is a trade-off here. I like the X-Ray info and sometimes refer to it. But it's no contest. M2 is far preferable because it eliminates the crazy-annoying interruption every 3 minutes with its laborious recovery. Amazon may be the only application to which this appiies.


M2 generally works better than M1. There are applications and situations where M1 does NOT switch to basic AirPlay, but continues mirroring the full screen video on the iPad. It does this remarkably well. But it's not nearly as good as basic AirPlay video. Examples of this are the NBC app and some websites on which I watch videos. With both of these, using M1, I was always watching a full screen mirroring on the TV, which is NOT QUITE full screen. With M2, in both of these apps and in other places, I get the control screen only on the iPad and I get true full screen on the TV. It's great! It's how I always thought it should be.


Picking up on a few other points: No VPN in the mix. It's an old Apple TV (maybe 3 years, the little one, but not the new one with apps or the new new one with 4K). My whole reason for getting it was AirPlay, having become a both a Mac user and an iPad user. My iPad lock timeout is set to never, and my Apple TV sleep timeout is set to 1 hour. So, no insights there. And the public WiFi I mentioned has nothing to do with my WiFi router, which is hard wired to my cable modem. At home, I don't see the public WiFi at all. I was just talking about the situation in certain places out and about that I tend to frequent.


I haven't tried using the AirPlay icon in the video application. I'll experiment with that too. I think there may still be some bugs in iOS 11 behind the 2:50 timeout with M1, because it used to work. But what's most important for me is that you've given me a viable way to make this work well enough to again enjoy viewing Amazon Video and NBC and others on my TV via the iPad. For this, I THANK YOU again and again.

Oct 20, 2017 1:15 PM in response to cameronring

Here Is How I Resolved The Problem.

1. Have iTunes Open On Computer.

2. Have Apple TV Turned On And On Main Menu Screen (That's The One With All The Fun Channel Icons).

3. Turn Home Sharing OFF In iTunes And Close iTunes.

4. While Apple TV Is ON Unplug Power Cord From The Apple TV (Not From Wall Outlet But The Actual Apple TV Black Box).

Wait "One Minute Or More".(For Some Reason It Resets Memory In Apple TV But Does NOT Reset All Your Settings.

5. After "One Minute Or More" Wait - Open iTunes On Computer.

6. Plug Apple TV In And Let It Restart. Wait Till All The Icons Appear On Main Menu Screen.

7. Click To Highlight Computer Icon On Main Menu. Screen Should Say "Home Sharing Off" Or "Turn Home Sharing On".

8. Go To Computer And Turn Home Sharing On In iTunes.

This Stopped My Repeated Restarts.

Dec 3, 2017 3:40 PM in response to cameronring

Okay.. with the latests update to IOS, 11.2, on my iphone X, my airplay issue seems to be have fixed. I can now airplay directly to my AppleTV (addhoc, no network connectivity for the appletv) without it dropping every 2 minutes 40 seconds...


There wasn't any mention of the 'fix' in the release notes of 11.2, but it's working for me.


I hope this newest updated fixes this same type of issue for everyone on IOS 11..

Oct 20, 2017 1:42 AM in response to Steve RK

It does not happen with simple mirroring. It only happens in projection mode (or whatever they call it) when the video is showing only on the Apple TV and something else is on the iPad screen. In Netflix, "something else" is just a fixed screen saying "Your video is playing on your TV." In Amazon, it's interesting information, I think they call it X-Ray.


Anyway, after it happens, the iPad is in a strange state. The video bounces back to the iPad. Apple TV goes back to itself. If you look at the iPad control panel, Apple TV screen mirroring still has a check mark. iPad seems to think it is still connected, but it isn't. To get it working again, you have to un-check it in the control panel, kill the streaming app on the iPad, and start all over again. But there's no point, since it will die again at 2:50.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Airplay dropping after ~2 minutes

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.