Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Airplay from iPad - a separate UIView to display on Apple TV

I want to use Airplay to send images in high definition to a Apple TV.

Airplay works fine on my iPad 2 with iOS 5.0.1.

When I start my app, my UIScreen screens array only has 1 item in it. (the iPad of course). I register for the notification for more screens, it never comes unless i bring up the multitasking bar and select my Apple TV. I don't want to do this.

I want an in app pop over where I can select the Apple TV or any other airplay device in the list.

I used MPVolumeView, which did give me that list - and did let me select the Apple TV - but I stil don't get the call back notification that the Apple TV has been selected - so that I can setup my UIWindow for the new view! (but the multitask bar does confirm that the Apple TV is now ticked and the icon from MPVolumeView does go blue too).

I've tried the externalDisplay sample app too, and this too only shows one screen in the list of UIScreens when the app starts.

What am I missing?

Thanks

like image 665
bandejapaisa Avatar asked Dec 21 '11 08:12

bandejapaisa


1 Answers

Unfortunately, I believe the behavior you are describing is accurate and by-design. When you're talking about accessing your Apple TV as another UIScreen, you're talking about "mirroring" and enabling mirroring requires the specific end-user action you describe: going to the multitasking bar and turning mirroring on.

It would be nice to be able to enable mirroring from within an app - I hope somebody corrects me if I'm wrong because I would like this for my app!

like image 188
Rob Reuss Avatar answered Oct 22 '22 16:10

Rob Reuss