1<video class="od-VideoCanvas-video" autoplay="autoplay" src="blob:https://bri2-my.sharepoint.com/4a202308-ca21-4e2e-8d5f-7cf3f6a618ec"></video>
1private void btnDownload_Click(object sender, EventArgs e)
2{
3 WebClient webClient = new WebClient();
4 webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed);
5 webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged);
6 webClient.DownloadFileAsync(new Uri("http://mysite.com/myVideo.mp4"), @"c:\myVideo.mp4");
7}
8
9private void ProgressChanged(object sender, DownloadProgressChangedEventArgs e)
10{
11 progressBar.Value = e.ProgressPercentage;
12}
13
14private void Completed(object sender, AsyncCompletedEventArgs e)
15{
16 MessageBox.Show("Download completed!");
17}