本文介绍了执行请求失败:http://uploads.gdata.youtube.com/feeds/api/users/Youtube/uploads的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下代码,并且在上载时会引发错误.请帮忙!

I''m using the following code and at the time of upload it throws an error. Please help!

YouTubeRequestSettings settings = new YouTubeRequestSettings("Videoapp", null, developerKey, username, password);
YouTubeRequest request = new YouTubeRequest(settings);
((GDataRequestFactory)request.Service.RequestFactory).Timeout = 9999999;

Video newVideo = new Video();
newVideo.Title = "My Test Movie";
newVideo.Tags.Add(new MediaCategory("Autos", YouTubeNameTable.CategorySchema));
newVideo.Keywords = "cars, funny";
newVideo.Description = "My description";
newVideo.YouTubeEntry.Private = false;
newVideo.Tags.Add(new MediaCategory("mydevtag, anotherdevtag",YouTubeNameTable.DeveloperTagSchema));
newVideo.YouTubeEntry.Location = new GeoRssWhere(37, -122);
// alternatively, you could just specify a descriptive string
// newVideo.YouTubeEntry.setYouTubeExtension("location", "Mountain View, CA");

newVideo.YouTubeEntry.MediaSource = new MediaFileSource("ce7381f8-f5d7-4888-8f41-66bbd47fbb05.wmv", "video/x-msvideo");



在此先谢谢您!



Thanks in advance!

推荐答案


这篇关于执行请求失败:http://uploads.gdata.youtube.com/feeds/api/users/Youtube/uploads的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 23:10