Filed under: Problems

Using GData API with protected YouTube streams

I am using the GData libraries provided by Google for accessing various Google data sources; in particular in this instance I am attempting to access a number of private YouTube videos from a cooperate account.

I am coming across a problem, whereby I login to YouTube with an authenticated account, and can retrieve the stream, however when I attempt to play one of the video items, I am presented with the error message "This video is private" (Yes, I know it is private, I made it private!).

I am just wondering if anyone has came up against this before, or has any pointers for me when using GData.

A stripped down version of the code is shown below. I have changed the stream URL to the generic 'most watched' stream in order to protect copyright content.