如何在 iPhone 上录制像会说话的汤姆猫这样的屏幕视频? [英] How to record video of screen like Talking Tom Cat on iPhone?

查看:22
本文介绍了如何在 iPhone 上录制像会说话的汤姆猫这样的屏幕视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道 AVFoundation 或任何其他框架中是否有任何公共 API 可用于像会说话的汤姆猫那样记录屏幕.我查看了 AVFoundation 和 CoreVideo 框架,但无法从头文件中找到任何内容.

I want to know if there is any public API in AVFoundation or any other framework which can be used to record screen like Talking Tom Cat does. I looked into AVFoundation and CoreVideo frameworks but could not find anything from the header files.

如果有人知道如何使用 iPhone SDK 以实用的方式录制屏幕视频,请告诉我.

If anyone knows how to record screen video prgramatically using iPhone SDK, let me know.

推荐答案

你可以通过以下步骤来实现:

you can do it in the following steps:

  1. 截屏
  2. 将该帧放入队列中
  3. 用 avassertwriter 编写
  4. 并导出视频

在 wwdc2010 示例代码中有一个示例应用程序用于理解这些内容.

there is a sample application for understanding these things in the wwdc2010 sample code.

希望这会有所帮助.(示例应用名称:aveditdemo)

hope this helps.(sample app name : aveditdemo)

这篇关于如何在 iPhone 上录制像会说话的汤姆猫这样的屏幕视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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