예제 #1
0
        /// <summary>
        ///     Takes the video asynchronous.
        /// </summary>
        /// <param name="options">The options.</param>
        /// <returns>Task&lt;IMediaFile&gt;.</returns>
        /// <exception cref="System.NotImplementedException"></exception>
        public Task<MediaFile> TakeVideoAsync(VideoMediaStorageOptions options)
        {
            if (!IsCameraAvailable)
                throw new NotSupportedException();

            options.VerifyOptions();

            return TakeMediaAsync("video/*", MediaStore.ActionVideoCapture, options);
        }
예제 #2
0
        /// <summary>
        ///     Selects the video asynchronous.
        /// </summary>
        /// <param name="options"></param>
        /// <returns>Task&lt;IMediaFile&gt;.</returns>
        /// <exception cref="System.NotImplementedException"></exception>
        public Task<MediaFile> SelectVideoAsync(VideoMediaStorageOptions options)
        {
            if (!IsCameraAvailable)
                throw new NotSupportedException();

            options.VerifyOptions();

            return TakeMediaAsync("video/*", Intent.ActionPick, options);
        }