Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Added universal windows support #170

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

mjdavy
Copy link

@mjdavy mjdavy commented Jan 29, 2016

  • Ported to Universal Windows (Windows10)
  • Added additional async support
  • Added additional api for getting uri by video id
    public static async Task<Uri> GetVideoUriAsync(string videoId)

@Gennady-G
Copy link

Added additional async support

For me It would be very interesting :)

Do You support video download cancellation of Async process? Unfortunately current release does not do it(but supports DownloadProgressChanged).

                // Register the ProgressChanged event and print the current progress
                videoDownloader.DownloadProgressChanged += (sender, args) => backgroundWorker1.ReportProgress((int)args.ProgressPercentage);

                backgroundWorker1.WorkerSupportsCancellation = true;

                // Run video downloader async. 
                backgroundWorker1.RunWorkerAsync(videoDownloader);

@mysteryx93
Copy link

Gennady-G, you can cancel the download in DownloadProgressChanged. Set e.Cancel = true.

@Gennady-G
Copy link

mysteryx93, thank You for reply! I encountered problems with it, described here:
#173

Glad it works for You. I'll try again, maybe something has changed. Or it was my mistake..

Best regards,
Gennady

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants