I am using splitviewcontroller
for my ipad application in which I need to capture video in the detailViewController
in a dimension of 530 px width and 360 px height. I tried using UIImagePickerController
for capturing video but i am unable to change the size of the video capture interface. I cannot afford a full screen video capture in the app. Is there a way to resize the video capture interface of UIImagePickerController
. Thanks a lot for your answers. Sorry for not adding up an screenshot here. My reputation count doesn't permit it.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Open iOS 11 Files app via URL Scheme or some other
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- PostgreSQL field data type for IPv4 addresses
- Can not export audiofiles via “open in:” from Voic
I just found a possible way to resize UIImagPickerController video capture interface on iPad. The basic idea is to use UIPopoerController's dimension to resize the UIImagPickerController's view and then add it to your custom view.
The detailed code and description are listed below:
Note : when you finish video capture or cancel it, you need to dismiss the popover and remove the container's view from your custom view.
You won't be able to do so using UIImagePickerController as far as I know. But 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.
You'll find a small UIView object in that demo code which displays the camera's feed. You can resize that view as per the size you want and the camera's input will be displayed in that much area. It worked for me when I wanted to resize the camera's input feed and capture photos. I hope it works for you as well.