在 iPhone 上播放视频时录制视频?
我正在尝试在用户观看视频时使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用 NSThreads。您应该在教程中找到有关它们的一些信息。
Try using NSThreads. You should find some info about them in tutorials.