开发者

Youtube support in google-api-java-client vs gdata-java-client

I'm trying to use the google-api-java-client (I suppose this is what is referred to as 2.0) for writing an android application for youtube. (gdata-java-client (1.x) does not support android, I understand). I have loooked through the youtube documentation as well as the sample provided in "youtube-jsonc-sample", which only queries based on the .

I want to query for youtube videos, as detailed at http://code.google.com/apis/y开发者_C百科outube/2.0/developers_guide_java.html#Searching_for_Videos The sample snippets described there however seem to be for the older gdata API. I do not find anything related to youtube in google-api-java-client except for the youtube sample. The reference at code.google.com/apis/youtube/2.0/reference.html#Searching_for_videos too makes only a fleeting reference to "conditions that should be used to filter the result set."

Is it possible to query youtube videos using the 2.0 API (on android) ? Please point me to pointers or sample code.

Thanks;


The best sample for YouTube right now is the youtube-jsonc-sample, which shows how to search for YouTube videos using the JSON-C format. Though it is written to run on the command-line, it should work almost unmodified on Android. You mention this sample, but not why it doesn't meet your needs. Would you kindly expand on that?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜