【问题标题】:YouTube API C#: Set Video Privacy Settings on UploadYouTube API C#:在上传时设置视频隐私设置
【发布时间】:2015-08-20 11:46:26
【问题描述】:

根据代码示例:

YouTubeRequest request = new YouTubeRequest(settings);
Video newVideo = new Video();
newVideo.Title = "Test";
newVideo.Tags.Add(new MediaCategory("Animals", YouTubeNameTable.CategorySchema));
newVideo.Description = "Testing Testing Testing";
newVideo.Private = true;
newVideo.YouTubeEntry.Private = false;
newVideo.YouTubeEntry.MediaSource = new MediaFileSource("C:\\test.wmv", "video/x-ms-wmv");
request.Upload(newVideo);

我们有两条有趣的线:

newVideo.Private = true;
newVideo.YouTubeEntry.Private = false;

如果设置newVideo.YouTubeEntry.Private = false; - 这将是公共视频。
如果设置newVideo.YouTubeEntry.Private = true; - 这将是私人视频。
参数newVideo.Private = true;未知。

但 YouTube 还有一个参数 - “通过链接访问”。
如何通过上传链接访问视频?

【问题讨论】:

标签: c# youtube-api


【解决方案1】:

Using Youtube .net API to upload and set a video as unlisted

在此转发,以回答问题。

我什至无法发表评论,因为我的代表太低了......

【讨论】:

    猜你喜欢
    • 2013-03-27
    • 2013-07-07
    • 1970-01-01
    • 2013-04-26
    • 2012-05-08
    • 2013-10-08
    • 2012-01-04
    • 1970-01-01
    • 2015-09-07
    相关资源
    最近更新 更多