Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

YouTube API Watch Private Videos

I have a website that has a draft mode. Someone can login and see what the site looks like to approve it before the public can see it. I have YouTube videos on an account that I put on private because I don't want the world to see them.

However, I do want the people who login to the draft mode to be able to watch the private embeds.

Is there a way I can use the YouTube API and do it so the people can only see the videos and not really be logged in as that person (so they cannot modify the video settings) and not be able to stay signed in after leaving my webpage?

like image 385
Keith Avatar asked Sep 04 '10 00:09

Keith


People also ask

Is there a way to watch a private YouTube video?

Since private videos don't appear on a channel homepage, the person will need to use the specific link to the private video. YouTube will send them an email with the link once you've invited them, but you can also send it yourself.

Can you play videos with YouTube API?

The IFrame player API lets you embed a YouTube video player on your website and control the player using JavaScript. Using the API's JavaScript functions, you can queue videos for playback; play, pause, or stop those videos; adjust the player volume; or retrieve information about the video being played.


1 Answers

Mark your videos as unlisted, not private.

Sometimes, security is about compromise. At one end of the spectrum, you can lock things down completely so that no one can access the data. At the other end, the most usable and accessible data will not be secure.

With that said, you are asking for functionality for N users when the security model you seek is too restrictive and only allows 25 users.

Security and accessibility consists of a balance between an acceptable standard for accessibility while also meeting an acceptable standard for security.

In your situation, marking your YouTube videos as unlisted may provide you with the balance you seek since a 25 user limitation is a show stopper.

http://www.google.com/support/youtube/bin/answer.py?answer=181547

Your videos can be accessed by anyone who has the link, which would only be the users who have access to your system. The link is not public, so it's very unlikely that someone will guess or find your YouTube videos, as the URL's themselves consist of random characters.

The only way other people could access the videos is if your logged-in users go into the browser source, after logging in, and email the URLs to their friends.

  • Your users don't need YouTube accounts.
  • Videos are only accessible to users who login OR users who login, view source, and give the URL to other users.
  • Security could be mitigated by periodically changing the urls for the videos.

Steps to mark your video as unlisted:

  • Click on your video to load it in YouTube.
  • At the top left, click "Edit Video Detail"
  • Scroll down to where it says "This video is" and in the drop down list, select "Unlisted".

Select Unlisted as your preference

like image 151
jmort253 Avatar answered Oct 19 '22 12:10

jmort253