简体   繁体   English

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

[英]Recording Video while playing a video on iPhone?

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?? 我正在尝试使用AVFoundation类从iPhone的前置摄像头录制视频,同时用户观看视频...借助WWDC 2010示例,当视频不播放但我尝试播放时,我能够使用前置摄像头录制视频记录它,而用户在MPMovieViewController中播放视频时,该视频不会被记录。.当我使用MPMovieViewController时,它是否在另一个线程上启动,因此我无法在后台记录视频? is playing the video in a UIWebview will be a better option?? 在UIWebview中播放视频将是一个更好的选择??

Try using NSThreads. 尝试使用NSThreads。 You should find some info about them in tutorials. 您应该在教程中找到有关它们的一些信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM