YouTube API 观看私人视频 [英] YouTube API Watch Private Videos

查看:55
本文介绍了YouTube API 观看私人视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有草稿模式的网站.有人可以登录并查看该站点的外观以在公众看到它之前批准它.我有一个帐户上的 YouTube 视频,我将其设为私密,因为我不想让全世界看到它们.

I have a website that has a draft mode. Someone can login and see what the site looks like to approve it before the public can see it. I have YouTube videos on an account that I put on private because I don't want the world to see them.

但是,我确实希望登录草稿模式的人能够观看私人嵌入.

However, I do want the people who login to the draft mode to be able to watch the private embeds.

有没有办法可以使用 YouTube API 并这样做,以便人们只能看到视频,而不能真正以该人身份登录(因此他们无法修改视频设置)并且无法保持登录状态离开我的网页后?

Is there a way I can use the YouTube API and do it so the people can only see the videos and not really be logged in as that person (so they cannot modify the video settings) and not be able to stay signed in after leaving my webpage?

推荐答案

将您的视频标记为不公开,而非私密.

Mark your videos as unlisted, not private.

有时,安全就是妥协.一方面,您可以锁定事物完全使任何人都无法访问数据.另一方面,最有用和最易访问的数据将不安全.

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.

话虽如此,当您寻求的安全模型过于严格并且只允许 25 个用户时,您要求为 N 个用户提供功能.

With that said, you are asking for functionality for N users when the security model you seek is too restrictive and only allows 25 users.

安全性和可访问性包括在可接受的可访问性标准和满足可接受的安全性标准之间取得平衡.

Security and accessibility consists of a balance between an acceptable standard for accessibility while also meeting an acceptable standard for security.

在您的情况下,将您的 YouTube 视频标记为不公开可能会为您提供所需的平衡,因为 25 个用户限制是一个节目的障碍.

In your situation, marking your YouTube videos as unlisted may provide you with the balance you seek since a 25 user limitation is a show stopper.

http://www.google.com/support/youtube/bin/answer.py?answer=181547

知道链接的任何人都可以访问您的视频,而这些人只能是有权访问您系统的用户.该链接不是公开的,因此有人猜测或找到您的 YouTube 视频的可能性很小,因为 URL 本身由随机字符组成.

Your videos can be accessed by anyone who has the link, which would only be the users who have access to your system. The link is not public, so it's very unlikely that someone will guess or find your YouTube videos, as the URL's themselves consist of random characters.

其他人可以访问视频的唯一方式是,如果您的登录用户在登录后进入浏览器源,然后通过电子邮件将 URL 发送给他们的朋友.

The only way other people could access the videos is if your logged-in users go into the browser source, after logging in, and email the URLs to their friends.

  • 您的用户不需要 YouTube 帐户.
  • 只有登录用户或登录、查看源并将 URL 提供给其他用户的用户才能访问视频.
  • 定期更改视频的网址可以降低安全性.

将视频标记为不公开的步骤:

  • 点击您的视频以将其加载到 YouTube 中.
  • 点击左上角的编辑视频详细信息"
  • 向下滚动到显示此视频所在"的位置,然后在下拉列表中选择不公开".

这篇关于YouTube API 观看私人视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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