如何在youtube api android中使用开发人员密钥?

时间:2013-05-12 12:46:25

标签: android android-youtube-api

我可以使用link通过search result获取所有数据,并可以通过{{{}}的帮助在设备的已安装youtube应用中播放视频1}}。

youtubeapi jar

Intent videoIntent = YouTubeIntents.createPlayVideoIntent(this, "y4cJxadBTVU"); startActivity(videoIntent); 在哪里发挥作用?

适用于版本3吗?

我第一次处理Developer key

任何帮助/建议都将受到高度赞赏..

由于

1 个答案:

答案 0 :(得分:0)

Based on comments and my own experience I can answer this question. Developer KEY is not required in case using only 0!=status since it opens videos in Youtube app which already has necessary privileges to open any public videos. In my app I am using exactly the same class and I don't have any extra API enabled on Google Developer Console, neither need any key.

Although, I am not sure if it works if you try to open some private videos, I would expect YT app to prompt user for valid authentication, I guess.