通过API将私有视频共享到某些Google帐户 [英] Share private video to some google accounts through API

查看:66
本文介绍了通过API将私有视频共享到某些Google帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚是否有可能在YouTube上发布私人视频,并可以通过API与特定的Google帐户共享.

I'm trying to figure out wheter it is possible to have a private video on youtube that I could share with particular Google Accounts through API.

我将有一个单独的Web应用程序,该应用程序将进行Google注册,注册后我将使该Google帐户能够观看我的私人视频.

I would have a separate web application that would have a Google signup and after signup I would enable that Google Account to watch my private video.

理想情况下,我还想将视频嵌入到Web应用程序中(但是,如果我是视频的所有者,我想可以很容易地做到这一点).

Ideally I would also want to embed the video to the web application (but I think I can do this rather easily if I'm an owner of the video).

推荐答案

可能在YouTube上有一个私人视频,我可以通过API与特定的Google帐户共享该视频.

Ispossible to have a private video on YouTube that I could share with particular google accounts through API.

不,您无法像其他用户一样直接与其他人共享视频,就可以在Google驱动器上共享文件.

No you cant directly share a video with another user like you could a file on google drive.

您可以在自己的网站上显示该视频,但是我不确定我想尝试该视频.事实是,您和您自己都可以观看私人视频.您将必须对应用程序进行身份验证并获得刷新令牌,这将使您能够访问该帐户以及该帐户上的视频.

You could show the video on your own site, but I am not sure its something I would want to try. The thing is being that its a private video you and you alone have access to see it. Your going to have to authenticate your application and get a refresh token back which will allow you to access the account and the videos on the account.

然后,您将能够使用该刷新令牌来获取访问令牌,以通过您的网站向其他人显示视频.您将遇到的问题是,如果刷新令牌停止工作(很少发生但可能发生),则您必须再次对其进行身份验证,然后解决方案才能工作.

Then you will be able to use that refresh token to get an access token to show other people the video via your website. The problem you will have is if the refresh token stops working (rarely happens but can happen) you will have to authenticate it again before your solution will work.

注意:服务帐户不适用于YouTube API.因此,不要再走这条路了.

这篇关于通过API将私有视频共享到某些Google帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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