Ejemplo n.º 1
0
        /// <summary>
        /// Selects the video asynchronous.
        /// </summary>
        /// <param name="options">The options.</param>
        /// <returns>Task&lt;IMediaFile&gt;.</returns>
        /// <exception cref="NotSupportedException"></exception>
        public Task <MediaFile> SelectVideoAsync(VideoMediaStorageOptions options)
        {
            if (!IsPhotosSupported)
            {
                throw new NotSupportedException();
            }

            return(GetMediaAsync(UIImagePickerControllerSourceType.PhotoLibrary, TypeMovie));
        }
Ejemplo n.º 2
0
        /// <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));
        }
Ejemplo n.º 3
0
        /// <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));
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Takes the video asynchronous.
        /// </summary>
        /// <param name="options">The options.</param>
        /// <returns>Task&lt;IMediaFile&gt;.</returns>
        /// <exception cref="NotSupportedException">
        /// </exception>
        public Task <MediaFile> TakeVideoAsync(VideoMediaStorageOptions options)
        {
            if (!IsVideosSupported)
            {
                throw new NotSupportedException();
            }
            if (!IsCameraAvailable)
            {
                throw new NotSupportedException();
            }

            //VerifyCameraOptions (options);

            return(GetMediaAsync(UIImagePickerControllerSourceType.Camera, TypeMovie, options));
        }
Ejemplo n.º 5
0
		/// <summary>
		/// Takes the video asynchronous.
		/// </summary>
		/// <param name="options">The options.</param>
		/// <returns>Task&lt;IMediaFile&gt;.</returns>
		/// <exception cref="NotSupportedException">
		/// </exception>
		public Task<MediaFile> TakeVideoAsync(VideoMediaStorageOptions options)
		{
			if (!IsVideosSupported)
			{
				throw new NotSupportedException();
			}
			if (!IsCameraAvailable)
			{
				throw new NotSupportedException();
			}

			//VerifyCameraOptions (options);

			return GetMediaAsync(UIImagePickerControllerSourceType.Camera, TypeMovie, options);
		}
Ejemplo n.º 6
0
		/// <summary>
		/// Selects the video asynchronous.
		/// </summary>
		/// <param name="options">The options.</param>
		/// <returns>Task&lt;IMediaFile&gt;.</returns>
		/// <exception cref="NotSupportedException"></exception>
		public Task<MediaFile> SelectVideoAsync(VideoMediaStorageOptions options)
		{
			if (!IsPhotosSupported)
			{
				throw new NotSupportedException();
			}

			return GetMediaAsync(UIImagePickerControllerSourceType.PhotoLibrary, TypeMovie);
		}
Ejemplo n.º 7
0
        /// <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);
        }
Ejemplo n.º 8
0
        /// <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);
        }
Ejemplo n.º 9
0
 /// <summary>
 /// Takes the video asynchronous.
 /// </summary>
 /// <param name="options">The options.</param>
 /// <returns>Task&lt;IMediaFile&gt;.</returns>
 /// <exception cref="NotImplementedException"></exception>
 /// <exception cref="System.NotImplementedException"></exception>
 public Task <MediaFile> TakeVideoAsync(VideoMediaStorageOptions options)
 {
     throw new NotImplementedException();
 }
		/// <summary>
		/// Takes the video asynchronous.
		/// </summary>
		/// <param name="options">The options.</param>
		/// <returns>Task&lt;IMediaFile&gt;.</returns>
		/// <exception cref="NotImplementedException"></exception>
		/// <exception cref="System.NotImplementedException"></exception>
		public Task<MediaFile> TakeVideoAsync(VideoMediaStorageOptions options)
		{
			throw new NotImplementedException();
		}