How can i record video without opening video camera? - iphone

How can i record video without opening any camera? My requirement is when a person is in problem his video is recorded but not by opening camera it should work in background.
Thanks

Use AVFoundation Framework for video capturing.
Don't add AVCaptureVideoPreviewLayer to see whats been recorded in current UIView

Related

Screen Capture Making Video

Can anyone know how to make video recording by capture the screen on iphone? I have an animation and other audio that is working simultaneously with same time and I want to record it as a video so that I can post this video to
You can't capture video from the iPhone screen, but you have a number of options for capturing video from the simulator. See this question for details: video capture software for iPhone Simulator.

How to sync audio and video in iphone app

In my app i have to play some video files.I also have to play audio files along with these video files.
It is working fine.But the problem is audio and video file is not syncing properly.
Also when the the pause button is pressed the video is stop playing not the audio.Im playing the video in MPMOvieplayer controller.
How to solve this issue.Please help.
You can try using an AVMutableComposition. Try taking a look at this thing and if you need any help with it let me know. I would gladly help.

iPhone video recording

I have to record the video in iPhone by invoking camera programmatically. So kindly tell me how to record the video using Objective-c.
Recording Video in iPhone using AVFoundation Framework(AVCaptureSession)?
Similar question. You can control the camera device programmatically using the AVFoundation framework, and more specifically, AVCaptureSession with an AVCaptureDeviceInput and AVCaptureVideoDataOutput.
This link might also help, there is a link to some source code using AVCaptureSession on that page too.

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?? is playing the video in a UIWebview will be a better option??
Try using NSThreads. You should find some info about them in tutorials.

Play video's audio track when enter background?

I'm using mpmovieplayer to play video on ios 4, and I want to keep the audio playing when my app enter background, but it doesn't work. I thing it's because video player use GPU to render video on screen and this is not allowed by apple when app enter background.
So, is there any way to do that? There are some apps have this feature, and they seems just use the mpmovieplayer, is it work by detach the video layer of mpmovieplayer?
Thanks for your answer!
You'll need to have separate audio file and video file for this. Play both when you need to play video and just the audio when app gets into background.