S
S
Sergey Kk2017-08-16 11:09:14
Google
Sergey Kk, 2017-08-16 11:09:14

How to display private youtube video on your website?

Good afternoon!
I'm trying to figure out this connection: google account - adding a private video to youtube (access via the link is not suitable) - broadcasting this video on my website for an allowed group of registered users.
I dug up a bunch of documentation on API3, on oAuth2. Is such an implementation even possible?
In order to show a closed video on the site, the client browser must be authorized on youtube (and of course, I give permission to view this video to this account by his email in advance). If the browser is authorized on YouTube, then embedding the video (embed) is shown, if the client is not authorized, then instead of the video, youtube gives "The author has restricted access to the video."
It doesn’t work very well if you “ask” the visitor to log in to youtube, and then re-enter the site to watch the video, how to make an oAuth login to the site and force authentication on youtube? Because I tried to log in to the site via oAuth, a token from Google comes, but YouTube is not logged in and the video is not shown. Maybe after oAuth you can somehow use www.google.com/youtube/accounts/ClientLogin GET with a request to force you to log in using the same data on youtube? This would solve everything, but so far it has come to a standstill.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2017-08-16
@synch

No, YouTube doesn't have that option.
What you need is at https://boomstream.com/ru/, but unlike youtube, you have to pay money there. But as I understand it, you plan to monetize the impressions - then you invest what the boomstream takes in the cost and it's done.

E
Evgeny Smirnov, 2017-08-24
@Tiberius

There are three types of videos on youtube: open and available to search engines; open, but not indexed anywhere (so-called, non-listed) and completely closed video, access to which is by invitation.
So go non-listed and share the link.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question