将 mpmovieplayercontroller 镜像到 tvout

发布于 2024-09-27 19:36:57 字数 805 浏览 2 评论 0原文

我正在寻找一种将视频镜像到 iTouch 上的 TVOut 的方法,而不是全屏。对于我的代码,我在这里使用了 Rob Terrell 的屏幕镜像示例: http://www.touchcentric.com /博客/档案/123 还有这个: http://www.e-string.com/content/screen-mirroring-ipad

我使用了 image = UIGraphicsGetImageFromCurrentImageContext(); 来拍摄我的应用程序的屏幕截图,然后镜像到外部显示器。我可以使用 UIScreen -screens' 镜像应用程序中的所有内容,但只要播放任何 MpMoviePlayercontroller 视频,它就会在外部显示器上显示为黑色。我猜测也许 MpMoviePlayercontroller 使用视频叠加并且它没有被捕获?有人对此有任何了解吗?

我嵌入了一个自定义视图,其中 MpMoviePlayercontroller 在窗口的一小部分中播放视频,这是唯一没有在外部屏幕上显示的内容,有人可以指出我完成的方向吗视频也出现了?我应该查看 AVFoundation 或在 UIWebView 中播放视频的方法(非全屏)还是这仍然会导致我遇到同样的问题?

I am looking for a way of mirroring videos to the TVOut on an iTouch, not in fullscreen. For my code, I have used Rob Terrell's screen mirroring example here: http://www.touchcentric.com/blog/archives/123
and this one as well:
http://www.e-string.com/content/screen-mirroring-ipad

I have used image = UIGraphicsGetImageFromCurrentImageContext(); to take screen shots of my app to then mirror out to an external display. I CAN mirror everything in my app using UIScreen -screens', but as soon as any MpMoviePlayercontroller video is played, it shows up black on the external display. I'm guessing that perhaps MpMoviePlayercontrolleruses video overlay and that it is not being captured? anyone have any knowledge on this?

I have embedded a custom view in which MpMoviePlayercontroller plays a video in a small portion of the window and it is the only thing not being shown on an external screen, can someone point me in the direction to accomplish having the video also show up? Should I look at AVFoundation or a way to play a video in UIWebView (not full screen) or will this still lead me to the same problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文