将 mpmovieplayercontroller 镜像到 tvout
我正在寻找一种将视频镜像到 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 MpMoviePlayercontroller
uses 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论