예제 #1
0
파일: Program.cs 프로젝트: skitsanos/WDK9
        public static void YouTube()
        {
            YouTubeService youTube = new YouTubeService("AI39si6FVg_zhgRNm_kODUN80kTgzXUgF1qMrlzr9VpMj4GlCo6KkLxNVccugM4sV5b0b6gxIpg6rO0hjp82sDeY0YJpIfZmVw");

            youTube.Login("Jhotest", "jhotest", "simple");
            youTube.OnTranferingProgress += new EventHandler <YouTubeEventArgs>(youTube_OnTranferingProgress);
            //youTube.RetriveVideo();
            YouTubeVideoFileInfo newFileInfo = new YouTubeVideoFileInfo()
            {
                FilePath    = @"e:\MYFOLDERS\Visual Studio 2008\Projects\VideoUploader\Bin\test.flv",
                Title       = "Test video title",
                Description = "Description for my video",
                Category    = YouTubeCategories.PetsAndAnimals,
                Keywords    = "test, .net, library, programing"
            };

            youTube.UploadVideo(newFileInfo);
        }