Solved

private youtube video embeding in a website

Posted on 2014-07-30
10
824 Views
Last Modified: 2014-07-31
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
Comment
Question by:fskilnik
  • 6
  • 4
10 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40230793
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
 

Author Comment

by:fskilnik
ID: 40230825
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
 

Author Comment

by:fskilnik
ID: 40230838
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
 

Author Comment

by:fskilnik
ID: 40230851
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
 

Author Comment

by:fskilnik
ID: 40230857
Now I must really go home... found this (below), will look tomorrow...

https://katz.co/embed-protected-video/
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40230903
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
 
LVL 58

Assisted Solution

by:Gary
Gary earned 500 total points
ID: 40230919
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
 

Author Comment

by:fskilnik
ID: 40231529
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
 
LVL 58

Expert Comment

by:Gary
ID: 40231685
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
 

Author Closing Comment

by:fskilnik
ID: 40231871
Perfect, Garry.

Thanks a lot, really.

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

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Web application versus Website IIS setup 3 47
Google Autocomplete API 2 70
how to disable hibernate query cache 2 66
Problem to file 3 49
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This video teaches users how to migrate an existing Wordpress website to a new domain.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now