title: To watch videos from youtube using C#
body: <p>In order to upload a video to youtube I use the following code but in this where will I specify the path of the file  </p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
              string user, pass, source;
              user = textBox1.Text;
              pass = textBox2.Text;
              source = textBox3.Text;
              YouTubeRequestSettings settings = new YouTubeRequestSettings("Eclipse", "AI39si554yyVqQDqtZff_kuRyQLg5wp5RjxCtEB_qRmsoF6Cm0AQWG-h_uuCjrmoDAZ3-32JXpAgdSOsJN7VmQzR_2CLHd7NxA", user, pass);
              YouTubeRequest request = new YouTubeRequest(settings);
              Video newVideo = new Video();
          newVideo.Title = "A";// "Smideo Generated Movie";
          newVideo.Tags.Add(new MediaCategory("Travel", YouTubeNameTable.CategorySchema));
          newVideo.Keywords = "Animals";
          newVideo.Description = "TEsting";
          newVideo.YouTubeEntry.Private = false;
          newVideo.Tags.Add(new MediaCategory("Test, Example",YouTubeNameTable.DeveloperTagSchema));
          try
          {
                request.Upload(newVideo);
          }
          catch(InvalidCredentialsException c)
          {
              MessageBox.Show("Error");
          }
  }
  </code></pre>