本文介绍了如何将视频设置为“私有但共享”?使用v3 YouTube API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一所拥有机构YouTube帐户(Google Apps for Education)的学校工作。视频隐私选项是公开不公开私人

I work for a school that has an institutional YouTube account (Google Apps for Education). The video privacy options are Public, Unlisted, and Private.

重点:私人视频可与以下任意一方共享:
- 该机构(即所有拥有学校帐户的学生) ),或
- 特定电子邮件地址列表。

The important bit: Private videos can be shared with either: - the institution (i.e., all students with a school account), or - a list of specific email addresses.

我们有一个使用可自动将视频上传到YouTube。

We have a tool that uses the v3 YouTube API (Java) to automatically upload videos to YouTube.

I可以使用API​​设置隐私:

I can use the API to set privacy:

VideoStatus videoStatus = new VideoStatus();
videoStatus.setPrivacyStatus("private");

但如何使用YouTube API设置共享(例如与school.edu共享) ?我认为这是可能的,因为它可以使用YouTube的在线视频管理器手动完成。

But how do I set sharing (e.g., "Shared with school.edu") using the YouTube API? I assume it's possible because it can be done (manually) using YouTube's online Video Manager.

推荐答案

似乎有更多的人对这个问题一无所知,但大多数问题可以追溯到几年前。

It seems more people are being left in the dark about this, but most questions date from some years ago.

例如:
链接到YT开发反应:( 2012年5月

此外来自 2014年4月,所以看起来私人视频出现了他们自己的一系列问题。

Moreover the bug JAL linked to dates from April 2014, so it seems like private video's come with their own set of problems.

总而言之,我将坚持,这对我来说似乎是一个很好的权衡。我可以为我自己的一组用户返回不公开的视频,这使我可以控制该级别。如果某些用户感觉喜欢在YouTube链接上发送邮件,那就太糟糕了。正如前面提到的链接所述:

To conclude, I'll be sticking to the unlisted video approach, which seems like a good trade-off for me. I can return the unlisted video's for my own set of users, which gives me control on that level. If some user feels like mailing around the YouTube link, that's just too bad. As the aforementioned link states:

这篇关于如何将视频设置为“私有但共享”?使用v3 YouTube API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 11:38