Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1512
  • Last Modified:

private youtube video embeding in a website

Hi there!

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

http://www.experts-exchange.com/Web_Development/Components/Q_27780145.html

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?

Thanks,
fskilnik.
0
fskilnik
Asked:
fskilnik
  • 6
  • 4
2 Solutions
 
GaryCommented:
The info is still true
https://support.google.com/youtube/answer/157177?hl=en

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)
0
 
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="//www.youtube-nocookie.com/embed/<%= 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?
0
 
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): http://www.experts-exchange.com/Web_Development/Social_Networking/Q_28316468.html

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,
fskilnik.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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...)
0
 
fskilnikAuthor Commented:
Now I must really go home... found this (below), will look tomorrow...

https://katz.co/embed-protected-video/
0
 
GaryCommented:
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
0
 
GaryCommented:
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...
0
 
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 (https://katz.co/embed-protected-video/) 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!
0
 
GaryCommented:
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
0
 
fskilnikAuthor Commented:
Perfect, Garry.

Thanks a lot, really.

Best wishes in all your projects and see you in other EE posts!
fskilnik.
0

Featured Post

Upgrade your Question Security!

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

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now