I am trying to launch the default iOS camera application for video recording but it does not work.
Whenever I launch the application it crashes and and does not show any error log or any other error messages.
The following code works perfectly if I set the imagePicker.CameraCaptureMode
to UIImagePickerControllerCameraCaptureMode.Photo
.
var imagePicker = new UIImagePickerController();
imagePicker.SourceType = UIImagePickerControllerSourceType.Camera;
imagePicker.CameraCaptureMode = UIImagePickerControllerCameraCaptureMode.Video;
var imagePickerDelegate = new ImagePickerDelegate(this);
imagePicker.Delegate = imagePickerDelegate;
NavigationController.PresentModalViewController(imagePicker, true);
Thanks in advance