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?
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.
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.
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.
Steps to mark your video as unlisted:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With