I would like to allow my website visitors to upload video to my YouTube channel directly from my WordPress website front end.
I've tried using the PHP API but I couldn't accomplish the task, maybe because I'm still a beginner in the PHP Coding. However I've heard that the task can be done with jQuery in a few steps, I did check the documentations of the YouTube API but couldn't realize how to do it.
This answer on a question shows that I can upload a video to YouTube using jQuery's POST, so does that mean I can use something like:
jQuery.ajax({
type: "POST",
url:"http://uploads.gdata.youtube.com/feeds/api/users/<youtube_username>/uploads",
data:'URL-TO-VIDEO-FILE',
success: ....
Thanks
Ive done this for my wordpress site using a lib I found on the web (http://i-x.it/REJ6EN). With a little bit of googling, you should be able to send videos directly to youtube..