Hi,
I'm facing with problem when I tried to record video using MediaPicker. It works on android as expected, it opens camera view and I can record video and then hook a file. On IOS camera view don't open, moreover, it breaks taking photo view (I can take photo until I try to open record video view). My code get stuck on line:
mediaFile = await mediaPicker.TakeVideoAsync (new VideoMediaStorageOptions {
DefaultCamera = CameraDevice.Rear,
});
The whole function:
private async Task<MediaFile> takeVideo()
{
var mediaPicker = DependencyService.Get<IMediaPicker> ();
MediaFile mediaFile = null;
if (mediaPicker.IsVideosSupported && mediaPicker.IsCameraAvailable) {
mediaFile = await mediaPicker.TakeVideoAsync (new VideoMediaStorageOptions {
DefaultCamera = CameraDevice.Rear,
});
}
return mediaFile;
}