Android的获得来自YouTube的视频链接 [英] Android Get video link from youtube
问题描述
嗨正在开发一个Android应用我的应用程序的一部分,并希望来分析歌名到YouTube,并获得视频链接。没关系获得100%正确的视频。所以我如何从YouTube获取数据?
Hi am developing an android application and part of my application wants to parse song title to youtube and get the video link. It does not matter to get the 100% correct video. so how I retrieve data from youtube?
任何一个可以帮助我找到一个解决方案,它的真正帮助全给我。
Can any one help me to find a solution its really help full for me.
感谢
推荐答案
它使用的是YouTube数据API,这将返回XML做的最常用的方法/ JSON的,你可以分析检索之类的视频网址。
The most common way to do it is using the Youtube data API, which will return XML/Json that you can parse to retrieve things like the video url.
要搜索视频的按标题,让你想看看这个调用,如视频网址的东西: https://gdata.youtube.com/feeds/api/videos?q=insert_title_here
To search for video's by title and get things like video urls you want to take a look at this call: https://gdata.youtube.com/feeds/api/videos?q=insert_title_here
这篇关于Android的获得来自YouTube的视频链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!