/// <summary> /// Takes the video asynchronous. /// </summary> /// <param name="options">The options.</param> /// <returns>Task with a return type of MediaFile.</returns> /// <exception cref="System.NotSupportedException">Throws an exception if feature is not supported.</exception> public Task<MediaFile> TakeVideoAsync(VideoMediaStorageOptions options) { if (!IsCameraAvailable) { throw new NotSupportedException(); } options.VerifyOptions(); return TakeMediaAsync("video/*", MediaStore.ActionVideoCapture, options); }
/// <summary> /// Selects the video asynchronous. /// </summary> /// <param name="options">Video storage options.</param> /// <returns>Task with a return type of MediaFile.</returns> /// <exception cref="System.NotSupportedException">Throws an exception if feature is not supported.</exception> public Task<MediaFile> SelectVideoAsync(VideoMediaStorageOptions options) { if (!IsCameraAvailable) { throw new NotSupportedException(); } options.VerifyOptions(); return TakeMediaAsync("video/*", Intent.ActionPick, options); }