I want to set up my Drupal site to embed private videos from YouTube. I am the owner of these videos, and I have marked them as private to protect them from the general public.
From the documentation, I have seen how to do an authentication where the user is taken to youtube, has to log in to his account, and consent to give my web app access. Instead, I just want to always be logged in to a designated youtube account that has the necessary permissions. What would be the best way to go about doing this?
It appears that I could use the ClientLogin auth method to get what I'm after, although the documentation sternly warns this is only to be used for desktop applications. I'm guessing it's only for security reasons, because they don't want services storing user's credentials. Obviously that's not the case here, as I just want to log in myself. I'll see how it goes.
There was a discussion on this issue a few months back in the Drupal forums.
The third comment is of interest as it specifically says that private videos can be embedded in your Drupal site and will be accessible once you login to Drupal. I have no first hand experience, so can't confirm or deny.
On a tangent, I've just finished working with developers in a situation where we had two sites, both pwd protected, and we wanted just one login gateway (i.e., once you login to either, you've logged into both). The solution of choice (and this may be way over the top for your needs) was simpleSAML.
try Dash Player for Drupal. What I did is host the videos in the site and this is how they look with Dash Player http://www.salvation123.com/node/35
You can actually add YouTube videos on a playlist just RTM on that ;-)