public override void DeleteVideoFile(VideoFile videoFile) { var path = videoFile.Path; videoFile.Dispose(); InternalVideoFile.Delete(path); }
public override void FinishedPickingMedia(UIImagePickerController picker, NSDictionary info) { var taskSource = iOSCamera.currentTaskSource; VideoFile result = null; var type = info[new NSString("UIImagePickerControllerMediaType")] as NSString; if (type != null && type == UTType.Movie) { var url = info[new NSString("UIImagePickerControllerMediaURL")] as NSUrl; if (url != null) { File.Move(url.Path, _fullPath); result = InternalVideoFile.Open(_fullPath); } } picker.DismissViewController(true, () => { iOSCamera.currentTaskSource = null; taskSource.SetResult(result); }); }
public override VideoFile OpenVideoFile(string fullPath) { CheckVideoExtension(fullPath); return(InternalVideoFile.Open(fullPath)); }