Now that this functionality is available in iOS5, is it possible to initiate image capture using one of the volume buttons?
I am using AVFoundation framework for my image capture app.
Thanks!
Take a photo on the volume-up event when using UIImagePickerController with custom camera controls is used and we have set "showsCameraControls" to NO.
Here, the Notification event name was changed for volumeChanged event , #"AVSystemController_SystemVolumeDidChangeNotification" to #"_UIApplicationVolumeUpButtonDownNotification"
You can find an answer from this link:
https://stackoverflow.com/a/27180527/3759546
Related
Can I record the video in background without the camera feed to be displayed onscreen using AVCam? Is that possible? If that is there any way to do this?
Yes its possible . You can refer this apple document
https://developer.apple.com/library/ios/samplecode/PhotoPicker/Introduction/Intro.html
Please help me with my question.
Is there any way to get image from camera without UIImagePickerController?
I need to render current image(from camera) into image on my view and update it by timer.
May be AVCaptureStillImageOutput? I didn't find any examples.
Any ideas?
Yes, you can do it easily using AVCamCaptureManager and AVCamRecorder classes. Apple has a demo program build on its developer site here. It is named AVCam. In simple words what it does is when you click to open the camera, it calls the classes and methods which are responsible for opening the iPhone's camera and record video or capture audio. It calls the same classes which are called by UIImagePickerController.
I hope it helps.
Am developing a app which will upload video to the server which is picked form local iphone photo library.
here i want to restrict the user not to upload more than 3min of video..Question is how to get the duration of the video which is picked from local photo library using uiimagepickercontroller.
will it contain any property for that..?
Thanks
I am not sure but did u try imagePickerController.videoMaximumDuration = urDuration;
You can get the size of your videofile.If you want to put check according to the size that is possible or you can get the duration by using mpmovieplayer class but for that you have to get the full video file .I dont think so you want to do this so its gud if you can put a check according to the size.
I like to know, are there any events can get triggered in our program whenever user is clicking on Camera start/stop buttons to record/stop the video?
From my application, it is possible to launch Video camera and start video recording and come back with the recorded video. I am using UIImagePickerController and didFinishPickingMediaWithInfo to get the data. It works fine. I want to handle something whenever user starts the video recording by clicking on built-in camera start button. Is it possible?
Please advise.
Thank you!
This is not possible using UIImagePickerController's default interface. You could however create a custom view (including a record button) and show it over the controller using the cameraOverlayView property. When the user presses your custom record button, call start/stopVideoCaptureāthis would provide you with the information you're after.
I am working an iphone app that needs to record a vedio automatically.
I used mobile coreservices framework and using that. I made it to came into video mode and clicking on record option its start capturing a vedio. But I want it automatically that is.. I should able to record a video without clicking on record option. That is when video mode comes up its automatically start record video.
Could any one help?
You can look at UIImagePickerControllers startVideoCapture method which is used to start taking video from the camera, this is to be used when you arent using the camera standard controlors and you provide and overlay view. Here is a reference UIImagePickerCOntroller ref. If this is not enough for you, you might want to look into AVFoundation framework which gives you a lot more control over video capturing process...hope that helps