Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何使用api和表单应用程序asp.net c将视频上传到youtube_C#_Asp.net_C# 4.0_Youtube Api_Youtube Data Api - Fatal编程技术网

C# 如何使用api和表单应用程序asp.net c将视频上传到youtube

C# 如何使用api和表单应用程序asp.net c将视频上传到youtube,c#,asp.net,c#-4.0,youtube-api,youtube-data-api,C#,Asp.net,C# 4.0,Youtube Api,Youtube Data Api,我正在使用YouTube api我想从我的web应用程序上传视频我该怎么做? 我还想跟踪上传进度,以便向用户显示进度。。 有什么解决办法吗请帮我把它弄出来 我试过下面的方法 YouTubeRequestSettings settings = new YouTubeRequestSettings("appname", "mykey", "username", "password"); YouTubeRequest request = new YouTubeReque

我正在使用YouTube api我想从我的web应用程序上传视频我该怎么做? 我还想跟踪上传进度,以便向用户显示进度。。 有什么解决办法吗请帮我把它弄出来

我试过下面的方法

YouTubeRequestSettings settings = new YouTubeRequestSettings("appname", "mykey", "username", "password");
                YouTubeRequest request = new YouTubeRequest(settings);
                Video newVideo = new Video();
                newVideo.Title = "Test";
                newVideo.Tags.Add(new MediaCategory("Autos", YouTubeNameTable.CategorySchema));
                newVideo.Description = "Testing Testing Testing";
                newVideo.YouTubeEntry.Private = false;
                newVideo.YouTubeEntry.MediaSource = new MediaFileSource("C:\\22.flv", "video/mp4");
                Video createdVideo = request.Upload(newVideo);

在这种方法中,没有检查上传进度的选项,因此我该如何做?

任何人请帮助我摆脱它…: