Android的获得来自YouTube的视频链接 [英] Android Get video link from youtube

查看:533
本文介绍了Android的获得来自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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆