本文介绍了iPad AirPlay和镜像SDK支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不确定我是否看过文档,但没有看到与从iOS应用程序中启用AirPlay镜像有关的任何内容.有人做过吗?还是仅在应用程序外部执行此操作?

Not sure if I have seen it the docs, but I don't see anything relating to enabling AirPlay Mirroring from within an iOS app. Has anyone done this before? or is this something done only outside of the App.

还有AirPlay,因为它仅支持音频/视频,我们是否需要将PDF文档转换为用于AirPlay的图像?

Also with AirPlay, since it only supports Audio/Video, would we have to convert to PDF documents into Images for AirPlay?

谢谢.

推荐答案

关于您的第一个问题(您确实应该为此创建两个问题),我已经在这里回答了:

Regarding your first question (you should really create two issues for this), I've answered over here:

iPad上的Airplay -可以在Apple TV上显示的单独的UIView

关于第二个问题,如果用户启用了Airplay镜像,则可以将Apple TV屏幕作为与iOS设备主显示完全相同的方式绘制为UIScreen,因此您将以任何方式呈现PDF内容在iPhone或iPad上(通过UIView).

Regarding your second question, if the user has enabled Airplay mirroring, the Apple TV screen is available to draw to as a UIScreen in exactly the same way as the iOS device primary display, so you would present PDF content in whatever way you are on the iPhone or iPad (via a UIView).

这篇关于iPad AirPlay和镜像SDK支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-19 03:43