问题描述
我正在尝试创建一个UIView,该视图允许用户在i中点击一个按钮并记录屏幕(而不是从摄像机拍摄视频),然后将其保存到文档文件夹中.我在这里看到了几篇有关AVAssetWriter的SO文章,并对此链接进行了引用: http://codethink .no-ip.org/wordpress/archives/673 ,但该链接似乎已消失.
I'm trying to create a UIView that allows a user to tap a button in i and record the screen (not make a video from the camera), then save it to the document folder. I've seen a couple of SO articles here that talk about AVAssetWriter and make references to this link: http://codethink.no-ip.org/wordpress/archives/673 , but that link appears to be dead.
但是,实际上没有人显示出解决方案或提供任何有关如何实现的示例.任何人有任何想法或可以指出正确的方向吗?这应该比它简单.
But no one has actually shown a solution or provided any examples on how to accomplish. Anyone have any ideas or can point me in the right direction? This should be simpler than it is.
谢谢,道格
推荐答案
链接没有失效.
http://codethink.no-ip.org/wordpress/archives/673
如果您检查注释,则还会有一些代码将音频和音频混合在一起.视频并将其另存为QuickTime电影.
If you check the comments, there is also some code that will mix audio & video and save it as a quicktime movie.
如果您仍然无法访问该链接,则有人在binpress上出售相同的代码:
If you still can't access the link, there is a guy selling the same code on binpress:
http://www.binpress.com/app/ios- screen-capture-view/1038
这篇关于在iOS中以编程方式截屏视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!