使用YouTube API的私有视频 - Drupal

我想设置我的Drupal网站以嵌入来自YouTube的私人视频。 我是这些视频的所有者,我将它们标记为私有,以保护它们免受公众的欢迎。 </ p>

从文档中,我已经了解了如何进行身份验证,用户被带到youtube,必须登录到他的帐户,并同意授予我的Web应用程序访问权限。 相反,我只想始终登录到具有必要权限的指定youtube帐户。 这样做最好的方法是什么?</ p>
</ div>

展开原文

原文

I want to set up my Drupal site to embed private videos from YouTube. I am the owner of these videos, and I have marked them as private to protect them from the general public.

From the documentation, I have seen how to do an authentication where the user is taken to youtube, has to log in to his account, and consent to give my web app access. Instead, I just want to always be logged in to a designated youtube account that has the necessary permissions. What would be the best way to go about doing this?

3个回答



看来我可以使用ClientLogin auth方法来获取我所追求的内容,尽管文档严厉警告这只是为了 用于桌面应用程序。 我猜这只是出于安全原因,因为他们不希望服务存储用户的凭据。 显然情况并非如此,因为我只想自己登录。 我会看看它是怎么回事。</ p>
</ div>

展开原文

原文

It appears that I could use the ClientLogin auth method to get what I'm after, although the documentation sternly warns this is only to be used for desktop applications. I'm guessing it's only for security reasons, because they don't want services storing user's credentials. Obviously that's not the case here, as I just want to log in myself. I'll see how it goes.

doqw89029
doqw89029 不 - 仍然失败。 还有其他人有什么想法?
接近 11 年之前 回复



几个月前在 Drupal论坛。 </ p>

第三条评论很有意思,因为它特别说私人视频可以嵌入你的Drupal网站,一旦你登录Drupal就可以访问。 我没有第一手经验,所以无法确认或否认。</ p>

在切线方面,我刚刚与开发人员合作,我们有两个网站,都受到pwd保护 ,我们只想要一个登录网关(即,一旦你登录到任何一个,你就登录了两个)。 选择的解决方案(这可能是满足您需求的最佳方式)是simpleSAML。 </ p>
</ div>

展开原文

原文

There was a discussion on this issue a few months back in the Drupal forums.

The third comment is of interest as it specifically says that private videos can be embedded in your Drupal site and will be accessible once you login to Drupal. I have no first hand experience, so can't confirm or deny.

On a tangent, I've just finished working with developers in a situation where we had two sites, both pwd protected, and we wanted just one login gateway (i.e., once you login to either, you've logged into both). The solution of choice (and this may be way over the top for your needs) was simpleSAML.

dqve65954
dqve65954 我已成功通过GData的ClientLogin API进行身份验证。 现在它希望我将http请求中的身份验证令牌发送到youtube。 如果我在页面上只有一个嵌入式视频,我该怎么做呢?
大约 11 年之前 回复
dongliangkeng1056
dongliangkeng1056 Youtube似乎已经改变了它 - 即使允许嵌入,如果它是私有的并且用户未经过身份验证,也无法显示。 至于simpleSAML - 我不希望人们能够去指定的youtube帐户并做一些事情。 我只是希望他们能够看到它的内容。
大约 11 年之前 回复



尝试Dash Player for Drupal。 我所做的是在网站上托管视频,这就是他们看待Dash播放器的方式 http:// www .salvation123.com / node / 35 </ p>

您实际上可以在播放列表上添加YouTube视频,只需RTM; - )</ p>
</ div>

展开原文

原文

try Dash Player for Drupal. What I did is host the videos in the site and this is how they look with Dash Player http://www.salvation123.com/node/35

You can actually add YouTube videos on a playlist just RTM on that ;-)

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐