将视频上传到youtube时如何解决此错误 [英] How to solve this error while uploading videos into youtube
本文介绍了将视频上传到youtube时如何解决此错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我正在尝试将视频从网站iam上传到类似''
的错误中
您可以指导如何解决吗?您可以指导或发送任何代码段吗?
请求执行失败:https://uploads.gdata.youtube.com/feeds/api/users/default/uploads
Hello,
I am trying uploading videos into from site iam getting error like''
can u guide how to solve can u guide or send any snippets
Execution of request failed: https://uploads.gdata.youtube.com/feeds/api/users/default/uploads
using Google.GData.Client;
using Google.GData.Extensions;
using Google.GData.YouTube;
using Google.GData.Extensions.MediaRss;
using Google.YouTube;
using System.Globalization;
using Google.GData.Extensions.Location;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
YouTubeRequestSettings settings = new YouTubeRequestSettings("whatwill come here ?",
"my devoperkey",
"youtube user id ","youtube pwd");
YouTubeRequest request = new YouTubeRequest(settings);
Video newVideo = new Video();
newVideo.Title = "suhelnazeer";
newVideo.Tags.Add(new MediaCategory("Gaming", YouTubeNameTable.CategorySchema));
newVideo.Keywords = "myscenes,mynewvideos";
newVideo.Description = "test 3 test 4";
newVideo.YouTubeEntry.Private = false;
// newVideo.Tags.Add(new MediaCategory(", tag 2",
// YouTubeNameTable.DeveloperTagSchema));
newVideo.YouTubeEntry.Location = new GeoRssWhere(37, -122);
newVideo.Tags.Add(new MediaCategory("Games", YouTubeNameTable.CategorySchema));
newVideo.YouTubeEntry.MediaSource = new MediaFileSource("C:\\Documents and Settings\\suhel\\My Documents\\Downloads\\flame.avi", "video/avi");
Video createdVideo = request.Upload(newVideo);
Response.Write("videoUploadedsuccessfully");
}
}
推荐答案
此链接可能会有所帮助
尝试这个 [
this link might be some help
try this[^]
这篇关于将视频上传到youtube时如何解决此错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文