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

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

问题描述

我想知道是否可以以编程方式捕获iphone屏幕的视频?我看到有一个应用程序,但对于越狱设备...所以我不知道是否有一些合法的方式来做它?

I would like to know if it is possible to capture a video of the iphone screen programatically ? 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).

这样做是为了保存内容对UIImage的UIView。作者建议您可以通过 AVCaptureSession

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天全站免登陆