来自iPad的Airplay - 一个可在Apple TV上显示的独立UIView [英] Airplay from iPad - a separate UIView to display on Apple TV

查看:176
本文介绍了来自iPad的Airplay - 一个可在Apple TV上显示的独立UIView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Airplay将高清图像发送到Apple TV。



Airplay在我的iPad 2上使用iOS 5.0.1正常工作。



当我启动我的应用程序时,我的 UIScreen 屏幕数组中只有1个项目。 (当然是iPad)。我注册了更多屏幕的通知,除非我打开多任务栏并选择我的Apple TV,否则它永远不会出现。我不想这样做。



我想要一个应用程序弹出窗口,我可以在列表中选择Apple TV或任何其他播放设备。



我使用了 MPVolumeView ,它确实给了我那份清单 - 并且让我选择了Apple TV - 但我仍然不喜欢获得Apple TV已被选中的回叫通知 - 这样我就可以为新视图设置我的 UIWindow 了! (但多任务栏确实已确认Apple TV已被勾选,而 MPVolumeView 中的图标也会变为蓝色。)



我也试过了externalDisplay示例应用程序,这也只在应用程序启动时在 UIScreens 列表中显示一个屏幕。



我缺少什么?



谢谢

解决方案

不幸的是,我相信您所描述的行为是准确的并且是按设计的。当您谈论将Apple TV作为另一个UIScreen访问时,您所说的镜像并启用镜像需要您描述的特定最终用户操作:进入多任务栏并启用镜像。



能够在应用程序中启用镜像会很好 - 我希望如果我错了会有人纠正我,因为我希望我的应用程序可以使用它! / p>

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

解决方案

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!

这篇关于来自iPad的Airplay - 一个可在Apple TV上显示的独立UIView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆