我在一所拥有机构 YouTube 帐户 (Google Apps for Education) 的学校工作。视频隐私选项有公开、不公开和私有(private)。
重要的一点:私有(private)视频可以分享给: - 机构(即所有拥有学校帐户的学生),或 - 特定电子邮件地址的列表。
我们有一个使用 v3 YouTube API (Java) 的工具自动将视频上传到 YouTube。
我可以使用 API 来设置隐私:
VideoStatus videoStatus = new VideoStatus();
videoStatus.setPrivacyStatus("private");
但是如何使用 YouTube API 设置共享(例如,“与 school.edu 共享”)?我认为这是可能的,因为可以使用 YouTube 的在线视频管理器(手动)完成。
最佳答案
似乎更多的人对此一无所知,但大多数问题都可以追溯到几年前。
例如:YouTube API: Private Video Access 链接到 YT 开发者 react :https://groups.google.com/forum/#!topic/youtube-api-gdata/LkfDtwxjWp8/discussion (2012 年 5 月)
There is not, unfortunately, and I don't believe that specific functionality will be added.
此外the bug JAL linked to日期是 2014 年 4 月,因此私有(private)视频似乎有其自身的一系列问题。
总而言之,我将坚持 the unlisted video approach ,这对我来说似乎是一个很好的权衡。我可以为我自己的一组用户返回未列出的视频,这让我可以控制该级别。如果某些用户想要围绕 YouTube 链接发送邮件,那就太糟糕了。如上述链接所述:
Sometimes, security is about compromise. At one end of the spectrum, you can lock things down completely so that no one can access the data. At the other end, the most usable and accessible data will not be secure.
关于java - 如何使用 v3 YouTube API 将视频设置为 "private yet shared"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37579534/