private youtube video embeding in a website

Hi there!

The problem is directly related to this other one EE question:

but the solution presented there is "not enough" for my purposes...

I have created a channel in YouTube and I want to upload small videos that should be seen ONLY by my customers that login in my website. They may or may not be YouTube users, they may or may not have a Google account.

I know how to upload the YouTube video, put it as unlisted and see it through my site. It works perfectly and the user cannot download the video through my website, what is also good. On the other hand, as Gary put it in the other EE post, people could get the link for the video and pass this link to friends, for instance.

To avoid the passing-link thing, I thought about changing the video type to "private" but, when I do so, the video embedded does not appear, only a message saying "this video is private"... how should I proceed?

In other words, I would like to "tell YouTube" that my site is always able to "see all videos" embedded in my website, even the private ones (especially those), and all my customers, logged-in in my website, should be able to see these videos, but they could not see the same videos in the YouTube channel, and they should not be able to let their friends see the videos (If their friends are not my students, too. The videos are webinar math exercise problems/solutions.)

Is that possible? If yes or no, how should I proceed to be able to do something like that, please?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The info is still true

If you have a login why not just restrict the markup for the video for logged in users only i.e.
if they are logged in then you add the youtube markup (the HTML)
if they are not logged in then you don't

(and geez that is an old question)
fskilnikAuthor Commented:
Hi, Gary!

Thanks for the reply and for the link (very informative)!

I guess I did not understand what is "the markup for the video" you mentioned... let me explain my point:

If the user is logged, (only then) he/she has access to the page in which the YouTube video is embedded, and the HTML string (at this moment) at this page is the following:

<iframe width="640" height="390" src="//<%= rsRECORDSET.Fields.Item("MediaObject")%>?rel=0" frameborder="0" allowfullscreen></iframe>

In other words, the system tries to hide the name of the link for the YouTube video, and that´s good, but the user could see it at the source code of the page...

But the main problem is that I would like to put the video at YouTube as private, so that if no gmail accounts are authorized, even with the proper link the potencial viewer would not succeed...

The problem, as I mentioned, is that when I change for "private", my own website cannot see the embedded video... got it?
fskilnikAuthor Commented:
Hi again, Gary.

I found a (potential) marvellous solution with two letters: Google Drive.

This was found in this EE post (Scott suggestion):

I will try to implement it tomorrow (now 22h52min here) and will be back to give you my feedback.

If you have another idea or comments on this idea, please do leave it here till I´m back!

Thanks a lot,
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

fskilnikAuthor Commented:
Hi, Gary. I could not implement the Google Drive idea... the problem is of the same type... I cannot see the video at my webpage, because in a certain way my Google account does not relates to my website, so to speak...

Please help!  

(I guess through YouTube would be better, if possible, by the way...)
fskilnikAuthor Commented:
Now I must really go home... found this (below), will look tomorrow...
OK so your video is only accessible by logged in users.

As in the previous question you can make it private and invite viewers which won't work for you as it limited to 50 invites

Make it unlisted which means you can control who sees it on your website (and not listed anywhere else and as it's only visible to logged in users you don't need to worry about Google et al indexing it) but any logged in user can get the url to the video.

It's 6 of one and half a dozen the other. You have to weigh up the fact that are your logged in users going to redistribute it - this is not a problem specific to your scenario, trying to protect content on the internet is near impossible
The best you can do is add a copyright to the video and regularly check if it is being distributed anywhere else and file a Cease and Desist order against the website.

I have been in a similar situation where some software I had written was being resold on some Indian website - the only way I managed to get it removed was to get a solicitor to write to all their upstream providers.

It is really difficult to protect intellectual property on the web. You only have to look at Amazon where people reupload eBooks as their own property and can make a lot of money before Amazon remove them

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Depending on your download stats you might be better looking at Amazon S3 storage
It's not too expensive, obviously more than YouTube, but at least you can control access.
Still it won't stop someone saving the file locally and reuploading...
fskilnikAuthor Commented:
Hi, Gary.

Thank you for your absolutely complete answer (this seems to be your trademark, right)?!

I guess I have to deal with unlisted videos and potential students of mine sharing through reuploadings... to be sincere, this could also be a positive (I hope!) marketing, because the videos are just part of my course, and the exercises and mocks are not able to be accessed without proper login/password/orderID/etc credentials...   :)

Before considering this post closed (and your answers rewarded), could you please have a quick look at the link I posted ( and tell me if you think I should invest some time trying to follow that recipe?  (In other words, do you believe it could really protect my videos as if they were private, without the possibility of my students sharing the link or being able to reupload?)

Thanks a lot for your time and expertise in all that!
Reading the comments it seems like that is a premium service now.
Regardless anyone with a bit of know how would be still able to download the video
fskilnikAuthor Commented:
Perfect, Garry.

Thanks a lot, really.

Best wishes in all your projects and see you in other EE posts!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Applications

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.