在 iPhone 上播放视频时录制视频?

发布于 2024-09-30 05:52:08 字数 232 浏览 1 评论 0原文

我正在尝试在用户观看视频时使用 AVFoundation 类从 iPhone 的前置摄像头录制视频...在 WWDC 2010 示例的帮助下,我可以在视频未播放时使用前置摄像头录制视频,但当我尝试时当用户在 MPMovieViewController 中播放视频时录制它,视频不会被录制。当我使用 MPMovieViewController 时,它是否在不同的线程上启动,因为我无法在后台录制视频?在 UIWebview 中播放视频会是更好的选择吗?

i am trying to record a video from front camera of iPhone using AVFoundation class while user watches a video...with the help of WWDC 2010 samples i am able to record the video using front camera when the video is not playing but when i try to record it while user plays a video in MPMovieViewController the video does not get recorded..When i use MPMovieViewController does it starts on a different thread due to which i am not able to record the video in the background?? is playing the video in a UIWebview will be a better option??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

极度宠爱 2024-10-07 05:52:08

尝试使用 NSThreads。您应该在教程中找到有关它们的一些信息。

Try using NSThreads. You should find some info about them in tutorials.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文