以编程方式捕获屏幕视频 [英] Programmatically capture video of screen

查看:58
本文介绍了以编程方式捕获屏幕视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以通过程序捕获iphone屏幕的视频吗?我看到有一个适用于该应用程序的应用程序,但适用于越狱设备……所以我不知道是否有某种合法"的方法可以做到这一点?

I would like to know if it is possible to capture a video of the iphone screen programmatically ? I saw there is an app for that but for jailbreak devices...So I do not know if there is some "legal" way to do it ?

推荐答案

查看 ScreenCaptureView ,它内置了视频录制支持(请参阅链接).

Check out ScreenCaptureView, this has video-recording support built-in (see link).

这是将UIView的内容保存到UIImage的操作.作者建议您通过将框架通过

What this does is it saves the contents of a UIView to a UIImage. The author suggests you can save a video of the app in use by passing the frames through AVCaptureSession.

我相信它尚未在OpenGL子视图中进行过测试,但是假设它可以正常工作,您也许可以对其稍加修改以包含音频,然后进行设置.

I believe it hasn't been tested with an OpenGL subview, but assuming that it works you might be able to modify it slightly to include audio and then you'd be set.

这篇关于以编程方式捕获屏幕视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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