如何将视频设置为“私有但共享”?使用v3 YouTube API? [英] How can I set videos to "private yet shared" using the v3 YouTube API?

查看:668
本文介绍了如何将视频设置为“私有但共享”?使用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.

我们有一个使用 v3 YouTube API(Java)可自动将视频上传到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.

例如: YouTube API:私人视频访问
链接到YT开发反应: https://groups.google.com/forum/#!topic/youtube-api-gdata/LkfDtwxjWp8 /讨论 2012年5月


不幸的是,没有,我没有相信将添加特定的
功能。

There is not, unfortunately, and I don't believe that specific functionality will be added.

此外与JAL关联的错误来自 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:


有时,安全性就是妥协。在频谱的一端,您可以完全锁定内容,以便没有人可以访问数据。另一方面,最可用和可访问的数据将不安全。

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.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆