无法将视频上传到YouTube [英] can't upload vedio to youtube
本文介绍了无法将视频上传到YouTube的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当尝试将视频上传到youtube时,我得到了远程服务器返回错误:(403)禁止."
请在我的代码下方查看:
while trying to upload vedio to youtube i got "The remote server returned an error: (403) Forbidden."
please review below my code:
YouTubeRequestSettings settings =
new YouTubeRequestSettings(ProjectName, DevKey
, GmailEmail, Pwd);
YouTubeRequest request = new YouTubeRequest(settings);
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(flUpload.FileContent, flUpload.FileName, GetFileMime("avi"));
请帮助
推荐答案
您为什么不在
YouTubes开发者论坛 [^ ] ??
Why are you not asking this question in
YouTubes Developer Forums[^]??
这篇关于无法将视频上传到YouTube的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文