views:

87

answers:

0

So, I would like to upload a video to the Youtube API, as described here.

My question is, what's the most sensible way to do this? Should I:

  • hand-code a POST request to match the one specified in the Youtube docs - I don't know where to start though, does anyone have a good example of coding a similar POST request in Java?

  • use Google's Youtube java client library (seems to require loads of extra libraries, has anyone tried using these in Android?)

  • try to copy whatever Google do in their inbuilt Youtube upload option (having browsed the Camera source, I can't find the code for this though, and I need to add some extra parameters and a different username from whatever they use)

Just a steer would be appreciated - bit overwhelmed by all the possible options!

Thanks in advance.

P.S. Just to say - I have the URI of the video file as my starting point, and I know how to do a POST request using PostMethod, just not sure how to set all the right HTTP parameters in PostMethod.